Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML code for a rotating banner

Status
Not open for further replies.

TobyWoods

Technical User
Dec 5, 2011
1
GB
Hey guys, recently I've been trying to implement a rotating banner on my store's website. I found a code online, which had positive feedback, which I tried to use. However, this code did not work, and when I try to use it on the website, there is only a 'refresh' sign in the location that the rotating banner should be.

This is the code I found and have adapted (which does not work):

<?xml version="1.0" encoding="iso-8859-1"?>
<rotator isRandom="false">
<bannerTime>3</bannerTime>
<numberOfBanners>4</numberOfBanners>
<banners showHeader="true">
<banner>
<name>2012 Complete Bikes</name>
<body>2012 Complete Bikes</body>
<imagePath>2012-bikes.jpg</imagePath>
<link>/77/Complete_Bikes.aspx</link>
</banner>
<banner>
<name>Free Headset And BB</name>
<body>Free Headset And BB</body>
<imagePath>frehsetnbb.jpg</imagePath>
</banner>
<banner>
<name>Spend 100 Pounds, Get 15 Pounds Off</name>
<body> Spend 100 Pounds, Get 15 Pounds Off</body>
<imagePath>spend100.jpg</imagePath>
</banner>
<banner>
<name>10 Percent Off Tyres 35 Pounds Or More</name>
<body> 10 Percent Off Tyres 35 Pounds Or More</body>
<imagePath>ty10pct.jpg</imagePath>
<link>/49/tyres.aspx</link>
</banner>
</banners>
</rotator>


This is the code that is currently being used on the website, which is a banner with a link (this code works):

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<adverts>
<adv>
<image>
15bikes.jpg
</image>
<link>/77/Complete_Bikes.aspx</link>
</adv>
</adverts>

Any help would be greatly appreciated; thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top