Hi
I have just installed a peice of code (css left hand nav) that uses javascript. It requires the <BODY Onload> function to be used.
In the Act_Primary template I have amend the code from:
<BODY NETQUOTEVAR:BGIMAGE OnLoad="NETQUOTEVAR:ONLOAD" NETQUOTEVAR:BGCOLOR......and so on ....>
to include the new Onload funtion "javascript:get_display_items()" :
<BODY NETQUOTEVAR:BGIMAGE OnLoad="NETQUOTEVAR:ONLOAD" "javascript:get_display_items()" NETQUOTEVAR:BGCOLOR......and so on ....>
Everything works! But I realise this is probably not the best way to do this peice of code.
My options are that I incorporate it into the
NETQUOTEVAR:ONLOAD text or something else???
I would prefer to actually put it with the left hand nav code (so that if I remove the code this will also get removed) but becuase it is a body onload function I assume I HAVE to have it in the body tag? Is that correct?
Kind regards
Paul
KJ Beckett
I have just installed a peice of code (css left hand nav) that uses javascript. It requires the <BODY Onload> function to be used.
In the Act_Primary template I have amend the code from:
<BODY NETQUOTEVAR:BGIMAGE OnLoad="NETQUOTEVAR:ONLOAD" NETQUOTEVAR:BGCOLOR......and so on ....>
to include the new Onload funtion "javascript:get_display_items()" :
<BODY NETQUOTEVAR:BGIMAGE OnLoad="NETQUOTEVAR:ONLOAD" "javascript:get_display_items()" NETQUOTEVAR:BGCOLOR......and so on ....>
Everything works! But I realise this is probably not the best way to do this peice of code.
My options are that I incorporate it into the
NETQUOTEVAR:ONLOAD text or something else???
I would prefer to actually put it with the left hand nav code (so that if I remove the code this will also get removed) but becuase it is a body onload function I assume I HAVE to have it in the body tag? Is that correct?
Kind regards
Paul
KJ Beckett
Comment