Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Banner Rotator problem
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

justabloke
Starting Member

United Kingdom
15 Posts

Posted - 14 June 2006 :  09:07:24  Show Profile  Visit justabloke's Homepage
Hello everyone,

Hopefully someone will be able to help cos this is driving me mad!

I'm using the asp banner rotator object.
I have the corect code in my pages,I have a banner rotation schedule with 2 banners in it.
The banners rotate quite happily.
Clicks are enabled but for some reason the actual click URL is corrupted.

http://www.aroc-uk.com/?url=http://www.chrisknott.co.uk&image=http://www.aroc-uk.com/adverts/ck-banner.gif


my list of banners looks like this ->

*
http://www.4guysfromrolla.com/images/banner1.gif
http://www.bannercompany1.com
Buy stuff at BannerCompany1!
50
http://www.4guysfromrolla.com/images/banner2.gif
http://www.acme.com
Come shop at Acme.com!
50


but with my values in it.

I use an include file "banner.inc" which contains the following :-

<%
Dim ad
Set ad = Server.CreateObject("MSWC.AdRotator")
Response.Write(ad.GetAdvertisement("/scripts/adrot.txt"))
%>



It all seems like it should work correctly so I have no idea what is causing this.

Any ideas?

TIA

NetMan96SS
Starting Member

15 Posts

Posted - 07 September 2007 :  10:11:18  Show Profile
... in your banner list ... above the asterisk ... you need a redirect .asp file as stated in the 4guys website. I use this and it works fine.

... my question is probably a bit more simple, but I have not worked with asp long enough to know exactly what to do. When you click on one of my ad banners ... you are redirected to the http that is associated with that ad banner ... but it takes over the current window.

How do I get it to open a new window to take you to the ad redirect?

... based on the same code above. where and what do I need to ad to the code? I think it belongs in the response.write ... but I'm used to seeing <> in there ... not the ()

- Tony
Go to Top of Page

CertGuard
Starting Member

United States
10 Posts

Posted - 02 December 2007 :  11:47:11  Show Profile  Visit CertGuard's Homepage
Amazing nobody has answered this in the past ~3 months. The solution is a very simple: adrot.TargetFrame="target='_blank'" added to the rotator call.


<%
set adrot=Server.CreateObject("MSWC.AdRotator")
adrot.TargetFrame="target='_blank'"
Response.Write(adrot.GetAdvertisement("ads.txt"))
%>


Good Luck!!

Robert Williams

Join the fight against braindumps!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.19 seconds. Powered By: Snitz Forums 2000 Version 3.4.07