Announcement

Collapse
No announcement yet.

Changing description text onRollover

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

    Changing description text onRollover

    Is there a way to change description text so that when you select different products, the description text changes for that product you have just rolled on?

    I have managed to apply a rollOver function to the product template, when you rollOver the smaller products, it changes the larger image to that product image, I'm after the same effect for the text but can't seem to get it to work.

    Anyone know of an easy way - mainly for updating by the client.

    Thanx

    #2
    You could surround your main description in <span id="maintext">NETQUOTEVAR:PRODUCTDESCRIPTION</span>

    and in the secondary products try some JavaScript like
    Code:
    document.getElementById('maintext').innerHTML = 'NETQUOTEVAR:PRODUCTDESCRIPTION';
    There may be problems if the description is too long, contains embedded JavaScript (unlikely), etc. Try it and see.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment

    Working...
    X