473,385 Members | 1,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 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 4532
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.