JavaScript swapPhoto help
i'm trying modify javascript. right now, click on thumbnail of image , larger version of image appears in larger box right.
i change thumbnail text, clicking on text change image in box.
the html looks this:
<a href="javascript:swapphoto('clay_tile1.jpg','spanish style clay tile')"><img src="pictures/clay_tile1_53x40.jpg" width="100" height="40" border="0" />
the javascript looks this:
// swap image , caption
function swapphoto(photosrc,thecaption,theprice) {
var displayedcaption = document.getelementbyid("caption");
displayedcaption.firstchild.nodevalue = thecaption;
document.images.imgphoto.src = "pictures/" + photosrc;
}
here's example of page built using thumbnails:
www.connoisseurslateandtile.com/gallery.html
i'm trying learn javascript, eyes keep glazing over.
thank help,
denny:a
i change thumbnail text, clicking on text change image in box.
the html looks this:
<a href="javascript:swapphoto('clay_tile1.jpg','spanish style clay tile')"><img src="pictures/clay_tile1_53x40.jpg" width="100" height="40" border="0" />
the javascript looks this:
// swap image , caption
function swapphoto(photosrc,thecaption,theprice) {
var displayedcaption = document.getelementbyid("caption");
displayedcaption.firstchild.nodevalue = thecaption;
document.images.imgphoto.src = "pictures/" + photosrc;
}
here's example of page built using thumbnails:
www.connoisseurslateandtile.com/gallery.html
i'm trying learn javascript, eyes keep glazing over.
thank help,
denny:a
More discussions in Dynamic HTML General Discussion (read only)
adobe
Comments
Post a Comment