var scrollpic_02 = new scrollpic(); scrollpic_02.scrollcontid = "s_pic"; //内容容器id scrollpic_02.arrleftid = "leftarr";//右箭头id scrollpic_02.arrrightid = "rightarr"; //左箭头id scrollpic_02.framewidth = 630;//显示框宽度 scrollpic_02.pagewidth = 315; //翻页宽度 scrollpic_02.speed = 50; //移动速度(单位毫秒,越小越快) scrollpic_02.space = 100; //每次移动像素(单位px,越大越快) scrollpic_02.autoplay = true; //自动播放 scrollpic_02.autoplaytime = 4; //自动播放间隔时间(秒) scrollpic_02.circularly = true; //不循环 scrollpic_02.initialize(); //初始化