jQuery(function($){
// var a =$(".box4").height();
// alert(a);
$("input:button").hover(
function () {
$(this).addClass("btn_hover");
},
function () {
$(this).removeClass("btn_hover");
});
var num = 3;
var index = 0;
var tmp = 0;
$("#photolists a:eq(0)").css("display","inline");
$("#photolists img:eq(0)").css("display","inline");
$("#photolists").append('
');
for(i=0;i"+(i+1)+"");
}
$("#photonum li:eq(0)").css("background","#F00");
//自动播放
var MyTime = setInterval(function(){
index++;
ChangeImages(index);
if(index==num-1){index=-1;}
} , 5000);
//滑动导航改变内容
$("#photonum li").hover(function(){
tmp = $("#photonum li").index(this);
MyTime = setTimeout(function(){
index = tmp;
ChangeImages(index);
} , 300);
}, function(){
clearTimeout(MyTime);
});
//滑入 停止动画,滑出开始动画.
$('#photolists').hover(function(){
if(MyTime)clearInterval(MyTime);
},function(){
MyTime = setInterval(function(){
index++;
if(index>num-1){index=0;}
ChangeImages(index);
} , 5000);
});
var id = $("#chan_tag");
Action(id);
});
function ChangeImages(i) {
$("#photolists a").hide().eq(i).show();
$("#photolists img").hide().eq(i).fadeIn("slow");
$("#photonum li").css("background","none").eq(i).css("background","#F00")
}
function Action(id){
var l = id.find("li").length;
var w = 0;
id.find("li").wrapInner(document.createElement("span"));
id.find("li").prepend("");
id.parent("#tag1").find("li").append("");
ShowjQueryFlash(id,0);
for(i=1;i