472,989 Members | 3,063 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,989 software developers and data experts.

AdRotator Component doesn't Rotate Ads

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
10 4091
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
> 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
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
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
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
"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
> 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
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
> 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
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Erica | last post by:
My images in Adrotator are not displaying. The ALT tag only displays. My text file looks like this: redirect redirect.asp border 0 height 115 width 215 * /images/awards.swf...
0
by: Erica | last post by:
Hopefully someone can offer me a workaround to this problem: I am using adRotator to rotate some reminders on my intranet site. I have a redirect page name redirect.asp that recieves the...
0
by: DDK | last post by:
Does anyone know if the asp.net adrotator control supports flash banners. If so, how does the XML file look with a flash banner in it. I am trying to get a .swf flash file to work with the...
0
by: Scott | last post by:
Hi Everyone, I would like to rotate a series of images based on a time interval, not when the pages is refreshed. Can the AdRotator control be configured to change images every x seconds? I found...
0
by: saravanavs | last post by:
I am using Adrotator ... i am included multiple images in xml file.. based on timing i have to display the image dynmically in the same Adrotator component..... But the images get changed if i click...
5
by: Dan | last post by:
Hi, I created an AdRotator control with this code: <asp:AdRotator id="AdRotator1" Runat="Server" AdvertisementFile="adrotator.xml"> </asp:AdRotator> The xml file contains: <Advertisements>...
2
by: Salimunnisaa | last post by:
Hello friends, I am using an adrotator. I want the images to rotate for specific intervals. I also want to ad a banner. If I click on that it should take me to a different page. It is very urgent.
2
by: =?Utf-8?B?cm9kY2hhcg==?= | last post by:
hey all, Can the AdRotator rotate on a timer? for instance if a user is sitting on one page can the ad rotate on a timer? thanks, rodchar
2
by: sonia.sardana | last post by:
With AdRotator adrvertisements keep changing........ I write the below code no error is there but two pictures are not displayed simultaneously and even they are not moving.... When we execute the...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
3
SueHopson
by: SueHopson | last post by:
Hi All, I'm trying to create a single code (run off a button that calls the Private Sub) for our parts list report that will allow the user to filter by either/both PartVendor and PartType. On...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.