Text to be moved (Marquee) _ Experience Exchange

Source: Internet
Author: User
The marquee tag is used to scroll text in the Available browsing area. This tag only applies to IE3 later versions of the browser.  
Format:
     Behavior= "..."
Bgcolor= "..."
Direction= "..."
Height= "..."
Width= "..."
Hspace= "..."
Vspace= "..."
Loop= "..."
Scrollamount= "..."
Scrolldelay= "..."
Onmouseout=this.start ()
Onmouseover=this.stop ()
A..
      
   
Property:
ALIGN: Used to align scrolling text by a set value. The values that can be set by align are: left,center,right,top,bottom. This property is not a must-use.
Cases:
     This scrolling text is set to the top alignment  
   
   
BEHAVIOR: You can have the browser work with the text as you set it once the text appears on the page. If you set the method to slide, the text moves to the document and stays on the margins. If set to alternate, the text moves from one side to the other. If set to scroll, the text will scroll repeatedly on the page. This property is not a must-use. The values that can be set are: Silide,alternate,scroll.
Cases:
     Text moves from one side to the other  
   
   
BGCOLOR: Used to set the background color of the caption. The background color can be set by the format or color name of the RGB, 16 binary values.
Cases:
     Use color name to set scrolling text background color red  
     Set the scrolling text background color to red with 16 binary values  
     Use RGB to set scrolling text background color red  
      
DIRECTION: Used to set the direction of text scrolling, you can set the values are: Left,right. This property is not a must-use.
Cases:
     Text scrolls to the left  
     Scroll the text to the right  
   
Height: Used to set the altitude of a scrolling caption, expressed as a percentage of a highly available pixel or a viewable page. This property is not a must-use.
Cases:
     The height of the scrolling caption is 10% of the visible page  
     The height of the scrolling caption is 12 pixels  
      
Width: Used to set the length of the caption, the width can be expressed as a percentage of pixels or visible pages. This property is not a must-use.
Cases:
     The width of the scrolling caption is 90% of the visible page  
     The width of the scrolling caption is 200 pixels  
      
Hspace: Used to set the blank space around the scrolling caption, the white space is expressed in pixels. This property is not a must-use.
Cases:
     Scrolling subtitles left and right blank space is 15 pixels  
     
Vspace: Used to set the blank space above and below the scrolling caption, the blank space is expressed in pixels. This property is not a must-use.
Cases:
     2-pixel white space above and below the scrolling caption  
     
LOOP: Used to set scrolling times for scrolling captions. When the loop has a value of "INFINITE" or "1", the text scrolls indefinitely. This property is not a must-use.
Cases:
     Text scrolling countless times  
     Text scrolling 5 times  
   
ScrollAmount: Used to set the interval after each continuous scrolling text, which is expressed in pixels. This property is not a must-use.
Cases:
     The interval after this text is 10 pixels  
      
Scrolldelay: Used to set the interval between two scrolling operations, which is measured in milliseconds. This property is not a must-use.
Cases:
     This text has a time interval of 5 milliseconds between scrolling two times

Onmouseout=this.start (): To continue scrolling when you set the mouse to move out of the area
Onmouseover=this.stop (): Stop scrolling When you are setting the mouse to move into the area
JavaScript for continuous scrolling
<textarea id="runcode24348"><!--define Pictures-- </textarea>
[Ctrl + A full selection Note: If you need to introduce external JS need to refresh to execute]
message Scrolling in the classic forum
<textarea id="runcode16062"></textarea>
[Ctrl + A full selection Note: If you need to introduce external JS need to refresh to execute]
<textarea id="runcode94035"><style type= "Text/css" > a {text-decoration:none;} </style></textarea>
[Ctrl + A full selection Note: If you need to introduce external JS need to refresh to execute]
Copy CodeThe code is as follows:


var marqueecontent=new Array ();
marqueecontent[0]= ' Refresh list ';
<% Dim Rs,sql
Call Online_users
sql = "Select O.username,u.realname from Tbl_online O left join Tbl_user U on O.username=u.username ORDER by O.logintime D ESC "
Set rs = conn.execute (SQL)
If not (rs.eof and RS.BOF) then
Count=1
Do and not rs.eof
%>
Marqueecontent[<%=count%>]= ' "><%=rs (" Realname ")%> ';
<% Rs.movenext
Count=count+1
Loop
End If
Rs.close
Set rs=nothing
Conn.close
Set conn=nothing
%>

<textarea id="runcode33556"><table style= "border:1px black Solid;" ><tr><td> <!--Marquee Body Head--and this is advertising ~~~~~~~~~ This is also advertising ~~~~~~~~~~~~~~~~ this How or advertising?????? WINDY2000 also makes an ad for himself. ~~~~~~~~~~ <!--Marquee Body Bottom--</td></tr></table></c 0></textarea>
[Ctrl + A full selection Note: If you need to introduce external JS need to refresh to execute]

<table style= "border:1px black Solid;" ><tr><td> <table style= "border:0px;padding:0px;" ><tr><td> <!--Marquee Body Head--and classic forum 163.com 21cn.com Happy New Year &lt ;! --Marquee Body Bottom-</td></tr></table> </td></tr></table> Direction1: &L T;input type= "button" value= "↑" onclick= "obj_marquee.direction= ' Up '" > <input type= "button" value= "↓" onclick= " obj_marquee.direction= ' Down ' > <input type= "button" value= "←" onclick= "obj_marquee.direction= ' left '" > < Input type= "button" value= "→" onclick= "obj_marquee.direction= ' right '" > <input type= "button" value= "X" onclick= " Obj_marquee.direction= "> Direction2: <input type=" button "value=" ↑ "onclick=" obj_marquee.direction2= ' Up ' " > <input type= "button" value= "↓" onclick= "obj_marquee.direction2= ' Down '" > <input type= "button" value= "←" onclick= "obj_marquee.direction2= ' Left '" > <inputType= "button" value= "→" onclick= "obj_marquee.direction2= ' right '" > <input type= "button" value= "X" onclick= "obj_ Marquee.direction2= ' ">
[Ctrl + A full selection Note: If you need to introduce external JS need to refresh to execute]
  • Related Article

    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.