Ad Rotator Component

Results 1 to 2 of 2

Thread: Ad Rotator Component

  1. #1
    Don Botten Guest

    Default Ad Rotator Component

    Ad Rotator - When I run the following Ad.asp The ads rotate when I refresh<BR>But when I click on them I don&#039t go to the url specified, but it just refreshes the page, usually with a new ad.. When I put the curser over the ad it shows a very long url at the bottom of the browser. It is supposed to take me to the URL specified. What am I doing wrong???<BR><BR>AdSchedule.txt is:<BR><BR>border 2<BR>height 50<BR>width 110<BR>*<BR>imagesanr.gif<BR><BR>The Happiness Formula<BR>1<BR>images
    ote.gif<BR><BR>Great Laptop Computer<BR>1<BR>imagesisp.gif<BR><BR>Great Internet Connection<BR>1<BR><BR>Ad.asp is:<BR>&#060;HTML><BR>&#060;HEAD><BR>&#060;TITLE>R otating Ads&#060;/TITLE><BR>&#060;/HEAD><BR>&#060;BODY><BR>&#060;center><BR>&#060;H1> Rotating Ads&#060;/h1><BR>&#060;%<BR>Dim varAd, objAd<BR>Set objAd = Server.CreateObject("MSWC.AdRotator")<BR>varAd = objAd.GetAdvertisement("AdSched.txt")<BR>Response. Write varAd<BR>&#037;&#062;<BR>&#060;/center><BR>&#060;/BODY><BR>&#060;/HTML><BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Ad Rotator Component

    I think it&#039s because if you use the options above (BORDER, WIDTH, etc.), you need to also specify a REDIRECT file.<BR><BR>See for an example of how to use the Ad Rotator.<BR><BR>So, make some redirect script, and specify it in your AdSched.txt file. So, you might add the line REDIRECT /scripts/adredir.asp at the top of AdSched.txt, and then create an ASP file there which has only the following line:<BR><BR>&#060;% Response.Redirect Request.QueryString("URL") &#037;&#062;<BR><BR>Let me know if that works! Have a great day!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts