PDA

View Full Version : I can't get menu to load in IE


Wheels59
02-04-2008, 04:48 PM
Flash menu works in other browsers but not IE, need to click to activate ?
http://nyoutdoorsunlimited.com/index.html

Thanks:(

CyanBlue
02-04-2008, 04:51 PM
Howdy and Welcome... :)

Go check out the SWFObject... That should solve your problem...
http://blog.deconcept.com/swfobject

Wheels59
02-04-2008, 06:08 PM
Newbie to this problem. So I import the script into my root then point to it in page ?

CyanBlue
02-04-2008, 06:15 PM
No, you basically need to change a way you are embedding the SWF onto the page...
Read the 'SWFObject Examples' section and I think it will be abit clearer... ;)

Wheels59
02-04-2008, 07:08 PM
Took code into FP and tried to manipulate it to make it work. Keep getting java error ? :o

CyanBlue
02-04-2008, 07:14 PM
Um... My crystal ball is in the repair shop and I cannot see your browser... You will have to let us know what you have done to manipulate the code and what sorts of error message you are getting so that we can help you better... ;)

Wheels59
02-04-2008, 07:29 PM
This is original code

<script type="text/javascript">
var so = new SWFObject("movie.swf", "mymovie", "400", "100%", "8", "#336699");
so.addParam("quality", "low");
so.addParam("wmode", "transparent");
so.addParam("salign", "t");
so.write("flashcontent");
</script>

My code

<script type="text/javascript">
var so = new SWFObject("http://www.nyoutdoorsunlimited.com/menu2.swf", "mymovie", "400", "100%", "8", "#336699");
so.addParam("quality", "high");
so.addParam("wmode", "transparent");
so.addParam("salign", "t");
so.write("flashcontent");
</script>

I get nothing in preview. [java error was something else]

CyanBlue
02-04-2008, 08:01 PM
Try embedding the local SWF rather than the one from other domain... If you are loading it from the same domain, there is no need to specify the full URL...

What's the URL where I can see it???

Wheels59
02-04-2008, 08:24 PM
http://nyoutdoorsunlimited.com/index.html

I did just plug in my swf file from my server and still nothing. This is for the menu.

Thankx

CyanBlue
02-04-2008, 08:47 PM
Um... I see no line that contains SWFObject???

Wheels59
02-04-2008, 09:06 PM
<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj2" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="882" height="30">
<param name="movie" value="menu2.swf">
<param name="quality" value="High">
<embed src="menu2.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj2" width="882" height="30"></object>
</TD>

CyanBlue
02-05-2008, 01:09 PM
I don't think you have heard what I have said... You do need to use SWFObject to embed the SWF not the regular OBJECT/EMBED tag to get away with that IE issue... ;)

Wheels59
02-05-2008, 03:39 PM
I don't think you have heard what I have said... You do need to use SWFObject to embed the SWF not the regular OBJECT/EMBED tag to get away with that IE issue...

I can't seem to avoid it using frontpage. I really appreciate your time and patients. I can usually figure his stuff out. I read the page you sent me to a couple of times but go figure I can't bust the code. I will try again today.

CyanBlue
02-05-2008, 03:51 PM
Well... Know nothing about the FrontPage, so here is a way to edit by 'hand'... ;)

Fine a code block that says...
<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj2" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="882" height="30">
<param name="movie" value="menu2.swf">
<param name="quality" value="High">
<embed src="menu2.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj2" width="882" height="30"></object>
Replace that code block with this, and test to see if this works...
<script type="text/javascript" src="swfobject.js"></script>

<div id="flashcontent">
This text is replaced by the Flash movie.
</div>

<script type="text/javascript">
var so = new SWFObject("menu2.swf", "mymovie", "882", "30", "8", "#FFFFFF");
so.write("flashcontent");
</script>

Wheels59
02-05-2008, 04:11 PM
<div id="flashcontent">
This text is replaced by the Flash movie.
</div>

<script type="text/javascript">
var so = new SWFObject("menu2.swf", "mymovie", "882", "30", "8", "#FFFFFF");
so.write("flashcontent");
</script>[/html][/QUOTE]

Replace text with flash movie but it ends up with text in menu area ? In other words no movie just text. This is the dumbest I've felt in a long time...:mad:

CyanBlue
02-05-2008, 04:19 PM
Um... Create a dummy page so that I can actually see that... ;)

Wheels59
02-05-2008, 07:00 PM
http://www.nyoutdoorsunlimited.com/imadummy.html

CyanBlue
02-05-2008, 07:06 PM
First of all, you have not download the ZIP file from that site... Download the file, unzip the swfobject.js file from it, and upload it to the root directory of your domain... and test again... ;)

Wheels59
02-05-2008, 07:28 PM
That did it when I uploaded into root. It's the simple things, it was in a folder in root not in root.

Thank you very much Cyan Blue

Wheels59
02-05-2008, 07:43 PM
Bottom menu won't work. Java should see it ?