Announcement

Collapse
No announcement yet.

Applying mouseover and mouseout to Act_SectionLineImage,html

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

    #16
    Why not just create a CUSTOMVAR for the text you use as a prefix. Good pratcie when using rollover effects is to create 2 states of the image. I tend to use a suffix of 2 but if you were to use this idea you would have to use a prefix.

    Example: exampleimage.jpg & 2_exampleimage.jpg.

    Using this method would save loads of time as you wouldn't have to add the rollover image for every product under the properties tab. Instead you could simply set the CUSTOMVAR once under design>site defaults. Providing your rollover images are always the same format and the same name (wthout the prefix).

    If your CUSTOMVAR was CUSTOMVAR:ROLLOVERPREFIX The html code would look something like this:
    <!-- SectionNavImage_Hover HTML begin -->
    <IMG SRC="NETQUOTEVAR:IMAGEFILE"
    ALT="NETQUOTEVAR:ALTERNATETEXT"
    BORDER=0
    NETQUOTEVAR:IMAGEHEIGHT
    NETQUOTEVAR:IMAGEWIDTH
    NETQUOTEVAR:OTHERIMAGEMARKUP
    ALIGN="ABSMIDDLE" title="" onmouseover="this.src='CUSTOMVAR:ROLLOVERPREFIXNETQUOTEVAR:IMAGEFILE'"
    onmouseout="this.src='NETQUOTEVAR:IMAGEFILE'">
    <!-- SectionNavImage_Hover HTML end -->
    Under design>site defaults just set up CUSTOMVAR:PREFIX and set the value to "2_" if that is the prefix you want to use.

    That should work,
    regards
    Bangers
    Boxhedge New Media Design
    Design and development solutions for SME's.
    Tel: 0118 966 2786
    Examples of work can be found at http://www.boxhedge.com

    Comment


      #17
      Bangers,

      Apologies for not picking up on your reply until now, but I have been ploughing through the guts of my site, however ....

      I haven't tried it yet but your solution seems much better than what I was intending to attempt.

      It looks easier and should overcome the problem I had with rollover images showing on ALL section levels, when I modified the Act_SectionImage template.

      Q. We were having problems with CUSTOMVAR's and NQV's flushing into code in this template, (see replies further up this thread). We couldn't resolve why, have you had this problem ?

      Will spend an hour or three on this later.

      Appreciated, Simon.
      esafetysigns.co.uk
      your instant download portal for self printable health and safety signs and posters
      ... download once use as many times as you like !


      http://www.esafetysigns.co.uk/index.html
      http://www.esafetysigns.co.uk/acatalog/index.html

      Comment

      Working...
      X