Thread: DHTML Problem
View Single Post
  #6   Spotlight this post!  
Unread 11-03-2003, 20:08
jonathan lall's Avatar
jonathan lall jonathan lall is offline
Registered User
FRC #2505 (The Electric Sheep; FRC #0188 alumnus)
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: Toronto, Canada
Posts: 547
jonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond repute
Send a message via MSN to jonathan lall
I haven't yet looked through your code, but I'd speculate that the problem was that both scripts required a function to be assigned to window.onload so that the function will be called when the browser has finished loading the page. When the second one is assigned to window.onload it overwrites the first one. This is normal browser behaviour and can also be solved by adding an onload element to your body attribute with the two onloads seperated by semicolons:

onload= "scriptOne();scriptTwo()"

So there's another solution. If I diagnosed the problem right. Maybe I'll actually look a the code if I get time.
__________________