On a previous thread we discussed with RobSchultz on how to swap images together
( thanks again to Rob for his advices). But i can't go on and make this work on Netscape.
I have two images A and B and two rollower roll_A and roll_B
and i want them to swap each other.
If anyone knows would be very helpfull. Here is the code:
<html>
<head>
<script language="javascript">
<!-- Hide from old browsers
var IE = document.all
function fnSwapNumber(type){
if (type==1){
if (!IE){
document.design.src="1/roll_A.gif";
document.web.src=1/roll_B.gif";}
else{
design.src="1/roll_A.gif";
web.src="1/roll_B.gif";}}
else{
if (!IE){
document.design.src="1/A.gif";
document.web.src="1/B.gif";}
else{
design.src="1/A.gif";
web.src="1/B.gif";}}
}
// -->
</script>
</head>
<body>
<table><tr>
<td><a href="#"><img src="pageint/design.gif" name="design" onmouseover="fnSwapNumber(1)"
onmouseout="fnSwapNumber(0)" onload="" border="0"</a></td>
<td><a href="#"><img src="pageint/web.gif" name="web" onmouseover="fnSwapNumber(1)"
onmouseout="fnSwapNumber(0)" onload="" border="0"></a></td>
</tr></table>
</body>
</html> [sig][/sig]
( thanks again to Rob for his advices). But i can't go on and make this work on Netscape.
I have two images A and B and two rollower roll_A and roll_B
and i want them to swap each other.
If anyone knows would be very helpfull. Here is the code:
<html>
<head>
<script language="javascript">
<!-- Hide from old browsers
var IE = document.all
function fnSwapNumber(type){
if (type==1){
if (!IE){
document.design.src="1/roll_A.gif";
document.web.src=1/roll_B.gif";}
else{
design.src="1/roll_A.gif";
web.src="1/roll_B.gif";}}
else{
if (!IE){
document.design.src="1/A.gif";
document.web.src="1/B.gif";}
else{
design.src="1/A.gif";
web.src="1/B.gif";}}
}
// -->
</script>
</head>
<body>
<table><tr>
<td><a href="#"><img src="pageint/design.gif" name="design" onmouseover="fnSwapNumber(1)"
onmouseout="fnSwapNumber(0)" onload="" border="0"</a></td>
<td><a href="#"><img src="pageint/web.gif" name="web" onmouseover="fnSwapNumber(1)"
onmouseout="fnSwapNumber(0)" onload="" border="0"></a></td>
</tr></table>
</body>
</html> [sig][/sig]