Hi every1
I’m a graohic designer and my boss sometimes gets me to do web stuff.
And he emailed me this script and told me to make it work. So I used another client’s website and made a test page at http:[url]www.geoffdutton.com/test.html
Here’s what he emailed me — can anyone help? It’s my first time touching Javascript
Cyn
<!– TWO STEPS TO INSTALL GALLERY VIEWER:
1. Copy the coding into the HEAD of your HTML document2. Add the last code into the BODY of your HTML document –>
<!– STEP ONE: Paste this code into the HEAD of your HTML document –>
<HEAD>
<SCRIPT LANGUAGE=”JavaScript”>
<!– Original: Jenny Blewitt (
<!– Web Site: [url]http://www.webdesignsdirect.com
<!– This script and many more are available free online at –>
<!– The JavaScript Source!! [url]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>
<!– STEP TWO: Copy this code into the BODY of your HTML document –>
<BODY>
<center>
<table width=360 border=0 cellspacing=0 cellpadding=0>
<tr>
<td><a href=”javascript:doPic(‘p1.jpg’);”><img src=”p1.jpg” width=90 height=60 border=0></a></td>
<td><a href=”javascript:doPic(‘p2.jpg’);”><img src=”p2.jpg” width=90 height=60 border=0></a></td>
<td><a href=”javascript:doPic(‘p3.jpg’);”><img src=”p3.jpg” width=90 height=60 border=0></a></td>
<td><a href=”javascript:doPic(‘p4.jpg’);”><img src=”p4.jpg” width=90 height=60 border=0></a></td>
</tr>
<tr>
<td colspan=4 align=center><img name=”mainpic” src=”p1.jpg” width=360 height=240 border=0></td>
</tr>
<tr>
<td><a href=”javascript:doPic(‘p5.jpg’);”><img src=”p5.jpg” width=90 height=60 border=0></a></td>
<td><a href=”javascript:doPic(‘p6.jpg’);”><img src=”p6.jpg” width=90 height=60 border=0></a></td>
<td><a href=”javascript:doPic(‘p7.jpg’);”><img src=”p7.jpg” width=90 height=60 border=0></a></td>
<td><a href=”javascript:doPic(‘p8.jpg’);”><img src=”p8.jpg” width=90 height=60 border=0></a></td>
</tr>
</table>
</center>
<p><center>
<font face=”arial, helvetica” size=”-2″>Free JavaScripts provided<br>
by <a href=”http://javascriptsource.com”>The JavaScript Source</a></font>
</center><p>