×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

XML code for a rotating banner

XML code for a rotating banner

XML code for a rotating banner

(OP)
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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close