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 ! !
You can use spry gallery or master/detail (view source code).
Thanks for your reply.
I can certainly see how spry gallery would be useful for a photo gallery type situation - it would be overkill for what I need however as the few images only comprise a portion of the page.
What I'm really looking for is how to fix the html code to make "it" work. I'm getting closer ... but not there yet ...
Here's the code as it sits now:
<img src="assets/photo-1s.jpg" alt="Photo manipulation thumb 1" width="110" height="90" vspace="5" align="absbottom" id="Photo1s" onmouseover="MM_swapImage('Photo1s','','assets/photo-1TH.jpg',1)" onmouseout="MM_swapImgRestore()"" onclick="MM_swapImage('stage','','assets/photo-1.jpg','Photo1s','','a ssets/stage_spacer.gif',1)"/>
Once I click the rollover image, the large image appears but the thumbnail disappears - I don't want the thumbnail to disappear while the disjointed larger image appears. onMouseout returns everything back to its original state.
What I'm after is a rollover on photo-1s to photo-1TH. But onclick,photo-1TH remains and "stage" is replaced with the larger "photo-1"
I'm sure it's something easy I'm missing. ![]()
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
--------------------------------------------------
Unique CSS Templates |Tutorials |SEO Articles
Nadia that's really close.
But instead of a disjointed rollover (where the disjointed image disappears on mouseout) - I have an onclick action that permanently displays the disjointed image until I click another button?
How do I adjust the HTML to accomplish this? Below is the HTML for a disjointed rollover - but how do I make the image stick onclick. Then swap the image when another button is clicked?
onMouseOver="MM_swapImage('image05T','','assets/gallery_images/image05 Th.jpg','Stage','','assets/gallery_images/image05.jpg',1)">
<img src="assets/gallery_images/image05T.jpg" name="image05T" width="47" height="70" border="0"></a><a href="#" onMouseOut="MM_swapImgRestore()"
image05T - is the initial thumbnail image
image05Th - is the rollover thumbnail image
image05 - is the disjointed larger image
a disjointed rollover is close but not quite it... ![]()
North America
Europe, Middle East and Africa
Asia Pacific