如何在没有选框标签的情况下显示新闻

时间:2010-05-22 09:12:51

标签: javascript html

不使用marquee标签我想显示下面代码的新闻。我想使用JavaScript而不是marquee标签。如何使用JavaScript来做到这一点?

   <marquee style="width: 292px; border-bottom: 1px solid rgb(221, 221, 221);" align="top" behavior="scroll" direction="up" onmouseout="this.start();" onmouseover="this.stop();" scrollamount="1" scrolldelay="25" truespeed="" id="mSpeed" bgcolor="#f1f2ec" height="500">


                    <div style="padding: 5px; height: 153px;" class="workshopDesc bottomHorzLine ">
                        <div class="workshopTitle" align="left">Financial Management Training</div>

                        <div class="workshopDate"><font color="#ff0000" size="1"><strong>Date: Friday, May 28, 2010</strong></font></div>
                        <div class="workshopRPName"><strong>Resource Person: Saif Rahman<br>Independent Consultant in Business Case Development and Financial Management</strong></div>

                        <div class="workshopDesc">Mr. Saif Rahman is an Independent Consultant in Business Case Development and Financial Management with rich experience of corporate sectors of both North America and South-East Asia....
                        <div style="float: right; width: 150px;" align="right"><img src="images/icons_more.gif" align="absmiddle" width="12" height="12" hspace="5"><a href="http://BdjobsTraining.com/workshop_formate.asp?TID=518" class="workshopLink" target="_blank">Click here for detail</a></div>
                        </div>
                    </div> 
            </marquee>

1 个答案:

答案 0 :(得分:1)

如果您不想使用marquee标记,可以使用 javascript news ticker script 。链接上有说明。