Question
Why isn't my javascript working? When I click on the thumbnail it is suppose to be viewed in the larger window, help
Click here to see codes
Answer
Look here
Answer
You left out half the code. This part goes in the <head> section:
HTML Code:
<HEAD>
******** LANGUAGE="JavaScript">
<!-- Original: Jenny Blewitt (webmaster*webdesignsdirect.com) -->
<!-- Web Site: http://www.webdesignsdirect.com -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
ns3up = (browserName == "Netscape" && browserVer >= 3);
ie4up = (browserName.indexOf("Microsoft") >= 0 && browserVer >= 4);
function doPic(imgName) {
if (ns3up || ie4up) {
imgOn = ("" + imgName);
document.mainpic.src = imgOn;
}
}
// End -->
</script>
</HEAD>
You *can* use that on a web page, but it's not legal to use it on ebay.
Answer
Originally Posted by jayne
You left out half the code. This part goes in the <head> section:
HTML Code:
<HEAD>
******** LANGUAGE="JavaScript">
<!-- Original: Jenny Blewitt (webmaster*webdesignsdirect.com) -->
<!-- Web Site: http://www.webdesignsdirect.com -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
ns3up = (browserName == "Netscape" && browserVer >= 3);
ie4up = (browserName.indexOf("Microsoft") >= 0 && browserVer >= 4);
function doPic(imgName) {
if (ns3up || ie4up) {
imgOn = ("" + imgName);
document.mainpic.src = imgOn;
}
}
// End -->
</script>
</HEAD>
You *can* use that on a web page, but it's not legal to use it on ebay.
You can get around this by putting an embedded script.
Here's a link to one I use based on a Spare Dollar Template, I came up the the script for doing this.
http://www.practiceboard.com/?190533
Here it is in action. This does work on ebay.
http://www.practiceboard.com/?190550