jq幻灯片
javascript脚本:
$(function(){ $("#KinSlideshow").KinSlideshow(); })
HTML代码:
<div id="KinSlideshow" > <a href=http://www.5xsj.net target="_blank"><img src="images/1.jpg" alt="这是标题一" /></a> <a href=http://www.5xsj.net target="_blank"><img src="images/2.jpg" alt="这是标题二" /></a> <a href=http://www.5xsj.net target="_blank"><img src="images/3.jpg" alt="这是标题三" /></a> <a href=http://www.5xsj.net target="_blank"><img src="images/4.jpg" alt="这是标题四" /></a> <a href=http://www.5xsj.net target="_blank"><img src="images/5.jpg" alt="这是标题五" /></a> <a href=http://www.5xsj.net target="_blank"><img src="images/6.jpg" alt="这是标题六" /></a> </div>
javascript脚本:
$(function(){ $("#KinSlideshow").KinSlideshow({ moveStyle:"down", //设置切换方向为向下 [默认向左切换] intervalTime:8, //设置间隔时间为8秒 [默认为5秒] mouseEvent:"mouseover" //设置鼠标事件为“鼠标滑过切换” [默认鼠标点击时切换] titleFont:{TitleFont_size:14,TitleFont_color:"#FF0000"} //设置标题文字大小为14px,颜色:#FF0000 }); })