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 ?

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

<body>
<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");
			so.write("flashcontent");
		</script>
	</div>
</div>

Open in new window

DircoBuddyAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

RobertPopeCommented:
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
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Drupal

From novice to tech pro — start learning today.