Скрипт работает в IE, но не работает в других браузерах
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
ns3up = (browserName == "Netscape" && browserVer >= 3);
ie4up = (browserName.catalogOf("Microsoft") >= 0 && browserVer >= 4);
function doPic(imgName) {
if (ns3up || ie4up) {
imgOn = ("" + imgName);
document.mainpic.src = imgOn;
}
}
// End -->
</script>
<!-- HEAD END HERE -->
</head>
<body bgcolor="#EDEDED" text="#000000" link="#000000" topmargin="0" leftmargin="0">
<center>
<!-- BODY START HERE -->
<table width=360 border=0 cellspacing=0 cellpadding=0>
<tr>
<td><a href="javascript:doPic('1.jpg');"><img src="1.jpg" width=90 height=60 border=0></a></td>
<td><a href="javascript:doPic('2.jpg');"><img src="2.jpg" width=90 height=60 border=0></a></td>
<td><a href="javascript:doPic('3.jpg');"><img src="3.jpg" width=90 height=60 border=0></a></td>
<td><a href="javascript:doPic('4.jpg');"><img src="4.jpg" width=90 height=60 border=0></a></td>
</tr>
<tr>
<td colspan=4 align=center><img name="mainpic" src="1.jpg" width=360 height=240 border=0></td>
</tr>
<tr>
<td><a href="javascript:doPic('5.jpg');"><img src="5.jpg" width=90 height=60 border=0></a></td>
<td><a href="javascript:doPic('6.jpg');"><img src="6.jpg" width=90 height=60 border=0></a></td>
<td><a href="javascript:doPic('7.jpg');"><img src="7.jpg" width=90 height=60 border=0></a></td>
<td><a href="javascript:doPic('8.jpg');"><img src="8.jpg" width=90 height=60 border=0></a></td>
</tr>
</table>
</center>
<!-- BODY END HERE -->
<p> </p>
<p align="center"> </p>
<div align="center">
<center>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%">
<p align="center"><!--#exec cgi="/cgi-bin/inside/ads/ads.cgi" -->
</td>
</tr>
</table>
</center>
</div>
</body>
</html>
|