日期:2014-05-16  浏览次数:20396 次

关于对联广告不能滚动的问题
请问那位有符合 <!DOCTYPE   html   PUBLIC   "-//W3C//DTD   XHTML   1.0   Transitional//EN "   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
标准的对联滚动代码    

我找了好多代码在 <!DOCTYPE   HTML   PUBLIC   "-//W3C//DTD   HTML   4.0   Transitional//EN "   > 标准可以滚动       可我的页面是上面的标准   请问该怎么解决

------解决方案--------------------
<script language= "JavaScript " type= "text/javascript " >

lastScrollY=0;
function heartBeat(){
var diffY;
if (document.documentElement && document.documentElement.scrollTop)
diffY = document.documentElement.scrollTop;
else if (document.body)
diffY = document.body.scrollTop
else
{/*Netscape stuff*/}

//alert(diffY);
percent=.1*(diffY-lastScrollY);
if(percent> 0)percent=Math.ceil(percent);
else percent=Math.floor(percent);
document.getElementById( "ALayer1 ").style.top=parseInt(document.getElementById( "ALayer1 ").style.top)+percent+ "px ";
document.getElementById( "ALayer2 ").style.top=parseInt(document.getElementById( "ALayer1 ").style.top)+percent+ "px ";

lastScrollY=lastScrollY+percent;
//alert(lastScrollY);
}
suspendcode12= " <DIV id=\ "ALayer1\ " style= 'left:0px;PosITION:absolute;TOP:100px; '> <br> <br> <img src= 'http://www.jiaodong.net/images/a_close.gif ' border=0 onclick= 'closeBanner(); ' /> <br> <br> <EMBED src= 'http://www.jiaodong.net/a/index/desheng.swf ' quality=high WIDTH=95 HEIGHT=160 TYPE= 'application/x-shockwave-flash ' id=EccoolAd wmode=transparent> </EMBED> <br> <br> <a href= 'http://www.jiaodong.net/travel/51/ ' target= '_blank '> <img src= 'http://www.jiaodong.net/a/index/wuyi.jpg ' width= '95 ' height= '90 ' border= '0 ' /> </a> <br> <br> <EMBED src= 'http://www.jiaodong.net/a/index/xinan.swf ' quality=high WIDTH=95 HEIGHT=90 TYPE= 'application/x-shockwave-flash ' id=EccoolAd wmode=transparent> </EMBED> </div> "
suspendcode14= " <DIV id=\ "ALayer2\ " style= 'right:0px;PosITION:absolute;TOP:100px; '> <br> <br> <img src= 'http://www.jiaodong.net/images/a_close.gif ' border=0 onclick= 'closeBanner(); ' /> <br> <br> <EMBED src= 'http://www.jiaodong.net/a/index/taiwushi.swf ' quality=high WIDTH=95 HEIGHT=160 TYPE= 'application/x-shockwave-flash ' id=EccoolAd wmode=transparent> </EMBED> <br> <br> <a href= 'http://www.jiaodong.net/a/070313pijiu/ ' target=_blank> <img src=http://www.jiaodong.net/a/index/ytbeer.gif border=0> </a> <br> <br> <EMBED src= 'http://www.jiaodong.net/a/index/renai.swf ' quality=high WIDTH=95 HEIGHT=90 TYPE= 'application/x-shockwave-flash ' id=EccoolAd wmode=transparent> </EMBED> </div> "
document.write(suspendcode12);
document.write(suspendcode14);
window.setInterval( "heartBeat() ",1);
function closeBanner()
{
document.getElementById( "ALayer1 ").style.display= 'none ';
document.getElementById( "ALayer2 ").style.display= 'none ';
}
</script>

我最近弄的一个,可以正常滚动。拿去试试吧。
------解决方案--------------------
参考:
http://www.xgtx.gov.cn/index.asp
Extjs的CheckboxSelectionModel,ColumnModel,值来显