google search for: javascript marquee
共约有31,500项查询结果,这是第1-20项 。 搜索用时0.36秒
...
http://www.dartmouth.edu/~carlp/forms_java/marquee.html
http://javascript.internet.com/scrolls/marquee.html
http://www.msfrontpage.net/fp/jsmarquee.htm

解决方案 »

  1.   

    孟斑竹给你提供的文件源代码如下<!-- # ticker start for --><HTML><HEAD><TITLE></TITLE><style type=text/css> A:link { COLOR: #666633; TEXT-DECORATION: underline } A:hover { COLOR: #cc0000; TEXT-DECORATION: underline } A:visited { COLOR: #cc0000; TEXT-DECORATION: underline } TABLE {font-size:12px}</style>
    <SCRIPT language=JAVASCRIPT>
    <!--// --- Global variable stuff here       var theItemCount;       var theCurrentStory;       var theCurrentLength;       var theStorySummary;       var theTargetLink;       var theCharacterTimeout;       var theStoryTimeout;       var theBrowserVersion;       var theWidgetOne;       var theWidgetTwo;       var theSpaceFiller;       var theLeadString;       var theStoryState;// --- Check for old browser and force applet       theBrowserVersion = parseInt(navigator.appVersion);       if (theBrowserVersion < 4)       {          location.href = "ticker-974.htm";       }// --- Only run for V4 browsers (check browser again here - some old browsers won't do this inline)       function startTicker()       {          theBrowserVersion = parseInt(navigator.appVersion);          if (theBrowserVersion < 4)          {             location.href = "/ticker/ticker_applet-974.htm";             return;          }// ------ Check and fixup incoming data block          if(!document.body.children.incoming.children.properties)          {             document.all.incoming.innerHTML = "<DIV ID=\"properties\"><DIV ID=\"itemcount\">1</DIV></DIV><DIV ID=\"stories\"><DIV ID=\"1\"><DIV ID=\"Summary\">狥此穝籇厨 ET Today.com</DIV><DIV ID=\"SiteLink\">/index.htm</DIV><DIV ID=\"UrlLink\"></DIV></DIV></DIV>";          }// ------ Set up initial values          theCharacterTimeout = 50;          theStoryTimeout     = 5000;          theWidgetOne        =  "_";          theWidgetTwo        =  "-";// ------ Set up initial values          theStoryState       = 1;          theItemCount        = document.body.children.incoming.children.properties.children.itemcount.innerText;          theCurrentStory     = 0;          theCurrentLength    = 0;          theLeadString       = " ";          theSpaceFiller      = " ";// ------ Begin the ticker                 runTheTicker();       }// --- The basic rotate function       function runTheTicker()       {          if(theStoryState == 1)          {             setupNextStory();          }          if(theCurrentLength != theStorySummary.length)          {             drawStory();          }          else          {             closeOutStory();          }       }// --- Index to next story       function setupNextStory()       {          theStoryState = 0;          theCurrentStory++;          theCurrentStory = theCurrentStory % theItemCount;                    theStorySummary = document.body.children.incoming.children.stories.children[theCurrentStory].children.Summary.innerText;          theTargetLink   = document.body.children.incoming.children.stories.children[theCurrentStory].children.SiteLink.innerText;          if(theTargetLink == "")          {             theTargetLink = document.body.children.incoming.children.stories.children[theCurrentStory].children.UrlLink.innerText;          }             theCurrentLength = 0;          document.all.hottext.href = theTargetLink;       }// --- Draw a teletype line       function drawStory()       {          var myWidget;                    if((theCurrentLength % 2) == 1)          {             myWidget = theWidgetOne;          }          else          {             myWidget = theWidgetTwo;          }          document.all.hottext.innerHTML = theLeadString + theStorySummary.substring(0,theCurrentLength) + myWidget + theSpaceFiller;          theCurrentLength++;          setTimeout("runTheTicker()", theCharacterTimeout);       }// --- Finalise the item       function closeOutStory()       {          document.all.hottext.innerHTML = theLeadString + theStorySummary + theSpaceFiller;          theStoryState = 1;          setTimeout("runTheTicker()", theStoryTimeout);       }                     //--></SCRIPT>
    </HEAD>
      

  2.   

    <BODY bgColor=#ffffff onload=startTicker();><TABLE>
      <TR><TD>
          <DIV id=visible><A href="/" id=hottext target="_blank"></A></DIV>
      </TD></TR>
    </TABLE>
    <DIV id=incoming style="DISPLAY: none">
    <DIV id=stories>
    <DIV id=0>
          <DIV id=Summary>欢迎注册使用24小时滚动新闻,由Ynet网际传播提供</DIV>
          <DIV id=UrlLink>http://www.bjyouth.com/sj.jsp</DIV> 
    <DIV id=SiteLink></DIV>
    <DIV id=Duration>10 seconds</DIV>
    </DIV>
    <DIV id=1>
          <DIV id=Summary>
     
    <a href="http://www.ynet.com/view.jsp?oid=1719970">复业不满一年 太平人寿保费收入突破10亿</a>(09:43:18)</DIV>
          <DIV id=UrlLink>http://www.ynet.com/view.jsp?oid=1719970</DIV> 
    <DIV id=SiteLink></DIV>
    <DIV id=Duration>10 seconds</DIV>
    </DIV>
    <DIV id=2>
          <DIV id=Summary><a href="http://www.ynet.com/view.jsp?oid=1729639">北四环快速对接八达岭 健翔桥放行通车</a>(09:07:10)</DIV>
          <DIV id=UrlLink>http://www.ynet.com/view.jsp?oid=1729639</DIV> 
    <DIV id=SiteLink></DIV>
    <DIV id=Duration>10 seconds</DIV>
    </DIV>
    <DIV id=3>
          <DIV id=Summary><a href="http://www.ynet.com/view.jsp?oid=1729667">外交部谈我国对伊决议投赞成票的原因</a>(09:05:08)</DIV>
          <DIV id=UrlLink>http://www.ynet.com/view.jsp?oid=1729667</DIV> 
    <DIV id=SiteLink></DIV>
    <DIV id=Duration>10 seconds</DIV>
    </DIV>
    <DIV id=4>
          <DIV id=Summary><a href="http://www.ynet.com/view.jsp?oid=1730269">伊称其防空部队向入侵的美英战机开火</a>(09:03:40)</DIV>
          <DIV id=UrlLink>http://www.ynet.com/view.jsp?oid=1730269</DIV> 
    <DIV id=SiteLink></DIV>
    <DIV id=Duration>10 seconds</DIV>
    </DIV>
    <DIV id=5>
          <DIV id=Summary><a href="http://www.ynet.com/view.jsp?oid=1730399">人民网:直布罗陀公决拒绝英西主权共享</a>(09:02:55)</DIV>
          <DIV id=UrlLink>http://www.ynet.com/view.jsp?oid=1730399</DIV> 
    <DIV id=SiteLink></DIV>
    <DIV id=Duration>10 seconds</DIV>
    </DIV>
    <DIV id=6>
          <DIV id=Summary><a href="http://www.ynet.com/view.jsp?oid=1729769">台商希望两岸"三通" 批评台当局劳民伤财</a>(09:02:32)</DIV>
          <DIV id=UrlLink>http://www.ynet.com/view.jsp?oid=1729769</DIV> 
    <DIV id=SiteLink></DIV>
    <DIV id=Duration>10 seconds</DIV>
    </DIV>
    <DIV id=7>
          <DIV id=Summary><a href="http://www.ynet.com/view.jsp?oid=1730389">北京拟建十条特色商业街 百姓消费更方便</a>(08:59:14)</DIV>
          <DIV id=UrlLink>http://www.ynet.com/view.jsp?oid=1730389</DIV> 
    <DIV id=SiteLink></DIV>
    <DIV id=Duration>10 seconds</DIV>
    </DIV>
    <DIV id=8>
          <DIV id=Summary><a href="http://www.ynet.com/view.jsp?oid=1719890">江泽民在十六大开幕式上报告全文</a>(14:01:02)</DIV>
          <DIV id=UrlLink>http://www.ynet.com/view.jsp?oid=1719890</DIV> 
    <DIV id=SiteLink></DIV>
    <DIV id=Duration>10 seconds</DIV>
    </DIV>
    <DIV id=9>
          <DIV id=Summary><a href="http://www.ynet.com/view.jsp?oid=1691675">北京将建世界最大的室内滑雪馆</a>(10:55:27)</DIV>
          <DIV id=UrlLink>http://www.ynet.com/view.jsp?oid=1691675</DIV> 
    <DIV id=SiteLink></DIV>
    <DIV id=Duration>10 seconds</DIV>
    </DIV>
    <DIV id=10>
          <DIV id=Summary><a href="http://www.ynet.com/view.jsp?oid=1714840">高院公布司法解释 偷税罪最高处7年徒刑</a>(09:30:36)</DIV>
          <DIV id=UrlLink>http://www.ynet.com/view.jsp?oid=1714840</DIV> 
    <DIV id=SiteLink></DIV>
    <DIV id=Duration>10 seconds</DIV>
    </DIV>
    <DIV id=11>
          <DIV id=Summary><a href="http://www.ynet.com/view.jsp?oid=1716622">十六大隆重开幕 江泽民向大会作报告</a>(09:24:06)</DIV>
          <DIV id=UrlLink>http://www.ynet.com/view.jsp?oid=1716622</DIV> 
    <DIV id=SiteLink></DIV>
    <DIV id=Duration>10 seconds</DIV>
    </DIV>
    <DIV id=12>
          <DIV id=Summary><a href="http://www.ynet.com/view.jsp?oid=1718251">重庆轻轨一期工程可望2004年建成通车</a>(08:55:44)</DIV>
          <DIV id=UrlLink>http://www.ynet.com/view.jsp?oid=1718251</DIV> 
    <DIV id=SiteLink></DIV>
    <DIV id=Duration>10 seconds</DIV>
    </DIV>
    <DIV id=13>
          <DIV id=Summary><a href="http://www.ynet.com/view.jsp?oid=1714675">中国未来五年将培育若干个大型媒体集团</a>(08:54:39)</DIV>
          <DIV id=UrlLink>http://www.ynet.com/view.jsp?oid=1714675</DIV> 
    <DIV id=SiteLink></DIV>
    <DIV id=Duration>10 seconds</DIV>
    </DIV>
    <DIV id=14>
          <DIV id=Summary><a href="http://www.ynet.com/view.jsp?oid=1718420">中国电信获超额认购 每股发售价1.47港元</a>(08:49:09)</DIV>
          <DIV id=UrlLink>http://www.ynet.com/view.jsp?oid=1718420</DIV> 
    <DIV id=SiteLink></DIV>
    <DIV id=Duration>10 seconds</DIV>
    </DIV>
    <DIV id=15>
          <DIV id=Summary><a href="http://www.ynet.com/view.jsp?oid=1718470">国际红十字会人员在加沙地带南部遭绑架</a>(08:35:44)</DIV>
          <DIV id=UrlLink>http://www.ynet.com/view.jsp?oid=1718470</DIV> 
    <DIV id=SiteLink></DIV>
    <DIV id=Duration>10 seconds</DIV>
    </DIV>
    <DIV id=16>
          <DIV id=Summary><a href="http://www.ynet.com/view.jsp?oid=1718450">俄食物中毒人数已超800人 含500余儿童</a>(08:31:42)</DIV>
          <DIV id=UrlLink>http://www.ynet.com/view.jsp?oid=1718450</DIV> 
    <DIV id=SiteLink></DIV>
    <DIV id=Duration>10 seconds</DIV>
    </DIV>
    <DIV id=17>
          <DIV id=Summary><a href="http://www.ynet.com/view.jsp?oid=1710782">北京23种药品公布最高限价 10日起执行</a>(11:46:45)</DIV>
          <DIV id=UrlLink>http://www.ynet.com/view.jsp?oid=1710782</DIV> 
    <DIV id=SiteLink></DIV>
    <DIV id=Duration>10 seconds</DIV>
    </DIV>
    <DIV id=18>
          <DIV id=Summary><a href="http://www.ynet.com/view.jsp?oid=1710651">岁至年终 中国足协迎来会议高峰期</a>(11:46:03)</DIV>
          <DIV id=UrlLink>http://www.ynet.com/view.jsp?oid=1710651</DIV> 
    <DIV id=SiteLink></DIV>
    <DIV id=Duration>10 seconds</DIV>
    </DIV>
    <DIV id=19>
          <DIV id=Summary><a href="http://www.ynet.com/view.jsp?oid=1710576">中国《反低价倾销工业品规定》有望年底出台</a>(11:45:08)</DIV>
          <DIV id=UrlLink>http://www.ynet.com/view.jsp?oid=1710576</DIV> 
    <DIV id=SiteLink></DIV>
    <DIV id=Duration>10 seconds</DIV>
    </DIV>
    <DIV id=20>
          <DIV id=Summary><a href="http://www.ynet.com/view.jsp?oid=1710497">北京:大学生入伍享受六项优待政策</a>(11:44:20)</DIV>
          <DIV id=UrlLink>http://www.ynet.com/view.jsp?oid=1710497</DIV> 
    <DIV id=SiteLink></DIV>
    <DIV id=Duration>10 seconds</DIV>
    </DIV></DIV>
    <DIV id=properties>
     <DIV id=itemcount>21</DIV>
    </DIV>
    </DIV>
    </BODY></HTML>
    <!-- # ticker end -->
      

  3.   

    高手们,你们的程序怎么都有错呢或者直接给我一个网址我下载
    thanks