Forum Moderators: open

Message Too Old, No Replies

oicture and text flying from right to left

         

yllai

7:35 am on Dec 16, 2004 (gmt 0)

10+ Year Member



Hi,

I have a picture A and text "Merry Christmas"...

In my page, I wanna to let the picture A and the "Merry Christmas" flying contineously from right to left..can it be done? any help?

Where can I get the source code of this?

thanks.

Span

11:37 pm on Dec 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi,
there are some nice floating layers scripts at dyn-web.com

adni18

3:13 am on Dec 17, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try googling "javascript sprites". That should help you there.

Rambo Tribble

5:01 am on Dec 17, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Most current browsers support the marquee HTML element, which will do this with little effort. Try this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Untitled</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
</head>
<body>
<marquee direction="right">
<div style="width:200px;text-align:center;"> <!-- adjust width accordingly -->
<img src="your_image.gif" alt="" /><br />Have a Meritable Xmas
</div>
</marquee>
</body>
</html>

adni18

4:57 am on Dec 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



also, it sounds as though you want it to bounce. to do that, add behavior="alternate" to the marquee tag.

Rambo Tribble

2:22 pm on Dec 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You may wish to note that behaviors may produce unpredictable results on some browsers.