I am trying to add a flash header to my site. The flash file works when opened independently, but not when added to the drupal page.tpl.php ????

This is what i added to my header:

	<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="978" height="250" id="header" align="middle">
	<param name="allowScriptAccess" value="sameDomain" />
	<param name="allowFullScreen" value="false" />
	<param name="movie" value="flash/header.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />	<embed src="flash/header.swf" quality="high" bgcolor="#ffffff" width="978" height="250" name="header" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
	</object>

I am lost? Does Drupal not let you embed Flash in this way?? Can anyone help??

Thanks

Edited by: VM; added code tags around HTML used so that it can be views

Comments

vm’s picture

When posting code on drupal.org please use code tags so that the HTML isn't stripped from your post.

After altering tpl.php files ensure you clear your cache in administer -> performance

sri20198’s picture

You have set the path of the flash file to flash/header.swf. Instead, in your tpl file, you will have to give the full path, something like this:

<?php print base_path();?>/<?php print path_to_theme();?>/flash/header.swf

In the above code, I am assuming that you have kept the flash file in your /sites/all/themes/theme-folder/flash/header.swf.

rgds,
Sridhar