PDA

View Full Version : MY flash isn't showing up the first time on my page, but once refreshed it works?



Benito77
21 Mar 2011, 12:40 PM
Anyone have any ideas on how to correct this?

Here is the code:


<html>

<head>
<title>Urban</title>
<!-- saved from url=(0014)about:internet -->
<script src="file:///Macintosh HD/Users/cramerkrasselt/Desktop/Urban/Scripts/swfobject_modified.js" type="text/javascript"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><style type="text/css">
<!--
body {
background-color: #000;
margin-left: 50px;
margin-top: 15px;
margin-right: 50px;
}
-->
</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="javascript: sf.focus();MM_preloadImages('../images/homepagebottom/home1.png','../images/homepagebottom/urban1roll.png','../images/homepagebottom/natureroll.png','../images/homepagebottom/abstractroll.png','../images/homepagebottom/artstateroll.png','../images/homepagebottom/seemyworkroll.png','../images/homepagebottom/purchaseroll.png')">
<table width="1024" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="1003" height="768">
<param name="movie" value="urban.swf">
<param name="quality" value="high">
<param name="wmode" value="opaque">
<param name="swfversion" value="9.0.45.0">
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall" value="file:///Macintosh HD/Users/cramerkrasselt/Desktop/Urban/Scripts/expressInstall.swf">
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="urban.swf" width="1003" height="768">
<!--<![endif]-->
<param name="quality" value="high">
<param name="wmode" value="opaque">
<param name="swfversion" value="9.0.45.0">
<param name="expressinstall" value="file:///Macintosh HD/Users/cramerkrasselt/Desktop/Urban/Scripts/expressInstall.swf">
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
<table width="1024" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="../images/homepagebottom/bottomleftfoot.png" width="347" height="52"></td>
<td><a href="../index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('home','','../images/homepagebottom/home1.png',1)"><img src="../images/homepagebottom/home1roll.png" name="home" width="64" height="52" border="0"></a></td>
<td><a href="urban.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('urban','','../images/homepagebottom/urban1roll.png',1)"><img src="../images/homepagebottom/urban1.png" name="urban" width="64" height="52" border="0"></a></td>
<td><a href="../Nature/nature.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('nature','','../images/homepagebottom/natureroll.png',1)"><img src="../images/homepagebottom/nature.png" name="nature" width="69" height="52" border="0"></a></td>
<td><a href="../Abstract/abstract.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('abstract','','../images/homepagebottom/abstractroll.png',1)"><img src="../images/homepagebottom/abstract.png" name="abstract" width="83" height="52" border="0"></a></td>
<td><a href="../artiststatement.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('artist statement','','../images/homepagebottom/artstateroll.png',1)"><img src="../images/homepagebottom/artstate.png" name="artist statement" width="129" height="52" border="0"></a></td>
<td><a href="../seemywork.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('see my work','','../images/homepagebottom/seemyworkroll.png',1)"><img src="../images/homepagebottom/seemywork.png" name="see my work" width="105" height="52" border="0"></a></td>
<td><a href="../buymywork.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('purchase my work','','../images/homepagebottom/purchaseroll.png',1)"><img src="../images/homepagebottom/purchase.png" name="purchase my work" width="162" height="52" border="0"></a></td>
</tr>
</table></td>
</tr>
</table>
<script type="text/javascript">
<!--
swfobject.registerObject("FlashID");
//-->
</script>
</body>

</html>