Link to home
Start Free TrialLog in
Avatar of jonsmithgraphics
jonsmithgraphics

asked on

alternative flash content for iphone

Hello,
I have a site with a flash banner. I have provided alternative content (on a test page only for now) that is just a static graphic. this works fine on desktop browsers.

i know that iphone does not support flash but it isnt showing the alternative content either. i have used swfobject as shown below:

thanks for any help

jon

script type="text/javascript" src="swfobject.js"></script>
 
 
 
 
<div id="flashcontent">
     <img src="images/alt/static-profile.jpg" alt="profile">
</div>
<script type="text/javascript">
      // <![CDATA[
      var so = new SWFObject("GrassBanners/profile.swf", "Movie", "800", "120", "8", "#031A30");
      so.write("flashcontent");
      // ]]>
</script>

Open in new window

Avatar of blue-genie
blue-genie
Flag of South Africa image

have a lookie here at the blog
the guys did something with the iphone with code examples. how cool are they.



http://www.swffix.org/devblog/?p=37
Avatar of jonsmithgraphics
jonsmithgraphics

ASKER

thanks blue-genie
will have a look at this link and see if i can get things working!

fingers crossed....

hi blue-genie
i had a read through that blog and ended up trying a different method which seems to work in browsers. but it still isnt displaying the alternative content graphic on the iphone...

any ideas what i am doing wrong?

cheers :)
<script type="text/javascript" src="swfobject.js"></script>
 
 
<script type="text/javascript">
    swfobject.registerObject("myId", "9.0.0", "expressInstall.swf");
    </script>
 
 
 
 
 
<div id="flashcontent">
 
  <object id="myId" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="800" height="120">
        <param name="movie" value="GrassBanners/profile.swf" />
        <!--[if !IE]>-->
        <object type="application/x-shockwave-flash" data="GrassBanners/profile.swf" width="800" height="120">
        <!--<![endif]-->
         <img src="images/alt/static-profile.jpg" alt="profile">
        <!--[if !IE]>-->
        </object>
        <!--<![endif]-->
      </object>
	  
</div>

Open in new window

i have an idea. you buy me an i-phone, and then .... haha
i dont' have any experience working with an i-phone so i'm not sure.
i'd recommend posting on that guys blog, since he obviously has done it before. and check out the forums on the apple site.

thats all i got, sorry.
ok cheers for the help anyway!
ASKER CERTIFIED SOLUTION
Avatar of jonsmithgraphics
jonsmithgraphics

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial