(in the head tag): <script type="text/javascript" src="scripts/swfobject.js"></script>
(in the body): <div id="flashcontent"> If you're seeing this message, it's because Flash is not enabled on your browser. </div>
<script type="text/javascript"> // <![CDATA[ var so = new SWFObject("images/globe.swf", "globe", "550", "450", "5", "#FFFFFF"); so.addParam("wmode", "transparent"); so.write("flashcontent"); // ]]> </script>
I thought it might be because I have the script and flash object in separate folders, so I tried moving everything up to the same level as the HTML file - but no go, same error appears. Would anyone have any ideas for me?
If you could post a link to your page, that would be helpful. Obviously you shouldn't be seeing a js error from swfObject. Are you getting an error in IE / Firefox or both?
It's on my localhost server right now - I don't have it online. I'm seeing it in Forefox - I'm in the middle of developing the site, so I haven't checked it in IE yet, but...
Okay, IE7 isn't showing the Flash object at all. Ditto with IE6 - it's showing my text instead of the Flash movie. I've turned on "Active X controls" and the flash movie still will not show up - just the text.
You pretty much are. I've just started on it, and it's pretty bare-bones right now. The only other tags are regular HTML stuff (divs, header, footer). There's a couple of images, and that's it.
I've uploaded it for you so you can see it - but it's not much more than what I've posted here. I don't know what the forums rules are on links for code (I frequent a few forums - some don't want you to post any code, and some only want you to post code) - I can't find any info on that, but to save on someone's server spce, here's a link to it:
If you'd rather have the code, a mod can remove the link and I'll post the code in it's place. But anyway, like I said - what you see above is pretty much what you get...
but any help figuring it out would be appreciated!
Well, I redownloaded the ZIP file, and uploaded the newly unzipped version. The other error is gone, but now I have a new one (the same one that actually shows up on the example on the site):
Both are downgraded to "Warnings" though. The latter one, I saw a solution for on this forum already, but I have no idea how to apply it. Still won't show up in any version of IE I have though...but that's probably a setting I have somewhere.
i don't get any errors when viewing your page in FF2 (Firebug, Web Dev Toolbar) or IE6.
the IE6 page looks like the CSS is off a bit (layout's off-center and the PNG isn't transparent), but the SWF loads and I don't have any JS error messages.
Yeah, I know the CSS is off (especially in IE6 with the PNG transparencies) - I'm just starting on the site, and IE is the last browser I check/fix. But the script - although they aren't errors anymore - are now down to warnings. I could live with it, I suppose. But I *do* prefer something more server-side than client-side, and I've found a PHP solution that seems to be working for me. I *do* love the SWF object (I've used it on several sites, and this is the first time I've had an issue with it), but if I can stick with a PHP solution, I will. It requires further testing though - so I may return to the SWF Object script.