View Full Version : My .swf file shows in internet explorer but not mozilla.
phicoolbreeze
10-23-2007, 03:30 AM
Hey guys, I recently purchased a template, and uploaded all my files to my server. The site has a flash header, and works perfectly in internet explorer, but does not show in mozilla firefox. I am sure it has to do with the coding, but I am not too savvy. Any help would be appreciated.
www.westopforeclosuresales.com
<table cellpadding="0" cellspacing="0" border="0" align="center" >
<tr>
<td valign="top" width="666" height="637">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" width="666" height="220" style="background:URL(images/header.jpg); background-repeat:no-repeat "><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
width="666" height="220">
<param name="movie" value="flash\header.swf?button=0">
<param name="quality" value="high">
<param name="menu" value="false">
<!--[if !IE]> <-->
<object data="flash\header.swf?button=0"
width="666" height="220" type="application/x-shockwave-flash">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer">
FAIL (the browser should render some flash content, not this).
</object>
<!--> <![endif]-->
</object></td>
Thanks again.
areidmtm
10-23-2007, 09:43 AM
You probably need the flash plugin for firefox.
http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash
phicoolbreeze
10-23-2007, 07:22 PM
I do have the flash plugins installed. Whats crazy is when I open the sample html file that came in the template it shows in firefox, but when I upload it to my server, it does not. I am confused.
areidmtm
10-23-2007, 09:22 PM
You'll have to post a link
phicoolbreeze
10-23-2007, 10:27 PM
If you open it in I.E it works great.
If you open it in Mozilla the header does not load.
weird
Basil
10-24-2007, 02:12 AM
flash\header.swf should be flash/header.swf
*never use backslashes in a path.
Also, you have a whole lot more code than is necessary for this.
This does more or less the same thing..
<embed src="http://www.westopforeclosuresales.com/flash/header.swf" style="height: 220px; width: 666px;"/>
felgall
10-24-2007, 02:38 AM
Do not use the proprietary <embed> tag or your page will not validate. Two nested <object> tags is the correct standard way of achieving this particular effect. Only newbies and those still living in the internet stone-age use non-existent tags such as <embed> in their page. It is guaranteed that the next generation of browsers will no longer support that tag as it is not deprecated or obsolete, it never was an official tag in the first place.
The only thing wrong with the code is the backslashes which are ONLY recognised by Internet Explorer and not by modern web browsers.
Basil
10-24-2007, 02:59 AM
You did not just call me a newbie.
felgall
10-24-2007, 03:43 AM
I didn't call anyone a newbie.
All I said was that <embed> is an obsolete proprietary tag that will soon no longer work. The original poster of this thread has the right idea in using two nested <object> tags, one for IE and one for modern browsers since that code is actually valid HTML whereas there is no such HTML tag as <embed>.
Anyone who wants to write tag soup instead of HTML and hope that web browsers can interpret it approximately correctly can of course do so. Mostly such people are either newbies who don't know any better or are people haven't kept up with the HTML standards and are therefore writing stone-age code because that was what they learnt. There are of course a few exceptions (as there are to every rule).
Basil
10-24-2007, 04:10 AM
I'll stop using embed when browsers stop supporting it.
phicoolbreeze
10-24-2007, 04:10 AM
*Gives Basil & Felgall an E-Hug*
I love you guys :D
Basil
10-24-2007, 04:12 AM
We love you too.
felgall
10-24-2007, 04:34 AM
There are hundreds of browsers that have never supported <embed>. You can count the ones that do on one hand with fingers left over. The <object> tag on the other hand is supported by hundreds of browsers and you can count on one hand with fingers left over the text only browsers that don't support it.
All depends on whether you are designing for one or two specific browsers or designing to the standards so it will work in all browsers.
Oh - I turned off support for proprietary tags like that in my browser so that only the proper HTML gets processed.
Of course if you want to continue using embed instead of HTML then that is up to you. Obviously based on the knowledge of web page creation that you have shown in answering questions on this forum, you know enough about creating web pages to make that a conscious decision on your part rather than doing it by mistake as a newbie would.
Basil
10-24-2007, 02:08 PM
http://marketshare.hitslink.com/report.aspx?qprid=0
Eh, I'll take my chances.
If you want to make sure nobody gets left out, you can use an embed tag nested in an object tag with another special object tag just for explorer.
But realistically, if your browser doesn't support embed, it probably doesn't support flash either.
I'm not sure why you'd cripple your browser just to keep certain websites from displaying as they were intended, but by blocking the embed tag you're effectively blocking yourself from sites like google video.
With that said, I don't support the use of flash for anything other than movies, games, and other similar applications. I would not personally use it for navigation, or anything integral to the website. I'm not even going to get into why using flash to create an entire website is a bad idea.
Again, I suppose I should recommend using the object tag for standards, but for laziness I'm going with the embed tag.
phicoolbreeze
10-30-2007, 07:39 PM
Got another question guys.
Every time I edit text in my template, it shows fine in mozilla, but in Internet explorer it stretches the screen out and looks weird. It also leaves a "<![endif]--> " code in the middle of the page.
Also I edited my swf file, but after uploading it shows perfectly in Internet explorer, but shows my old .swf file in Mozilla.
What is it in my coding that is makes the different browsers show different info?
www.westopforeclosuresales.com
felgall
10-30-2007, 11:03 PM
Perhaps one browser is still reading a cached copy.
phicoolbreeze
10-30-2007, 11:17 PM
I do think its a cache issue, because now my swf header is showing fine.
But the whole "stretched out page" effect is still showing in I.E. with "<![endif]-->" in the middle of the page. But that does not show in mozilla.
Early Out
10-30-2007, 11:22 PM
But the whole "stretched out page" effect is still showing in I.E. with "<![endif]-->" in the middle of the page. But that does not show in mozilla.I'm not seeing that anywhere. IE7.
phicoolbreeze
10-31-2007, 12:24 AM
I'm not seeing that anywhere. IE7.
I updated to IE7, and I don't see it anymore.
Hopefully this doesn't affect too many browsers.
Thanks
Early Out
10-31-2007, 12:32 AM
Unfortunately, there are still a lot of IE6 users out there.
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.