半点优化网 http://www.bdxc.net/
当前位置首页 > 网站技术问题> 正文

网站代码问题 请高手解答

<script type=text/javascript src=../gamestat.xunlei.com/stat/click.js></script>
这个有问题这个是相对路径,改成绝对路径就行了
<script type=text/javascript src=></script>

网页制作代码问题

你的意思是想让它连续滚动吧?试试这段代码
<DIV style=WIDTH: 670px; HEIGHT: 210px; OVERFLOW: hidden id=demo>
<TABLE border=0 cellSpacing=0 cellPadding=0 cellspace=0>
<TR>
<TD id=demo1 vAlign=top>
<TABLE border=0 cellSpacing=3 cellPadding=0 align=center height=200>
<TR>
<TD width=200 align=middle><img src=.jpgwidth=200height=200border=0 /></TD>
<TD width=200 align=middle><img src=.jpgwidth=200height=200border=0 /></TD>
<TD width=200 align=middle><img src=.jpgwidth=200height=200border=0 /></TD>
<TD width=200 align=middle><img src=.jpgwidth=200height=200border=0 /></TD>
<TD width=200 align=middle><img src=.jpgwidth=200height=200border=0 /></TD>
</TR></TABLE></TD>
<TD id=demo2 vAlign=top></TD></TR>
</TABLE></DIV>
<SCRIPT>
var speed=30
demo2.innerHTML=demo1.innerHTML
function Marquee(){
if(demo2.offsetWidth-demo.scrollLeft<=0)
demo.scrollLeft-=demo1.offsetWidth
else{
demo.scrollLeft++
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</SCRIPT>

随机文章


    Warning: require(): open_basedir restriction in effect. File(/www/wwwroot/bdxc.net/e/class/connect.php) is not within the allowed path(s): (/www/wwwroot/www.bdxc.net/:/tmp/) in /www/wwwroot/www.bdxc.net/1.php on line 4

    Warning: require(/www/wwwroot/bdxc.net/e/class/connect.php): failed to open stream: Operation not permitted in /www/wwwroot/www.bdxc.net/1.php on line 4

    Fatal error: require(): Failed opening required '/www/wwwroot/bdxc.net/e/class/connect.php' (include_path='.:/www/server/php/56/lib/php') in /www/wwwroot/www.bdxc.net/1.php on line 4