Skip navigation
Currently Being Moderated

click image, swap image elsewhere on page - how?

Jun 9, 2009 2:05 PM

Basic no doubt - but if you don't know how, it can be frustrating...   :?  I know it has to do with MM_swapImage - 2 actions are occuring.

 

1.  I have a thumbnail image - that swaps for an image on rollover
2.  (I need...) OnClick that thumbnail to have another larger image appear elsewhere on the page (different cell of a table) - how would the code look for this?

 

a.  Name of the place for the larger image is "[b]stage[/b]" (I've put a default spacer image there named stage_spacer.gif )
b.  Thumbnail is photo-1s
c.  Rollover thumbnail is photo-1TH
d.  Name of the larger image is photo-1

 

this is what I have so far, but it isn't working


<img src="assets/photo-1s.jpg" width="110" height="90" vspace="5" align="absbottom" id="Image1" onmouseover="MM_swapImage('Image1','','assets/photo-1TH.jpg',1)" onmouseout="MM_swapImgRestore()" onclick="MM_swapImage('assets/photo-1s.jpg','','assets/photo-1TH.jpg' ,'Stage','','assets/photo-1.jpg',1)""/>


the code for the other cell looks like this


<tr><td height="275" valign="top" class="bodyText"><p><span class="style1"><img src="mm_spacer.gif" name="stage" width="304" height="275" border="0"/></td></tr>

 

Help would be much appreciated ! !

 
Replies
  • Currently Being Moderated
    Jun 9, 2009 2:08 PM   in reply to kingjeremy02

    You can use spry gallery or master/detail (view source code).

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 10, 2009 8:38 AM   in reply to kingjeremy02

    "it" can't be done without customization of your javascript. Rewrite your swap image function with appropriate behaviors to make your current code function as desired.

     

    Good luck!

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 10, 2009 9:44 AM   in reply to kingjeremy02

    I think you're after a disjointed rollover effect:

     

    See if this tutorial sheds some light :

    http://www.communitymx.com/content/article.cfm?cid=E11E8

     

     

    --

    Nadia

    Adobe® Community Expert : Dreamweaver

    http://twitter.com/nadiap

    --------------------------------------------------

    Unique CSS Templates |Tutorials |SEO Articles

    http://www.DreamweaverResources.com

    http://csstemplates.com.au/

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points