Fifty Studio│图片连续不间断滚动像册 <!-- /*--CSS Code by Forestgan http://www.forest53.com--*/ a{background:#EEE; color:#333;} a:hover{background:#EEE;color: #666;} #demo ul{list-style:none;} #FGWrapper{width: 640px; margin:2em auto; background:#EEE;} #FGLeft{float: left;padding: 10px;} #FGThumb{float: right;padding: 10px 10px 10px 0;background:#EEE;} #demo{overflow:hidden; width: 130px;height: 360px; background:#eee;} #demo img {border: 0;margin-bottom: 10px;vertical-align: middle;} #FGFooter{ font-size: 1em; padding:0 10px 10px; clear:both;text-align:right;} span#FGdesc2{float: left;} --> function showPic (whichpic) { if (document.getElementById) { document.getElementById('FGplaceholder').src = whichpic.href; if (whichpic.title) {document.getElementById('FGdesc2').childNodes[0].nodeValue = whichpic.title; } else {document.getElementById('FGdesc2').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue; } return false; } else { return true; } } #demo{overflow:auto; } } CSS 布局演示 CSS Layout by Forestgan 2006-10-30 发表 //图片无间断滚动代码,兼容IE、Firefox、Opera //原脚本是IE only,来自网上,作者未知 //部分内容是由forestgan为了JS代码标准化,兼容以gecko为内核的浏览器于2006-10-30重写 //http://www.forest53.com var speed=30; var FGDemo=document.getElementById('demo'); var FGDemo1=document.getElementById('demo1'); var FGDemo2=document.getElementById('demo2'); FGDemo2.innerHTML=FGDemo1.innerHTML function Marquee1(){ if(FGDemo2.offsetHeight-FGDemo.scrollTop<=0) FGDemo.scrollTop-=FGDemo1.offsetHeight else{ FGDemo.scrollTop++ } } var MyMar1=setInterval(Marquee1,speed) FGDemo.onmouseover=function() {clearInterval(MyMar1)} FGDemo.onmouseout=function() {MyMar1=setInterval(Marquee1,speed)} My Photo 1Design by Forestgan 演示页面设计制作: Forestgan 采用创作共用授权--署名和非商业用途 返回前一页 _uacct = "UA-152060-1"; urchinTracker(); google-analytics my stat [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]