suresh1 Posted June 9, 2009 Share Posted June 9, 2009 function InsertChart( $flash_file, $library_path, $php_source, $width=400, $height=250, $bg_color="666666", $transparent=false, $license="D1OURHVZC2BA8F76D5J6.FNAH2VORK" ){ $php_source=urlencode($php_source); $library_path=urlencode($library_path); $html="<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' "; $html.="WIDTH=".$width." HEIGHT=".$height." id='charts' ALIGN=''>"; $u=(strpos ($flash_file,"?")===false)? "?" : ((substr($flash_file, -1)==="&")? "":"&"); $html.="<PARAM NAME=movie VALUE='".$flash_file.$u."library_path=".$library_path."&stage_width=".$width."&stage_height=".$height."&php_source=".$php_source; if($license!=null){$html.="&license=".$license;} $html.="'> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#".$bg_color."> "; if($transparent){$html.="<PARAM NAME=wmode VALUE=transparent> ";} $html.="<EMBED src='".$flash_file.$u."library_path=".$library_path."&stage_width=".$width."&stage_height=".$height."&php_source=".$php_source; if($license!=null){$html.="&license=".$license;} $html.="' quality=high bgcolor=#".$bg_color." WIDTH=".$width." HEIGHT=".$height." NAME='charts' ALIGN='' swLiveConnect='true' "; if($transparent){$html.="wmode=transparent ";} $html.="TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'></EMBED></OBJECT>"; return $html; } above php code is working fine in IE, but it is not working in mozila, give me any suggestions. thanks in adv....................... Quote Link to comment Share on other sites More sharing options...
haku Posted June 9, 2009 Share Posted June 9, 2009 That's not swfObject at all. Quote Link to comment Share on other sites More sharing options...
DarkSuperHero Posted June 9, 2009 Share Posted June 9, 2009 PLEASE USE CODE TAGS...the code is horrible as it is....eg: no indentation and everythign clustered together, no spaces... function InsertChart( $flash_file, $library_path, $php_source, $width=400, $height=250, $bg_color="666666", $transparent=false, $license="D1OURHVZC2BA8F76D5J6.FNAH2VORK" ){ $php_source=urlencode($php_source); $library_path=urlencode($library_path); $html="<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' "; $html.="WIDTH=".$width." HEIGHT=".$height." id='charts' ALIGN=''>"; $u=(strpos ($flash_file,"?")===false)? "?" : ((substr($flash_file, -1)==="&")? "":"&"); $html.="<PARAM NAME=movie VALUE='".$flash_file.$u."library_path=".$library_path."&stage_width=".$width."&stage_height=".$height."&php_source=".$php_source; if($license!=null){$html.="&license=".$license;} $html.="'> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#".$bg_color."> "; if($transparent){$html.="<PARAM NAME=wmode VALUE=transparent> ";} $html.="<EMBED src='".$flash_file.$u."library_path=".$library_path."&stage_width=".$width."&stage_height=".$height."&php_source=".$php_source; if($license!=null){$html.="&license=".$license;} $html.="' quality=high bgcolor=#".$bg_color." WIDTH=".$width." HEIGHT=".$height." NAME='charts' ALIGN='' swLiveConnect='true' "; if($transparent){$html.="wmode=transparent ";} $html.="TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'></EMBED></OBJECT>"; return $html; } what is the actual HTML output..can you post that in code tags for us?! haku, he probably means is "a swf object", not he using "swfObject" Quote Link to comment Share on other sites More sharing options...
suresh1 Posted June 10, 2009 Author Share Posted June 10, 2009 function InsertChart( $flash_file, $library_path, $php_source, $width=400, $height=250, $bg_color="666666", $transparent=false, $license="D1OURHVZC2BA8F76D5J6.FNAH2VORK" ){ $php_source=urlencode($php_source); $library_path=urlencode($library_path); $html="<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' "; $html.="WIDTH=".$width." HEIGHT=".$height." id='charts' ALIGN=''>"; $u=(strpos ($flash_file,"?")===false)? "?" : ((substr($flash_file, -1)==="&")? "":"&"); $html.="<PARAM NAME=movie VALUE='".$flash_file.$u."library_path=".$library_path."&stage_width=".$width."&stage_height=".$height."&php_source=".$php_source; if($license!=null){$html.="&license=".$license;} $html.="'> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#".$bg_color."> "; if($transparent){$html.="<PARAM NAME=wmode VALUE=transparent> ";} $html.="<EMBED src='".$flash_file.$u."library_path=".$library_path."&stage_width=".$width."&stage_height=".$height."&php_source=".$php_source; if($license!=null){$html.="&license=".$license;} $html.="' quality=high bgcolor=#".$bg_color." WIDTH=".$width." HEIGHT=".$height." NAME='charts' ALIGN='' swLiveConnect='true' "; if($transparent){$html.="wmode=transparent ";} $html.="TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'> </EMBED></OBJECT>"; return $html; } above php code not working in mozila Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.