Revision: 48136
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at June 24, 2011 11:45 by kbrown
Initial Code
<?php if(strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'],'iPod') || strstr($_SERVER['HTTP_USER_AGENT'],'iPad')) { echo('<div id="homeAnimation"> <a href="javascript:switchtoVideo()"><img src="/images/photo-home1.jpg" width="622" height="360" /></a> <a href="javascript:switchtoVideo()"><img src="/images/photo-home2.jpg" width="622" height="360" /></a> </div>'); } else { echo('<div id="homeVideo"> <script type="text/javascript"> var FO = { movie:"swf/home.swf", width:"622", height:"360"}; create(FO); </script> <noscript> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="622" height="360"> <param name="movie" value="swf/home.swf"> <param name="quality" value="high"> <embed src="swf/home.swf" width="622" height="360" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed> </object> </noscript> </div>'); } ?>
Initial URL
Initial Description
Initial Title
php switch content for ipad/iphone/ipod
Initial Tags
php, iphone
Initial Language
PHP