Three text scroll up code

Source: Internet
Author: User
Tags eval visibility

<title> three text scroll up code </title>
<style Type=text/css Tutorials >
#divascontainer {
Clip:rect (0px 320px 120px 0px); height:120px; left:10px; Overflow:hidden; Position:absolute; top:10px; Visibility:hidden; width:250px
}
#divascontent {
left:0px; Position:absolute; top:0px
}
Body {
font:11px Tahoma, Arial, Helvetica, Sans-serif
}
div {
font:11px Tahoma, Arial, Helvetica, Sans-serif
}
</style>
<script language= Web page Special effects >
Begin absolutely positioned scrollable area object scripts
function Verifycompatiblebrowser () {
This.ver=navigator.appversion
this.dom=document.getelementbyid?1:0
This.ie5= (This.ver.indexof ("MSIE 5") >-1 && this.dom)? 1:0;
this.ie4= (document.all &&!this.dom)? 1:0;
this.ns5= (this.dom && parseint (this.ver) >= 5)? 1:0;
this.ns4= (document.layers &&!this.dom)? 1:0;
this.bw= (this.ie5 | | this.ie4 | | this.ns4 | | this.ns5)
return this
}
Bw=new Verifycompatiblebrowser ()
lstart=120
Loop=true
Speed=50
Pr_step=3
function Constructobject (obj,nest) {
Nest= (!nest)? ': ' Document. ' +nest+ '. '
This.el=bw.dom?document.getelementbyid (obj): bw.ie4?document.all[obj]:bw.ns4?eval (nest+ ' document. +obj): 0;
This.css=bw.dom?document.getelementbyid (obj). Style:bw.ie4?document.all[obj].style:bw.ns4?eval (nest+ ' document. +obj): 0;
This.scrollheight=bw.ns4?this.css.document.height:this.el.offsetheight
This.newsscroll=newsscroll;
This.moveit=b_moveit; this.x; This.y;
This.obj = obj + "Object"
Eval (this.obj + "=this")
return this
}
This.x=x;this.y=y
This.css.left=this.x
This.css.top=this.y
}
Makes the object scroll up
function Newsscroll (speed) {
if (this.y>-this.scrollheight) {
This.moveit (0,this.y-pr_step)
SetTimeout (this.obj+ ". Newsscroll (" +speed+ ")", speed)
}else if (loop) {
This.moveit (0,lstart)
Eval (this.obj+. Newsscroll ("+speed+"))
}
}
function Initialiseautoscrollarea () {
Objcontainer=new constructobject (' Divascontainer ')
Objcontent=new constructobject (' divascontent ', ' Divascontainer ')
Objcontent.moveit (0,lstart)
objcontainer.css.visibility= ' Visible '
Objcontent.newsscroll (Speed)
}
End absolutely positioned scrollable area object scripts
</script>
<body bgcolor= "#fef4d9" Onload=initialiseautoscrollarea () >
Text Scroll up Code

<div id=divascontainer>
<div id=divascontent><b> text scroll up code </b>
Not until after the loss of regret. Www.111cn.net dust The most painful thing in the world is not too much.
Text Scroll up code
<b> text up-scrolling code </b>
</div>
</div>
</body>

Code two

<style type=text/css>
<!--
body,td,th {
letter-spacing:2px;
line-height:18px;
}
-->
</style>

<marquee Onmouseo Tutorial Ver=this.stop () Onmouseout=this.start () scrollamount=4 scrolldelay=90 direction=up width= "100% "Height=400>
<table>
<tbody>
<tr>
<td> scrolling Text </td></tr>
<tr>
<td> scrolling Text </td></tr>
<tr>
<td> scrolling Text </td></tr>
<tr>
<td> scrolling Text </td></tr>
<tr>
<td> scrolling Text </td></tr>
<tr>
<td> scrolling Text </td></tr>
<tr>
<td> scrolling Text </td></tr>
<tr>
<td> scrolling Text </td></tr></tbody></table></marquee>


Text scroll up three

<table border= "1" bordercolor= "#000000" bgcolor= "#6699ff" cellpadding= "5" cellspacing= "0" >
<tr>
<td>
<script language=javascript>

document.write ("<marquee scrollamount= ' 1 ' scrolldelay= ' direction= ' up ' width= ' id= ' helpor_net '" height= ') The ' onmouseover= ' helpor_net.stop () ' onmouseout= ' Helpor_net.start () ' Author:redriver; For more,visit:www.helpor.net> ")

document.write ("document.write ("<p align= ' right ' ><a href= ' # ' target= ' _blank ' ><font color= '" #ffffff ') > Xu Zhimo </font ></a> ")
document.write ("<p><font color= ' #ffffff ' >")
document.write ("<br> I am a cloud in the sky,")
document.write ("<br> occasionally projecting in your wave heart www.111cn.net--")
document.write ("<br> you don't have to be surprised,")
document.write ("<br> no need to be happy--")
document.write ("<br> wiped out the trace in a twinkling." ")
document.write ("<br>")
document.write ("<br> you and I meet in the Dark Sea,")
document.write ("<br> you, I have my, direction;")
document.write ("<br> You remember Well,")
document.write ("<br> best You Forget,")
document.write ("<br> in the intersection of the light!" ")
document.write ("</font>")

document.write ("</marquee>")
</script>
</td>
</tr>
</table>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.