I can't get this to work, just gives me errors.
I have this on another site, and it works fine:
<div id="rightcorner">
<?php
if (is_page('Home')) {
echo '
<div id="rightcornerinner"><object id="flashObj" width="224" height="214" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,47,0"><param name="movie" value="http://c.brightcove.com/services/viewer/federated_f9/5094541001?isVid=1&publisherID=1634697872" /><param name="flashVars" value="videoId=1772860099&linkBaseURL=http%3A%2F%2Fbeachbodycoach.com%2Fesuite%2Fhome%2FTeamFullForce%3Fbctid%3D1805534547&playerID=5094541001&domain=embed&&autoStart=true&" /><param name="base" value="http://admin.brightcove.com" /><param name="seamlesstabbing" value="false" /><param name="allowFullScreen" value="true" /><param name="swLiveConnect" value="true" /><param name="wmode" value="transparent"><param name="allowScriptAccess" value="always" /><embed src="http://c.brightcove.com/services/viewer/federated_f9/5094541001?isVid=1&publisherID=1634697872" flashVars="videoId=1772860099&linkBaseURL=http%3A%2F%2Fbeachbodycoach.com%2Fesuite%2Fhome%2FTeamFullForce%3Fbctid%3D1805534547&playerID=5094541001&domain=embed&autoStart=true&" base="http://admin.brightcove.com" name="flashObj" wmode="transparent" width="224" height="214" seamlesstabbing="false" type="application/x-shockwave-flash" allowFullScreen="true" swLiveConnect="true" allowScriptAccess="always" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object></div>
';
} else {
echo '
<a href="http://teambeachbody.com/ etc, etc...>some other stuff</a>
';
}
?>
</div>
But when I try to use my own video and put the following code in instead of the <object id="flashObj" and so on, I just get errors:
<div id="rightcornerinner">
<script type="text/javascript" src="http://twotimechamp.com/wp-content/uploads/swfobject.js"></script>
<div id="player">This text will be replaced</div>
<script type="text/javascript">
var so = new SWFObject('http://twotimechamp.com/wp-content/uploads/player.swf','mpl','224','214', '9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addParam('flashvars','&file=http://twotimechamp.com/wp-content/uploads/RBvsEH.flv&stretching=exactfit&icons=false&autostart=true&screencolor=000000&backcolor=000000&frontcolor=dddddd&lightcolor=dddddd&volume=20');
so.write('player');
</script>
</div>
</div>
If I just put that code in, the video shows up just fine, it just won't work inside the statement. What do I do?
Thanks