PDA

View Full Version : Ultimate Fade In Slideshow not working on Macs



mcmccarty
03-20-2011, 05:09 PM
1) Script Title: Ultimate Fade In Slideshow

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm

3) Describe problem: Installed the script 4 months ago and everything worked well. Client reports that they now cannot view on Mac Safari 5.0.3, just a blank screen. I have double checked it (I don't own a Mac) on another Mac and the the script definitely does not work in Safari or Firefox. But, everything still works fine on PC versions of Safari, Firefox, Opera and Explorer.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<head>
<title>Price Products | Home</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META NAME="MSSmartTagsPreventParsing" content="true">
<META NAME="REVISIT-AFTER" CONTENT="0 days">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP="Expires" content="0">
<style type="text/css">
<!--
.border { border: #999999; border-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px}
.topbtmborder { border: #999999 solid; border-width: 1px 0px}
.copyright { font-family: Verdana; font-size: 8pt; color: #666666; text-decoration: none}
-->
</style>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<style type="text/css">

#fadeshow2 {float:left;}

#myreel{ /*sample CSS for demo*/
border:0px solid black;
}

.paginate{
width: 330px;
margin-top:5px;
font:bold 14px Arial;
text-align:center;
}

.topborder { border-color: #CCCCCC black black; border-style: solid; border-top-width: .5px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px}
</style>
<SCRIPT language="JavaScript">
<!--

if (document.images)
{
preload_image_object = new Image();
// set image url
image_url = new Array();
image_url[0] = "https://www.priceproductsllc.com/Web/Home_Dripstik.jpg";
image_url[1] = "https://www.priceproductsllc.com/Web/Dwinkbox_Home.png";
image_url[2] = "https://www.priceproductsllc.com/Web/BabyBands_Home.png";
image_url[3] = "https://www.priceproductsllc.com/Web/PlateMate_Home.png";
image_url[4] = "https://www.priceproductsllc.com/Web/BabySongbird_Home.png";
image_url[5] = "https://www.priceproductsllc.com/Web/LightClip_Home.png";

var i = 0;
for(i=0; i<=3; i++)
preload_image_object.src = image_url[i];
}

//-->
</SCRIPT>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>

<script type="text/javascript" src="fadeslideshow.js">

/***********************************************
* Ultimate Fade In Slideshow v2.0- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/

</script>

<script type="text/javascript">
<!--
var mygallery2=new fadeSlideShow({
wrapperid: "fadeshow2", //ID of blank DIV on page to house Slideshow
dimensions: [800, 550], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["https://www.priceproductsllc.com/Web/Home_Dripstik.jpg","https://www.priceproductsllc.com/Dripstik.html", "_self"], //["image_path", "optional_link", "optional_target"]
["https://www.priceproductsllc.com/Web/Dwinkbox_Home.png","https://www.priceproductsllc.com/Dwinkbox.html", "_self"],
["https://www.priceproductsllc.com/Web/Bankabank_Home.png","https://www.priceproductsllc.com/Bankabank.html", "_self"],
["https://www.priceproductsllc.com/Web/BabyBands_Home.png","https://www.priceproductsllc.com/Babybands.html", "_self"],
["https://www.priceproductsllc.com/Web/PlateMate_Home.png","https://www.priceproductsllc.com/Plate-Mate.html", "_self"],
["https://www.priceproductsllc.com/Web/BabySongbird_Home.png","https://www.priceproductsllc.com/BabySongbird.html", "_self"],
["https://www.priceproductsllc.com/Web/LightClip_Home.png","https://www.priceproductsllc.com/Lightandclip.html", "_self"] //<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:6000, cycles:0, wraparound:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 800, //transition duration (milliseconds)
descreveal: "always",
togglerid: "fadeshow2toggler"
})

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) { //v3.0
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); 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 bgcolor="#FFFFCC" onLoad="MM_preloadImages('Web/Btn_Products_Dn.png','Web/Btn_Email_Dn.png','Web/Btn_About_Dn.png','Web/Btn_Stores_Dn.png','Web/Btn_Shop_Dn.png','Web/Btn_Press_Dn.png','Web/Btn_Contact_Dn.png','Web/Btn_Home_Dn.png')">
<table width="800" cellspacing="0" cellpadding="0" align="center" class="border" bgcolor="#FFFFFF">
<tr align="center" valign="top">
<td>
<table width="800" cellspacing="0" cellpadding="0">
<tr>
<td><img src="Web/Logo_Banner.png" width="800" height="125">
<table width="800" cellspacing="0" cellpadding="0">
<tr>
<td height="30" bgcolor="#FFFFFF">&nbsp;</td>
<td height="30" width="90"><a href="index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Home','','Web/Btn_Home_Dn.png',1)"><img name="Home" border="0" src="Web/Btn_Home_Up.png" width="90" height="30"></a></td>
<td height="30" width="90"><a href="About.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('About','','Web/Btn_About_Dn.png',1)"><img name="About" border="0" src="Web/Btn_About_Up.png" width="90" height="30"></a></td>
<td height="30" width="90"><a href="Products.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Products','','Web/Btn_Products_Dn.png',1)"><img name="Products" border="0" src="Web/Btn_Products_Up.png" width="90" height="30"></a></td>
<td height="30" width="90"><a href="Stores.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Stores','','Web/Btn_Stores_Dn.png',1)"><img name="Stores" border="0" src="Web/Btn_Stores_Up.png" width="90" height="30"></a></td>
<td height="30" width="90"><a href="Shop.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Shop','','Web/Btn_Shop_Dn.png',1)"><img name="Shop" border="0" src="Web/Btn_Shop_Up.png" width="90" height="30"></a></td>
<td height="30" width="90"><a href="Press.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Press','','Web/Btn_Press_Dn.png',1)"><img name="Press" border="0" src="Web/Btn_Press_Up.png" width="90" height="30"></a></td>
<td height="30" width="90"><a href="Contact.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Contact','','Web/Btn_Contact_Dn.png',1)"><img name="Contact" border="0" src="Web/Btn_Contact_Up.png" width="90" height="30"></a></td>
<td height="30" bgcolor="#FFFFFF">&nbsp;</td>
<td height="30" bgcolor="#FFFFFF">&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr><tr align="center" valign="top">
<td width="800" height="550" class="topbtmborder">
<div id="fadeshow2"></div>
</td>