Announcement

Collapse
No announcement yet.

Section Link Rollover

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

    Section Link Rollover

    Hi All
    I declared to CUSTOMVARS , SECTIONIMAGE2 and SECTIONIMAGE
    and intiliased them under Section Properties ...All I see is an empty place holder for the image, the image does not show up..


    Why does this code not work For Section Link Rollovers.

    <TABLE BORDER="5" CELLSPACING="0" CELLPADDING="10">

    <TR>


    <TD ALIGN="LEFT" VALIGN="TOP">
    <A HREF ="NETQUOTEVAR:SECTIONLINK">
    <IMG SRC ="CUSTOMVAR:SECTIONIMAGE"
    ALT="NETQUOTEVAR:SECTIONNAME"
    ONMOUSEOVER="SRC='CUSTOMVAR:SECTIONIMAGE2'"
    OMMOUSEOUT="SRC='CUSTOMVAR:SECTIONIMAGE'" border="0">
    </a>
    </TD>

    #2
    Inside your event handlers (the mouseover and mouseout commands) you need to specify which element's 'src' property you want to change - do this with the 'this' keyword:
    Code:
    onmouseover="this.src='CUSTOMVAR:SECTIONIMAGE2'"
    onmouseout="this.src='CUSTOMVAR:SECTIONIMAGE'"
    www.gbradley.co.uk
    Web Development, Actinic Patches, Scripts & more

    Comment


      #3
      HI
      Thanks..I have already changed the code and got it to work...many thanks..but it seems that you have to declare the CUSTOMVARs for each section...which is a bit of work..I thought they were global variables which only need to be declared once..
      cheers

      Comment

      Working...
      X