By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,719 Members | 1,036 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,719 IT Pros & Developers. It's quick & easy.

AdRotator Component doesn't Rotate Ads

P: n/a
I include an AdRotator component but the component doesn't rotate the ads
_index.asp_
<%
Set objAd=Server.CreateObject("MSWC.AdRotator")
vAdRotation=objAd.GetAdvertisement("ads.txt")

Response.Write "<center>" & vAdRotation & "</center>"

%>
<html>
----------------------------------------------------------
_ads.txt_
REDIRECT redirect.asp
*
1.jpg
http:www.1.com
1.com
1
2.jpg
http:www.2.com
2.com
1
3.jpg
http:www.3.com
3.com
1
4.jpg
http:www.4.com
4.com
1
5.jpg
http:www.5.com
5.com
1
-------------------------------------------------------------------
redirect.asp
<%
vURL=Request.QueryString("url")
Response.Redirect vURL
%>


Jul 19 '05 #1
Share this Question
Share on Google+
10 Replies


P: n/a
Hello!

Try with different values for time each ad is displayed in .txt file. So,
modify the .txt file like this:
_ads.txt_
REDIRECT redirect.asp
*
1.jpg
http:www.1.com
1.com
20
2.jpg
http:www.2.com
2.com
20
3.jpg
http:www.3.com
3.com
20
4.jpg
http:www.4.com
4.com
20
5.jpg
http:www.5.com
5.com
20
This means that every ad has 20% time or one fifth to display.
Hope it works!

Luka
"Apostolis K." <ap*********@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl... I include an AdRotator component but the component doesn't rotate the ads
_index.asp_
<%
Set objAd=Server.CreateObject("MSWC.AdRotator")
vAdRotation=objAd.GetAdvertisement("ads.txt")

Response.Write "<center>" & vAdRotation & "</center>"

%>
<html>
----------------------------------------------------------
_ads.txt_
REDIRECT redirect.asp
*
1.jpg
http:www.1.com
1.com
1
2.jpg
http:www.2.com
2.com
1
3.jpg
http:www.3.com
3.com
1
4.jpg
http:www.4.com
4.com
1
5.jpg
http:www.5.com
5.com
1
-------------------------------------------------------------------
redirect.asp
<%
vURL=Request.QueryString("url")
Response.Redirect vURL
%>

Jul 19 '05 #2

P: n/a
> Try with different values for time each ad is displayed in .txt file. So,
modify the .txt file


I ve already tried with differrent values but the result is the same
Jul 19 '05 #3

P: n/a
If I change to the values you say, can you tell me how long (in
seconds/minutes) every ad is supposed to appear on the screen?
Jul 19 '05 #4

P: n/a
I think the ads only rotate with each page refresh or redisplay. And the
same ad may appear again on a page refresh but if you keep pressing F5, you
will eventually see a different ad. I don't think the ads rotate on a static
page.

Dave
"Apostolis K." <ap*********@hotmail.com> wrote in message
news:#d**************@TK2MSFTNGP10.phx.gbl...
If I change to the values you say, can you tell me how long (in
seconds/minutes) every ad is supposed to appear on the screen?

Jul 19 '05 #5

P: n/a
Tru dat.

--

Ray at home
Microsoft ASP MVP
"Dave" <da*****@hotmail.com> wrote in message
news:ds******************@bignews3.bellsouth.net.. .
I think the ads only rotate with each page refresh or redisplay. And the
same ad may appear again on a page refresh but if you keep pressing F5, you will eventually see a different ad. I don't think the ads rotate on a static page.

Dave
"Apostolis K." <ap*********@hotmail.com> wrote in message
news:#d**************@TK2MSFTNGP10.phx.gbl...
If I change to the values you say, can you tell me how long (in
seconds/minutes) every ad is supposed to appear on the screen?


Jul 19 '05 #6

P: n/a
"Dave" wrote ...
I think the ads only rotate with each page refresh or redisplay. And the
same ad may appear again on a page refresh but if you keep pressing F5, you will eventually see a different ad. I don't think the ads rotate on a static page.


So options for him might be :

use frames (eew) - and refresh the top frame every x minutes or something
just refresh the current page (assuming that there are no forms and stuff)
make an animated .gif

Regards

Rob
Jul 19 '05 #7

P: n/a
> So options for him might be :
use frames (eew) - and refresh the top frame every x minutes or something
just refresh the current page (assuming that there are no forms and stuff)
make an animated .gif


I thought that this component rotates the ads by itself. If I want a true ad
rotator I could easy create one on my own with javascript
Jul 19 '05 #8

P: n/a
It does do it. But remember, it's a SERVER-SIDE component, not a
client-side thing.

Ray at work

"Apostolis K." <ap***********@hotmail.com> wrote in message
news:uV**************@TK2MSFTNGP09.phx.gbl...
So options for him might be :
use frames (eew) - and refresh the top frame every x minutes or something just refresh the current page (assuming that there are no forms and stuff) make an animated .gif
I thought that this component rotates the ads by itself. If I want a true

ad rotator I could easy create one on my own with javascript

Jul 19 '05 #9

P: n/a
> It does do it. But remember, it's a SERVER-SIDE component, not a
client-side thing.


Yes but not in real time. You have to reload the page so the ad is changed
Jul 19 '05 #10

P: n/a
"Apostolis K." <ap***********@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
It does do it. But remember, it's a SERVER-SIDE component, not a
client-side thing.


Yes but not in real time. You have to reload the page so the ad is changed


Well, yes, of course. It's an Active SERVER Pages component, not an active
CLIENT pages thing.

Ray at work

Jul 19 '05 #11

This discussion thread is closed

Replies have been disabled for this discussion.