By ephman on
hello,
i've been banging my head up against the wall trying to understand why when i place this piece of code into a node with full html nothing renders? am i missing something? all the proper files are where they should be. does drupal just not understand what to do with this?
thanks,
ephman
<script type="text/javascript">
//Note: If you are embedding the tvstation swf to your web page then import this javascript code which tvstation uses to detect browser type :)
function checkBrowser()
{
var sUserAgent = navigator.userAgent;
var bOpera = (sUserAgent.indexOf('Opera') != -1);
var bIE = (sUserAgent.indexOf('MSIE') != -1);
var bGecko = (sUserAgent.indexOf('Gecko') != -1);
var bFirefox = (sUserAgent.indexOf('Firefox') != -1);
var bSafari = (sUserAgent.indexOf('Safari') != -1);
var bCamino = (sUserAgent.indexOf('Camino') != -1);
var bOldNetscape = (sUserAgent.indexOf('Mozilla') != -1);
var sBrowserUse;
if( bOpera )
{
sBrowserUse = "opera";
}else if( bIE )
{
sBrowserUse = "ie";
}else if( bGecko )
{
if( bSafari )
{
sBrowserUse = "safari";
}else if( bFirefox )
{
sBrowserUse = "firefox";
}else if( bCamino )
{
sBrowserUse = "camino";
}else{
sBrowserUse = "mozilla";
}
}else if( bOldNetscape )
{
sBrowserUse = "netscape";
}else{
sBrowserUse = "unknown";
}
return sBrowserUse;
}
</script>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="1100" height="900" id="tvstation_viewer" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="tvstation_viewer.swf" />
<param name="quality" value="high" />
<param name="allowFullScreen" value="true" />
<param name="bgcolor" value="#ffffff" />
<embed src="tvstation_viewer.swf" quality="high" allowfullscreen="true" bgcolor="#ffffff" width="1100" height="900" name="tvstation_viewer" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</td>
</tr>
</table>
Comments
check .swf path
You may need to write out the full path to your flash movie
nope didn't work, tried to
nope didn't work, tried to put the path in, but still the node is blank :( any other ideas? when i place the code into a simple html file it works.
thanks,
ephman
=-=
what if the input format is switched to php ?
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
nope. still a no go.
sweet. wrapping it with the php tags worked... thank you so much for the tip!
thanks,
ephman