Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
DennyA #1
Javascript works in IE and FF preview but not on web
:frown;
I've modified a photo gallery from Foundation Dreamweaver MX 2004.
The user clicks on a thumbnail and the picture appears in a larger photo area.
It was working fine until I added some more thumbnails. When I preview it in
either IE or Firefox, it works fine. When I upload it (including all of the
dependent files), the larger photo area blanks out when a thumbnail is clicked.
I've gone over the javascript code character by character and can't find any
difference between it and the sample. I've got javascript enabled.
The site is [url]www.connoisseurslateandtile.com/gallery.html[/url]
The javascript is:
// swap image and caption
function swapPhoto(photoSRC,theCaption,thePrice) {
var displayedCaption = document.getElementById("caption");
displayedCaption.firstChild.nodeValue = theCaption;
document.images.imgPhoto.src = "pictures/" + photoSRC;
}
I'm tearing my hair out. Any help would be greatly apreciated.
DennyA
[url]http://www.connoisseurslateandtile.com/gallery.html[/url]
DennyA Guest
-
Not able to preview javascript results in browser
i have inherited a web site with several -- <script language="Javascript" src="../scripts/xxxx.js"></script> -- statements in each page, and i... -
overprint preview setting in Javascript
Hello- I'm trying to control Acrobat 7's preferences through a javascript, specifically, the overprint preview checkbox. In the past I've used... -
PDF from scanner works in Acrobat but is blank in Preview
The subject just about says it all. I'm creating a PDF from Acrobat 6.0.1 Pro, scanning in basic 8-1/2x11" pages using an Epson Perfection 3170... -
4-state button behaviour: works in preview but not in browser
Hi, all, I have created a navbar with four-state buttons in Fireworks MX. It works all right in Preview of Button Editor. I saved the file,... -
Pop up Menu Works in fireworks preview but doesn't work when published.
When I put my pop up menu in dreamweaver the menu doesn't appear. It works in fireworks but when inserted in dreamweaver it doesn't work. Someone... -
DennyA #2
Re: Javascript works in IE and FF preview but not on web
:embarrassment;
Uhh, nothing wrong with the javascript. I made the mistaken assumption that
when I uploaded gallery.html that the photos I was going to swap would go with
them as dependent files. Oops.
My apologies to anyone who looked at the site and scratched their head.
DennyA
DennyA Guest



Reply With Quote

