I have a twist on the problem that a lot of people seem to have with TOPLEVELSECTIONSTOP in that it won't display on the cart, site map etc. pages. Normally it's a fairly simple JavaScript replace ... except this is designed for a left hand navigation that uses simple text links.
I'm using images and using a CUSTOMVAR called SECTIONNAME which I define for each top level section and use to create a rollover effect (see code below and http://trials.actinic.com/trials/trial23617/index.html). (Forgive the WIP.)
I want to modify the JavaScript but I need to know firstly how to call the CUSTOMVAR and secondly how to refer to the CUSTOMVAR string.
Will <!--@act CUSTOMVAR:SECTIONNAME --> work? and if so how would I refer to the customvar strings e.g. pItem[i].sString
Thanks
........................
<A HREF="NETQUOTEVAR:SECTIONLINK" TARGET="_self" onMouseOver="SwapImage('CUSTOMVAR:SECTIONNAME','CUSTOMVAR:SECTIONNAME.2.gif')" onMouseOut="RestoreImage()">
<img src="CUSTOMVAR:SECTIONNAME.gif" ALT="NETQUOTEVAR:SECTIONNAME"
NAME="CUSTOMVAR:SECTIONNAME"
BORDER=0
HEIGHT=25
WIDTH=150
></A>
I'm using images and using a CUSTOMVAR called SECTIONNAME which I define for each top level section and use to create a rollover effect (see code below and http://trials.actinic.com/trials/trial23617/index.html). (Forgive the WIP.)
I want to modify the JavaScript but I need to know firstly how to call the CUSTOMVAR and secondly how to refer to the CUSTOMVAR string.
Will <!--@act CUSTOMVAR:SECTIONNAME --> work? and if so how would I refer to the customvar strings e.g. pItem[i].sString
Thanks
........................
<A HREF="NETQUOTEVAR:SECTIONLINK" TARGET="_self" onMouseOver="SwapImage('CUSTOMVAR:SECTIONNAME','CUSTOMVAR:SECTIONNAME.2.gif')" onMouseOut="RestoreImage()">
<img src="CUSTOMVAR:SECTIONNAME.gif" ALT="NETQUOTEVAR:SECTIONNAME"
NAME="CUSTOMVAR:SECTIONNAME"
BORDER=0
HEIGHT=25
WIDTH=150
></A>
Comment