Log in

View Full Version : $onload variable


dlg
01-06-2005, 07:11 PM
Hi all,

I'm having a js error on some of my pages, new thread and reply thread templates.

I'm using this code:



</head>
<script language="JavaScript">
function setup() {
addImgHovers(["menu1", "menu2", "menu3", "menu4", "menu5", "menu6", "menu7"], "gif");
}
</script>
<body onLoad="setup();" $onload>


As im using a rollover, if i switch my body tag like this:

<body$onload onLoad="setup();">

then my rollover doesnt work

Is there a way to edit the $onload variable to add in there my onload function too?

Thanks in advance.