Dear all,
Here's hoping someone will be able to help me as I have a really
bizarre problem with SWFObject. I have posted this everywhere but as
yet have not received a workable solution. The scenario is this:
I have a SWF menu that works fine locally with the generated HTML code
and by opening the file directly. However, when uploaded to the
company website and used on a test page it won't work at all.
Selecting the page with the cursor reveals that the Flash container is
there but it just won't load. I know it can find the JS files OK
because it comes up with alternate content if the file paths are
wrong. All the files are in a folder on the server root called
"icpmenu_es". The test page is here:
http://www.ideal-country-property.com/es/test
and the code I'm using is this:
<HTML>
<HEAD>
<title>ICP Spanish Menu</title>
<script type="text/javascript" src="/icpmenu_es/swfobject.js"></
script>
<script type="text/javascript" src="/icpmenu_es/flying.js"></
script>
</HEAD>
<BODY>
<!-- ICPmessage
www.ideal-country-property.com -->
<div id="ICPmessage" style="position:absolute; top:100px; padding-
left:0px; z-index:0;">
You need to upgrade your Flash Player or allow javascript to
enable the ICP menu. </br>
<a href="
http://www.adobe.com/go/getflashplayer">Get the FREE
Flash Player from Adobe</a>
</div>
<script type="text/javascript">
// <![CDATA[
var so = new SWFObject ("
http://ideal-country-property.com/
icpmenu_es/menu.swf", "menuES", "185", "440", "8", "#000000");
so.addVariable("page_code", "a_b_c");
so.addParam("wmode", "transparent");
so.addParam("scale", "noscale");
so.addParam("salign", "TL");
so.write("ICPmessage");
// ]]>
</script>
</BODY>
</HTML>
I've tried the paths without the "/" and with the full address. If I
put all the files in the root directory (as I don't need to set the
paths) it works fine but I don't want to do that as I have other SWF
files to upload and they access files with the same name. I don't
think it's a problem with the website as I know the files are there in
the correct locations. This is driving me mad... really so ?d really
appreciate your help. Cheers. Chris.