php - Replace SWF file with image for mobile devices -
i have built website www.jetcleandrives.co.uk however, have noticed swf file not display on mobile devices. can advise me of best way round this. illustration can php used display image instead on devices can't handle swf? or there way display slideshow on devices?
the code slideshow is,
<div id="slideshow"> <object width="450" height="338" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" title="slideshow of driveway cleaning selly oak"> <param name="scale" value="showall" /> <param name="bgcolor" value="" /> <param name="wmode" value="opaque" /> <param name="flashvars" value="" /> <param name="movie" value="media/jetcleandrivesslideshow.swf" /> <param name="quality" value="high" /> <embed width="450" height="338" scale="showall" wmode="transparent" quality="high" src="media/jetcleandrivesslideshow.swf" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed> </object> </div><!--end slideshow-->
i consider switching using object
tag swfobject (http://code.google.com/p/swfobject/) bit more control/flexibility.
there simple illustration available on project's documentation page: http://code.google.com/p/swfobject/wiki/documentation
<script type="text/javascript" src="swfobject.js"></script> <script type="text/javascript"> swfobject.embedswf("mycontent.swf", "mycontent", "300", "120", "9.0.0"); </script>
and can specify alternative content:
<div id="mycontent"> <p>alternative content</p> </div>
i think plenty requirements.
additional: 1 of (more advanced) features swfobject ability register javascript function callback, fired 1 time swfobject has loaded. developer can check status of swfobject , unhide/replace content.
an illustration of can found at: http://www.bobbyvandersluis.com/swfobject/testsuite_2_2/test2.html
php mobile flash slideshow
No comments:
Post a Comment