onLoad problems

admin

Administrator
Staff member
Well hi there, Ive got a huge problem and I need someones help.

On my new web site, I have created tables that expand at a click of a button. problem is that I need to add the onLoad tag to make sure they are closed when the user enters the page.

Well the script I used on the page works fine but when I try to add multiple scripts (onLoad="return toggleMenu('???');return toggleMenu('???')">

(???=the name of the <SPAN ID=???> which the content is held inside)

When I do the script above, it only executes the last toggleMenu('') entered.

I have tried inserting a multiple onload script which basically consists of:

<script language="javascript">
function LoadFuncs(){
return toggleMenu('Dreamweaver')
return toggleMenu('Fireworks')
return toggleMenu('Flash'){
</script>

this script was stated that it should work but unfortunally it does the exact same and doing it through BODY ONLOAD.

CAN ANY ONE HELP. I have read somewhere that you cannot execute more then one of the same function in a onLoad script. I have found a way to get two of the SPANS to close, by taking out the "Return" from "toggleMenu". Then it works fine, apart from I cannot use more then 2.

Please email me with details>>>

Gavin :confused: :mad:
 
Back
Top