<!– TWO STEPS TO INSTALL GALLERY VIEWER:

1. Copy the coding into the HEAD of your document
2. Add the last code into the BODY of your document –>

<!– STEP ONE: Paste this code into the HEAD of your document –>

<HEAD>

<SCRIPT LANGUAGE="">
<!– Original: Jenny Blewitt (webmaster@webdesignsdirect.com) –>
<!– Web : http://www.webdesignsdirect.com –>

<! >
<! >

<!– Begin
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);

ns3up = (browserName == "Netscape" && browserVer >= 3);
ie4up = (browserName.indexOf("") >= 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 document –>

<BODY>

<center>
<table width=360 border=0 cellspacing=0 cellpadding=0>
<tr>
<td><a href=":doPic('p1.jpg');"><img src="p1.jpg" width=90 height=60 border=0></a></td>
<td><a href=":doPic('p2.jpg');"><img src="p2.jpg" width=90 height=60 border=0></a></td>
<td><a href=":doPic('p3.jpg');"><img src="p3.jpg" width=90 height=60 border=0></a></td>
<td><a href=":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=":doPic('p5.jpg');"><img src="p5.jpg" width=90 height=60 border=0></a></td>
<td><a href=":doPic('p6.jpg');"><img src="p6.jpg" width=90 height=60 border=0></a></td>
<td><a href=":doPic('p7.jpg');"><img src="p7.jpg" width=90 height=60 border=0></a></td>
<td><a href=":doPic('p8.jpg');"><img src="p8.jpg" width=90 height=60 border=0></a></td>
</tr>
</table>
</center>

<!– Script Size: 2.00 KB –>

kaynak: ordan burdan

Tags: , , , , , , , , , , ,
Javascript - Resim Galerisinden Tıklayarak Resim Değiştirme (scripti, nasıl, nedir?) konusu
Benzer yazılar:
    Benzer yazı yok