SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2007
    Location
    Toronto, ON
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problem when flash player isin't installed

    I have successfully created and implemented a flash header for a website. (its on a local PC so I am unable to post it)

    My problem is this:

    If a PC does not have flash player installed, and the load my website they get a blank page with a windows box that says "Security Warning Do you want to install this software?" etc

    Thats great, unless they say no, then they proceed to get that popup evertime they go to a new page within the site.

    Another site www.kidney.ca has done something simlar, but they get a much nicer result. Their page loads completely with a nice blank area where their flash header is supposed to be with a "click here to install the following ActiveX control..."

    How do I do that?

    My Code:

    <object width="770" height="250" classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" >
    <param name="movie" value="/imagelibrary/homepage/banner2008.swf" />
    <param name="quality" value="autohigh">
    <param name="menu" value="false" />
    <embed src="/imagelibrary/homepage/banner2008.swf" width="770" height="250" quality="autohigh" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" menu="false"></embed>
    </object>

    Their Code:

    <td id="id41496_1_2" name="id41496_1_2" align="left" valign="top" wrap><object width="564" height="161" classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"><param name="movie" value="/files/Kidney/amasthead_new_en.swf?intNodeID=20224&" />
    <param name="play" value="true" /><param name="loop" value="true" />
    <param name="quality" value="high" />
    <EMBED src="/files/Kidney/amasthead_new_en.swf?intNodeID=20224&" width="564" height="161" type="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" play="true" loop="true" quality="high" /></object></td>

  2. #2
    SitePoint Wizard jim_morrison3's Avatar
    Join Date
    Apr 2004
    Location
    UK
    Posts
    2,324
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You need to use Javascript which checks if a particular user has flash installed in his system and displays alternate content in case the user does not have flash.
    Good Luck!
    There are things known and Things unknown
    And in between are the Doors.
    I love hand Coding.

  3. #3
    SitePoint Member
    Join Date
    Jul 2008
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    google swf object

  4. #4
    Is Still Alive silver trophybronze trophy RetroNetro's Avatar
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    6,883
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hello

    Yes with swfObject, you just create a div:
    Code HTML4Strict:
    <div id="myFlash"></div>
    Then using the swfObject script will replace the content of the specified div with the flash file you also specify.

    Then if a user does not have flash installed they just get whatever content is inside that division, so for example you could make an html/css version of the flash header for non-flash users.
    Code HTML4Strict:
    <div id="myFlash">
    <p>This will display if the user does not have flash installed or for whatever reason the flash file does not display. This can be anything.</p>
    </div>
    Hope it helps.


Bookmarks

Posting Permissions

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