Announcement

Collapse
No announcement yet.

section list image rollover

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

    section list image rollover

    Hi all

    I have inserted a list of section images in accordance with the AUG.

    What Im trying to do is create a rollover image for each of those section images using:

    '<a href=' + pItem[i].sURL + '>
    <img src="' + pItem[i].sImage + '" alt="' + pItem[i].sName + '" width='+ pItem[i].nImageWidth + ' height=' + pItem[i].nImageHeight + ' border=0
    onMouseOver="MM_swapImage("","","f2/ '+ pItem[i].sImage +' ",1)" onMouseOut="MM_swapImgRestore()">
    </a>
    [where the rollover image has the same file name, but in a folder called 'f2'] and with

    <script>function MM_swapImgRestore() { //v3.0
    var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    }</script>
    in the head.

    I think Im getting confused with the 's and "s, can anyone please help.

    thanks in advance

    regards

    j

    #2
    I think your problem comes from the fact that 'sName' is not a value in the JavaScript array that is generated by Actinic.

    Take a look at Act_section_tree.js (or maybe Act_sections.js) within your Site1 folder to see the available fields within the array.

    Comment


      #3
      cheers cdicken

      i dont think sName has anything to do with it to be honest, because it appears in the original javascript that im trying to tweak.

      ive made do without the section image rollovers for now - but im very keen to get it going!

      all the best

      j

      Comment

      Working...
      X