SWF and XML banner in Drupal

Good Day i need some help i bought a banner with an xml data file and would like to use it in drupal page.tpl.php.

How do i change the following ?

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="swfobject.js"></script>

<div align="center">
	<div id="flashcontent">
		<script type="text/javascript">
			var so = new SWFObject("banner.swf", "mymovie", "490", "300", "8");
			so.addVariable("xmlPath", "data.xml");// <----You can change the path to the XML file here.
			so.addParam("menu", "false");

Open in new window

Who is Participating?
We've run into this problem with many of our clients - the trick is remembering the swf is called relative to the page (line 11) and the data.xml (on line 12) is called by the player.

So it all depends on where these files are located and where they are relative to eachother.  Typically they are placed in a folder at the root level of the THEME.  

If so change "banner.swf" to "/sites/all/themes/MYTHEME/MYPLAYERFOLDER/banner.swf"
if the XML file is on the same level as the swf that should be all you need.

Check the page  with both the www.MYSITE.com and just MYSITE.com

Good Luck
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.