var data = new Array(5);data[0] = "/uploads/010.jpg";data[1] = "/uploads/009.jpg";data[2] = "/uploads/006.jpg";data[3] = "/uploads/007.jpg";data[4] = "/uploads/0000wdysd.jpg";$(document).ready(function(){ //$(".slide ul li").click(function(){ // $(this).css( "background-color", "red" ).siblings().css( "background-color", "white"); // var index = $(".slide ul li").index(this); // $("#change a:eq("+index+")").show().siblings().hide(); //}) $("#adv_hd_2 ul li").hover(function(){ var index = $(this).index(); $(this).children().css("background","url(/chuanmeixy/skin/default/cmimgcss/bg2.gif) no-repeat").parent().siblings().children().css({"text-align":"center","width":"102px","height":"38px","background":"url(/chuanmeixy/skin/default/cmimgcss/bg1.gif)"}); $("#adv_hd_1 a:eq("+index+")").show().siblings().hide(); }) setInterval(show, 4500); setInterval(change, 5000); preimage(data); });function change(){ var index = $("#adv_hd_1 a:visible").index(); var n = (index != 4)?index+1:0; $("#adv_hd_1 a:eq("+n+")").show().siblings().hide(); $("#adv_hd_2 ul li a:eq("+n+")").css("background","url(/chuanmeixy/skin/default/cmimgcss/bg2.gif) no-repeat").parent().siblings().children().css("background","url(/chuanmeixy/skin/default/cmimgcss/bg1.gif) no-repeat");}function show(){ var index = $("#change a:visible").index(); var num = $("#change a").size() - 1; var n = (index != num)?index+1:0; $("#change a:eq("+n+")").fadeIn().siblings().hide(); //$(".slide ul li:eq("+n+")").css( "background-color", "red" ).siblings().css( "background-color", "white");}function preimage(data){ var i = 0; for (i=0; i<=data.length; i++){ var image = new Image(); image.src = data[i]; }}$(function(){//多行应用@Mr.Thinkvar _wrap=$('ul#gundong');//定义滚动区域var _interval=3000;//定义滚动间隙时间var _moving;//需要清除的动画_wrap.hover(function(){clearInterval(_moving);//当鼠标在滚动区域中时,停止滚动},function(){_moving=setInterval(function(){var _field=_wrap.find('li:first');//此变量不可放置于函数起始处,li:first取值是变化的var _h=_field.height();//取得每次滚动高度_field.animate({marginTop:-_h+'px'},600,function(){//通过取负margin值,隐藏第一行_field.css('marginTop',0).appendTo(_wrap);//隐藏后,将该行的margin值置零,并插入到最后,实现无缝滚动})},_interval)//滚动间隔时间取决于_interval}).trigger('mouseleave');//函数载入时,模拟执行mouseleave,即自动滚动});



栏目ID=19的表不存在(操作类型=0)

栏目ID=20的表不存在(操作类型=0)