Forum Moderators: open
Works perfectly in IE but in firefox it says movie isnt loaded.
ITs driving me crazy!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Welcome to Makowski Brown</title>
<script type="text/javascript" src="swfobject.js"></script>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="container">
<div id="menu">
<div id="under">
</div>
</div>
<div id="flashcontent">
<p>I'm sorry, you don't appear to have Macromedia Flash
Player installed. <a href="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">Go
install it</a> and then return to this site!
</p>
</div><script type="text/javascript">
var so = new SWFObject("main.swf", "flashcontent", "779", "431", "6", "#FFFFFF", true);
so.addParam("wmode", "transparent");
so.write("flashcontent");
</script>
<div>
</div>
</div>
<div id="footer">
</div>
</body>
</html>
Anyone got any ideas for me?
hth,
mcm
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p> or for something cleaner you can use the <pre> tag.
If you want to continue using java to post your .swf files, this might work. I see you are trying to detect if a person has the flash program that is required to run your .swf. Seeing as how Firefox does this already, I really do not see a reason for it.
I am somewhat new here, and I don't have any commercial sites up, but sometimes a newb opinion works. :)
If your looking for an easier way to put your .swf in a browser, you might want to use this code:
<body>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="120" height="120" title="wormhole">
<param name="movie" value="wormhole.swf" />
<param name="quality" value="high" />
<embed src="wormhole.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="120" height="120"></embed>
</object>
</body>
It works in Firefox, and IE.
[vsthecoast.com...]
Hope this helps.
This is just a scrap server that I am posting this link to, it has no commercial value.
[edited by: jbcurtin at 5:37 pm (utc) on Sep. 25, 2006]
actually, i think it probably is better to say it replaces the content with the flash than the other way around.