一款三张背景图淡入淡出切换,带左右按钮,带小按钮,自动播放,幻灯片上面还带有一个用户登录框。/***********幻灯*****************/auto=null;timer=null;var focus=new Function();focus.prototype={ init:function(){ //默认动画频率 this.aTime=this.aTime || 10; //默认间隔 this.sTime=this.sTime || 5000; //图片容器 this.oImg=document.getElementById('focus_m').getElementsByTagName("ul")[0]; this.oImgLi=this.oImg.getElementsByTagName("li"); //左右按钮 this.oL=document.getElementById('focus_l'); this.oR=document.getElementById('focus_r'); //创建文字容器 this.TextDom(); //默认第一帧 this.target=0; //开始动画 this.autoMove(); //鼠标 this.oAction(); }, TextDom:function(){ var that=this; //创建文字容器 this.oText=document.Element("div"); this.oText.className="focus_s"; var ul=document.Element('ul'); var frag=document.DocumentFragment(); for (var i=0;i
未经允许不得转载: ICode联盟 » 插件特效 » 带登陆框的jQuery满屏幻灯片