Dennis_Gull
04-10-2007, 03:01 AM
Hello, I got some problems with my php code, im trying to use a javascript to remove the "click here to activate" but I got some problems, take a look at this code, at AC_FL_RunContent( 'codebase' all the text become "bugged" because I already used one ' before. Anyways here it is:
<?php
$link = '<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<script src="Scripts/AC_ActiveX.js" type="text/javascript"></script>
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','100','height','100','src','click_test','quality','high','FlashVars','file=<?php echo $numb; ?>','wmode','opaque','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','click_test' ); //end AC code
</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="100" height="100">
<param name="movie" value="click_test.swf" />
<param name="quality" value="high" />
<param name="FlashVars" value="file=<?php echo $numb; ?>" />
<param name="wmode" value="opaque" />
<embed src="click_test.swf" quality="high" FlashVars="<?php echo $numb; ?>" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="opaque" width="100" height="100"></embed>
</object></noscript>';
?>
At first I was just going to end the tag ?> and then place the javascript and then open the php tag again with <?php
But the $link = file doesnt work then... im not sure what to do now, should I try to use " or ´?
<?php
$link = '<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<script src="Scripts/AC_ActiveX.js" type="text/javascript"></script>
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','100','height','100','src','click_test','quality','high','FlashVars','file=<?php echo $numb; ?>','wmode','opaque','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','click_test' ); //end AC code
</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="100" height="100">
<param name="movie" value="click_test.swf" />
<param name="quality" value="high" />
<param name="FlashVars" value="file=<?php echo $numb; ?>" />
<param name="wmode" value="opaque" />
<embed src="click_test.swf" quality="high" FlashVars="<?php echo $numb; ?>" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="opaque" width="100" height="100"></embed>
</object></noscript>';
?>
At first I was just going to end the tag ?> and then place the javascript and then open the php tag again with <?php
But the $link = file doesnt work then... im not sure what to do now, should I try to use " or ´?