js+asp 的屏幕滚动脚本

时间:2008-10-07 12:07:32  来源:第二电脑网上收集  作者:

  第二电脑网导读:t">效果演示:http://www.9600100.com/
  正文:

最近刚刚到公司,写得这个东西,放在这里收藏一下,方便以后用。

效果演示:http://www.9600100.com/

<script type="text/JavaScript" language="javascript">

                     <%=divID%>marqueesHeightone=300;

                     <%=divID%>stophotoshop/ target=_blank class=infotextkey>pscroll1=false;

                     with(<%=divID%>){

                              style.width=380;

                              style.height=<%=divID%>marqueesHeightone;

                              style.overflowX="visible";

                              style.overflowY="hidden";

                              noWrap=true;

                              onmouSEOver=new Function("<%=divID%>stopscroll1=true");

                              onmouseout=new Function("<%=divID%>stopscroll1=false");

                       }

                       <%=divID%>preTop1=0; <%=divID%>currentTop1=<%=divID%>marqueesHeightone; <%=divID%>stoptime1=0;

                       <%=divID%>.innerHTML+=<%=divID%>.innerHTML;

                       

                    

                     function init_<%=divID%>srolltext1(){

                       <%=divID%>.scrollTop=0;

                       setInterval("<%=divID%>scrollUp1()",1);

                     }init_<%=divID%>srolltext1();

                    

                     function <%=divID%>scrollUp1(){

                       if(<%=divID%>stopscroll1==true) return;

                       <%=divID%>currentTop1+=1;

                       if(<%=divID%>currentTop1==<%=divID%>marqueesHeightone+1)

                       {

                            <%=divID%>stoptime1+=1;

                            <%=divID%>currentTop1-=1;

                            if(<%=divID%>stoptime1==500)

                            {

                                   <%=divID%>currentTop1=0;

                                   <%=divID%>stoptime1=0;               

                            }

                       }

                       else {       

                             <%=divID%>preTop1=<%=divID%>.scrollTop;

                              <%=divID%>.scrollTop+=1;

                              if(<%=divID%>preTop1==<%=divID%>.scrollTop){

                                   <%=divID%>.scrollTop=<%=divID%>marqueesHeightone;

                                   <%=divID%>.scrollTop+=1;

                                  

                              }

                       }

                    

                     }

                     init_<%=divID%>srolltext1();

              </script>

 

"js+asp 的屏幕滚动脚本"由第二电脑网原创提供,转载请注明:http://www.002pc.com/master/College/Programming/ASP/2008-10-07/3055.html


关键字:

关于《js+asp 的屏幕滚动脚本》文章的评论

相关文章

    无相关信息
站内搜索: 高级搜索

热门搜索: Windows style 系统 tr IP QQ CPU 安装 function 注册 if td