Announcement

Collapse
No announcement yet.

<BODY OnLoad="NETQUOTEVAR:ONLOAD">???

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    <BODY OnLoad="NETQUOTEVAR:ONLOAD">???

    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
    KJ Beckett
    Men's Clothing & Accessories
    Cufflinks, Underwear, Ties, Grooming Products
    Bath, England
    Fast delivery to UK, USA and worldwide.
    Men's Fashion Blog

    #2
    That

    <BODY NETQUOTEVAR:BGIMAGE OnLoad="NETQUOTEVAR:ONLOAD" "javascript:get_display_items()" NETQUOTEVAR:BGCOLOR......and so on ....>

    doesn't seem right.

    Try
    Code:
    <BODY NETQUOTEVAR:BGIMAGE OnLoad="get_display_items();NETQUOTEVAR:ONLOAD" NETQUOTEVAR:BGCOLOR......and so on ....>
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Hi Norman

      It works but I didn't think it is correct. I will try your suggestion!

      Paul
      KJ Beckett
      Men's Clothing & Accessories
      Cufflinks, Underwear, Ties, Grooming Products
      Bath, England
      Fast delivery to UK, USA and worldwide.
      Men's Fashion Blog

      Comment

      Working...
      X