www.webdeveloper.com
Results 1 to 3 of 3

Thread: [if !IE] causing Safari and Google Chrome to show flash .swf twice

  1. #1
    Join Date
    Oct 2010
    Posts
    1

    [if !IE] causing Safari and Google Chrome to show flash .swf twice

    Greetings everyone,

    I inherited a problem on a website. In the html code there is a flash object, then right after is another slightly different flash object within an [if !IE] to load that one in IE. Everything works fine in all the Windows browsers and in Firefox for Mac. Safari and Google Chrome for the Mac, however, cause both of the flash objects to load, one stacked on top of the other. I know it is because of the WebKit both browsers use to render. Does anyone know of a fix? Any help would be appreciated.

    Here is the URL for the site in question:
    http://www.grekinskininstitute.com/

    Thanks a lot,

    Scott

  2. #2
    Join Date
    Feb 2008
    Location
    NW Washington State
    Posts
    1,856
    Why is it neccessary to use the [if !IE] code?
    The reason you see two objects stacked on top of each other is that the first <object> renders just fine in Safari and in Chrome. Then the code reads, and [if !IE], also display the second <object>.
    So remove the conditional statement and all the code related to the second <object>.
    Best wishes,
    Eye for Video
    www.cidigitalmedia.com

  3. #3
    Join Date
    Feb 2008
    Location
    NW Washington State
    Posts
    1,856
    Just to clarify a point...
    [if !IE]
    does not
    load that one in IE
    [if !IE] has the ! operator in front of IE, meaning if it is NOT IE, do this, display a second .swf. But since all the browsers (IE, Chrome, Safari, etc.) have already displayed the first.swf, non IE browsers will also display a second .swf
    EfV

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles