Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Re: marquees


Message #1 by DANIEL RADU <radudanielro@y...> on Mon, 3 Dec 2001 05:24:37 -0800 (PST)
--0-185358216-1007385877=:45529
Content-Type: text/plain; charset=us-ascii


 
I'm sorry! I use IE, but in NN you can use instead of all colection layers collection.
 
  Sam Lewitan <slewitan@e...> wrote: Dear Daniel,
Thank you for your help.
However, the netscape debugger gives the folling error
"document.all is not a function."
Any suggestions?
Sam

> --0-944326543-1007123870=:98587
> Content-Type: text/plain; charset=us-ascii
> 
> 
> As I know, the marquee element works only on IE. You can simulate your 
own marquee using script. It's a little complicated, but it's working. An 
example would be more specific. The code would look like this:
>
> function Start()
> {
>   window.setTimeout("moveText()",400); //at every 0.4 seconds the text 
will move.
> }
> function moveText()
> {
>   document.all('movedText').style.pixelLeft +=10; //the text will be 
moved by 10 pixels to the right
>   if(document.all('movedText').style.pixelLeft >= 600) document.all
('movedText').style.pixelLeft = 0; //if the text will flow to far ( more 
than 600 pixels) the moving will be repeated
> }
>  
> 
> Moving 
text
> 
> 
> I hope it will work. Anyway, this technique is powerful, because helps 
you to add moving effects on text, images, tables and any other objects.
> 
> Good luck!
> 

Read the future with ebooks at B&N
http://service.bfast.com/bfast/click?bfmid=2181&sourceid=38934667&categoryid=rn_ebooks


---------------------------------
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.

  Return to Index