This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > February 2006 > need help "nesting" images





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author need help "nesting" images
ditribal

2006-02-12, 6:37 pm

i am working on a website now and would like to have thumbnails of images along
the side of a black space where, when you click or rollover a thumbnail, a
larger version shows up. any advice on how to do this?

mattw

2006-02-12, 6:37 pm

Javascript is what you want. You'll need a javascript function that looks
something like:
function fn_ShowLarge(large_image) {
document.getElementById('large_img').src = large_image;
}

Then your thumbnail image would have an onmouseover event as this:
<img src="myThumb_1.jpg" onmouseover="fn_ShowLarge('myLargeImg_1')" />

Lastly, you'll need to assign an id to the <img> tag that will hold the large
image.
<img src="" id="large_img" />

Give it a shot. Ask questions if you get stuck.

.: Nadia :. *TMM*

2006-02-12, 6:39 pm

Look at the freebie behaviour at:
http://dreamweaverfever.com/grow/

half way down the page - look for "open picture window fever"... it will do
what you want.


Commercial extensions:
http://www.kaosweaver.com/extension...php?id=62&cid=7
http://www.valleywebdesigns.com/vwd_jspw3.asp

--
Nadia
Team MM Volunteer for Dreamweaver
--------------------------------------------
http://www.csstemplates.com.au
Templates|CSS Templates|
Dropdown Menu Designs | SEO Articles |Tutorials
http://www.DreamweaverResources.com
---------------------------------------------
Search this forum: http://tinyurl.com/2rfa2
---------------------------------------------

"ditribal" <webforumsuser@macromedia.com> wrote in message
news:dsfku3$t5p$1@forums.macromedia.com...
>i am working on a website now and would like to have thumbnails of images
>along
> the side of a black space where, when you click or rollover a thumbnail, a
> larger version shows up. any advice on how to do this?
>



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews