Advertisement

Works in Firefox but not in Safari or IE

Moderators: Calcifer, slothy

Works in Firefox but not in Safari or IE

Postby warwickhastie » Mon Apr 19, 2010 2:52 am

Hi
My image-slideshow-4 seems to have a mind of it's own. It's working in Firefox but not in Safari or IE. Could someone please have a quick look at my code and suggest change I need to make.

The link for the page is:
http://www.skiclubofaustralia.com.au/sn ... wcams.html

Thanks
warwickhastie@bigpond.com

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<HTML>
<HEAD>
<Title>Thredbo Snowcams</TITLE>
<link rel="stylesheet" type="text/css" media="screen" href="../snowcams/css/image-slideshow-4.css">
<SCRIPT type="text/javascript" src="../snowcams/js/image-slideshow-4.js"></SCRIPT>
<link href="css/image-slideshow-4.css" rel="stylesheet" type="text/css" media="all">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><style type="text/css">
<!--
body {
background-image: url(../img/bg.gif);
background-repeat: repeat;
}
</style>
<script type="text/javascript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>
<body onLoad="MM_preloadImages('../img/links/home2.png','../img/links/myaccount2.png','../img/links/bookings2.png','../img/links/goodies2.png','../img/links/calendar2.png','../img/links/galleries2.png')">
<table width="800" height="1006" border="0" align="center" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
<tr>
<td height="34" colspan="3" bordercolor="#4F7DAF" bgcolor="#FFFFFF"><a href="../home.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('home','','../img/links/home2.png',1)"><img src="../img/links/home.png" name="home" width="120" height="30" border="0"></a><a href="../home.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('myaccount','','../img/links/myaccount2.png',1)"><img src="../img/links/myaccount.png" name="myaccount" width="120" height="30" border="0"></a><a href="../bookingrequest.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image11','','../img/links/bookings2.png',1)"><img src="../img/links/bookings.png" name="Image11" width="120" height="30" border="0"></a><a href="../home.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image12','','../img/links/goodies2.png',1)"><img src="../img/links/goodies.png" name="Image12" width="120" height="30" border="0"></a><a href="../calendar2010.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image13','','../img/links/calendar2.png',1)"><img src="../img/links/calendar.png" name="Image13" width="120" height="30" border="0"></a><a href="../galleryindex.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image14','','../img/links/galleries2.png',1)"><img src="../img/links/galleries.png" name="Image14" width="120" height="30" border="0"></a></td>
</tr>
<tr>
<td height="46" colspan="3" valign="top" bordercolor="#4F7DAF" bgcolor="#FFFFFF"><div align="center"><img src="../img/BannersNew/banner_directory1.jpg" width="779" height="169"></div></td>
</tr>
<tr>
<td width="436" bordercolor="#4F7DAF" bgcolor="#FFFFFF">&nbsp;</td>
<td width="700" height="716" bordercolor="#4F7DAF" bgcolor="#FFFFFF"><div id="mainContainer">
<div class="contentContainer">
<div class="imageSlideshowHolder" id="imageSlideshowHolder">

<div align="left"><img src="http://www.thredbo.com.au/liveimages/Basin01.jpg">
<img src="http://www.thredbo.com.au/liveimages/Cruiser01.jpg">
<img src="http://www.thredbo.com.au/liveimages/FridayFlat01.jpg">
<img src="http://www.thredbo.com.au/liveimages/EaglesNest01.jpg">
<img src="http://www.thredbo.com.au/liveimages/VillageSquare01.jpg">
<img src="http://www.thredbo.com.au/liveimages/AlpineWay01.jpg">
<img src="http://www.thredbo.com.au/liveimages/AlpineWay02.jpg"><img src="http://www.thredbo.com.au/liveimages/KosciuszkoExpress01.jpg"></div>
</div>
<div align="center"></div>
</div>
</div>
</div>

<SCRIPT type="text/javascript">
initImageGallery('imageSlideshowHolder');
initImageGallery('imageSlideshowHolder2');
</SCRIPT>&nbsp;</td>
<td width="438" bordercolor="#4F7DAF" bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td height="200" colspan="3" valign="top" bordercolor="#4F7DAF" bgcolor="#FFFFFF">&nbsp;</td>
</tr>
</table>

</body>
</html>
warwickhastie
 
Posts: 3
Joined: Wed Apr 14, 2010 8:30 am

Return to Gallery script questions

Who is online

Users browsing this forum: No registered users and 1 guest

cron