Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
DennyA #1
JavaScript swapPhoto help
I'm trying to modify some JavaScript. Right now, you click on a thumbnail of an
image and a larger version of the image appears in a larger box to the right.
I would like to change the thumbnail to text, so clicking on the text will
change the image in the box.
The html looks like this:
<a href="javascript:swapPhoto('clay_tile1.jpg','Spani sh style clay
tile')"><img src="pictures/clay_tile1_53x40.jpg" width="100" height="40"
border="0" />
The JavaScript looks like this:
// swap image and caption
function swapPhoto(photoSRC,theCaption,thePrice) {
var displayedCaption = document.getElementById("caption");
displayedCaption.firstChild.nodeValue = theCaption;
document.images.imgPhoto.src = "pictures/" + photoSRC;
}
Here's an example of a page I built using the thumbnails:
[url]http://www.connoisseurslateandtile.com/gallery.html[/url]
I'm trying to learn some JavaScript, but my eyes keep glazing over.
Thank you for your help,
Denny:A :confused;
DennyA Guest
-
Include javascript in a javascript file
Hello, Is there a way to include a javascript file from WITHIN a javascript file? Something similar as in the "#include" directive in C++? ... -
cfm to htm & javascript
We just upgraded from 5 to MX 7. We have a page that we flatten from cfm to htm. There are popup window links on the page in the form of... -
output text in control location; calling control javascript from page javascript
Hi; If you don't know, I'm just learning javascript and aspnet, but I have a pretty good grounding in windows programming. I'm trying to build a... -
JavaScript - How do you add an action to the JavaScript action menu
Greetings, I'd like to add custom script(s) to the drop down list of actions in Acrobat. We are creating an app where many authors will be... -
need javascript staff (anyone who knows javascript peroid) (READ)
hey its me ultimategamerx and im back in some clothes lol i need some people who know java script i need help please reply if ya know some



Reply With Quote

