Click to See Complete Forum and Search --> : marquee.


DanUK
06-28-2003, 11:40 AM
hello.
i have the following piece of code:

</tr><tr>
<td bgcolor="#FFFFFF" width="148" height="18"><strong><font size="1" face="Tahoma"><strong> Search . . .</strong></font></strong></td>
<td width="36" height="18"><img src="images/index_22.gif" width="36" height="18"></td>
</tr><tr>

Instead of having 'Search. . .' how can i make a marquee in that space, just for that length too? Are they easily created?

thanks if you can help.

Khalid Ali
06-28-2003, 12:04 PM
search the forums,you will find answer to this question...

Exuro
06-28-2003, 12:33 PM
http://www.htmlgoodies.com/tutors/marquee.html

I love that site :)

PeOfEo
06-28-2003, 01:32 PM
There is an html tag called marquee. You dont need java script or dhtml to do it just plain old html. Exuro's link is exactly what I am talking about. You just modify scroll direction and Scrollammound and the delay and you are set.

pyro
06-28-2003, 02:20 PM
Originally posted by PeOfEo
There is an html tag called marquee.Actually, no there is not. It is an IE proprietary tag.

DanUK
06-29-2003, 10:46 AM
thanks.. but what i actually meant was.. how can i get one to fit in that space i have ? I pasted the code originally.
Because the <marquee> </marquee> tags only work in IE how could i achieve it in JS? I lokoed on some sites, but it seems they only go 'big', i wanted it to fit in that small space :o
thanks if you can help.

pyro
06-29-2003, 02:03 PM
This, maybe? http://www.dynamicdrive.com/dynamicindex2/cmarquee.htm

DanUK
07-03-2003, 08:30 AM
hi again.
Does this look right for my JS marquee?

in HEAD:

<script LANGUAGE="JavaScript">
<!--
var message = " My messages here ";
var marqueeMessage = new String();

function scrollMarquee() {
marqueeMessage = document.marqueeForm.marqueeText.value;
document.marqueeForm.marqueeText.value = marqueeMessage.substring(1) + marqueeMessage.substring(0, 1);
setTimeout('scrollMarquee()', 200);
}

//-->
</script>

then:

<body onLoad="greet_visitor();scrollMarquee();">

and from my first reply, the 'space' i want it to fit in:

</tr><tr>
<form NAME="marqueeForm">
<font FACE="Tahoma" SIZE="3"><b>
<input NAME="marqueeText" SIZE="30">
<script LANGUAGE="JavaScript">
<!--
document.marqueeForm.marqueeText.value = message;
//-->
</script>
</tr><tr>


Thanks if you can help.