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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple javascripts using onLoad command

Status
Not open for further replies.

WendySBC

Technical User
Apr 19, 2001
2
US
I am really new at all this and having a problem. I have two javascripts on one page that both use the onload command. One is a scrolling messgae in the staus bar : onLoad="moveImg()" and the other is a cursor text trailer: onLoad="makesnake()" which also uses :STYLE="width:100%;overflow-x:hiddeoverflow-y:scr in the body tag. I used: onLoad="moveImg()=makesnake()" which finally got them both working, but my cursor text changed to match my status bar text. How do I get them both to work at the same time each using their own text message? Can anyone help me with this problem?
 
Just tried your suggestion and got an error message "Object expected" and the cursor text trailer didn't show up at all.This is so annoying! : )
 
how about

function loadStuff(){ moveImg()
makesnake() }

in the <head>, then <body onload=&quot;loadStuff()&quot;>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top