Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Marquee LOOp Problem

Status
Not open for further replies.

glenmac

Technical User
Jul 3, 2002
947
CA
Hi I've got a marque I'd like to show one time. It loops twice whith the folowing code.
Code:
<marquee SCROLLAMOUNT=&quot;2&quot; direction = &quot;down&quot; loop=&quot;1&quot; height=35 width=350 style=&quot;position:absolute; top:55; left:135&quot;> 
        <h2><b>God Bless you and yours</B></h2></marquee
I've tried loop = &quot;0&quot; and loop= &quot;-1&quot; in both cases it continously loops. Can anyone tell me how to Show it once?
 
may I recommend not using a marquee?

I know this may seem conservative but marquees are annoying 99% of the time.

It should be used only in certain moments and areas where the end user is sure to want such a thing :

Quoting Jacob Nielsen ( :

&quot;Multiplexing the display. Animation can be used to show multiple information objects in the same space. A typical example is client-side imagemaps with explanations that pop up as the user moves the cursor over the various hypertext anchors. It is also possible to indicating the active areas by having them shimmer or by surrounding them with a marquee of &quot;marching ants&quot;. As always, objects should only move when appropriate (e.g., when the cursor is over the image).&quot; Gary Haran
 
Thanks guys for your help. The marquee works great with my page layout so I think I'll keep it.
 
Hi glenmac,

First let me tell you that I agree with xutopia to be careful with marquee's. But if you only want to show it once, make some fine styling and the marquee is &quot;saying&quot; something, then in certain circumstances it won't have to be annoying.

I'm not sure if you ment this, but I suppose you want the marquee to show once and then stop at the end?

This can be done by adding the attribute 'behavior' to the marquee tag:

behavior=&quot;scroll&quot; is the default !! (It enter the marquee on one side of the screen and travels to the opposite side and cycles repeatedly from where it started.)

behavior=&quot;slide&quot; will enter the marquee from one side of the screen and comes to stop at the opposite side.

behavior=&quot;alternate&quot; bounces the marquee from one side of the screen to the other.

Try these examples and experiment with different values of the attributes:

<marquee direction = &quot;down&quot; behavior=&quot;slide&quot; loop=&quot;1&quot; height=35 width=350 >
<h2><b>God Bless you and yours</B></h2></marquee>
<br><br>
<marquee SCROLLAMOUNT=&quot;2&quot; direction = &quot;down&quot; loop=&quot;3&quot; behavior=&quot;alternate&quot; height=35 width=350 >
<h2><b>God Bless you and yours</B></h2></marquee>

Hope this helps,
Erik <-- My sport: Boomerang throwing !!
!! Many Happy Returns !! -->
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top