PJBlog3 发布版本 v2.8.3.127 里程碑

查看完整版本: 图片滚动代码?

wanba 2008-7-3 16:30

图片滚动代码?

这段代码应该是鼠标放上去会滚动的可现在没反应
不知道有高人可以修改一下吗?

<!--加入图片新闻-->
<DIV class=clear></DIV>
<DIV class=blank10_fff></DIV>
<DIV class=gund>
<DIV class=gdp>
<TABLE cellSpacing=0 cellPadding=0 width=605 border=0>
  <TBODY>
  <TR vAlign=top>
    <TD width=30><IMG height=115 alt="鼠标放上去试试看!" src="images/cr1_38.gif" onmouseover=Right() style="CURSOR: pointer"
      onmouseout=StopScroll() width=15 border=0></TD>
    <TD width=776>
      <DIV id=marquees>
      <table border="0" id=marqueesTab width="99%" cellspacing="0" cellpadding="0">
                        <tr>
                                <td> <!--#include file="index_pic.asp"--></td>
                        </tr>
                </table>
       </DIV>
      <DIV id=templayer
      style="LEFT: 0px; VISIBILITY: hidden; POSITION: absolute; TOP: 0px"></DIV></TD>
    <TD align=right width=32><IMG height=115 alt="图片会滚动的噢!"  src="images/cr1_39.gif" onmouseover=Left() style="CURSOR: pointer"
      onmouseout=StopScroll() width=15
border=0></TD></TR></TBODY></TABLE></DIV>
<SCRIPT>
        var id = getParameter("id");
        if(id){
                var div = document.getElementById('marqueesTab');
                var tabs = div.getElementsByTagName("table");   
                for(var i=0;i<tabs.length;i++){
                        var tab = tabs[i];
                        var as = tab.getElementsByTagName("A");
                        if(!as) break;
                        for(var j=0;j<as.length;j++){
                                var a = as[j];
                                if(!a.tagName || a.tagName!="A") continue;
                                if(a.href.indexOf(id) != -1){
                                        tab.style.border = "2px red solid";     
                                        break;
                                }
                        }
                }
        }      
</SCRIPT>
</DIV>
<!--end加入图片新闻-->

qq3397965 2008-7-3 17:34

js方法在哪???没写方法!!
页: [1]
查看完整版本: 图片滚动代码?