473,782 Members | 2,465 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

AdRotator Component doesn't Rotate Ads

I include an AdRotator component but the component doesn't rotate the ads
_index.asp_
<%
Set objAd=Server.Cr eateObject("MSW C.AdRotator")
vAdRotation=obj Ad.GetAdvertise ment("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.Qu eryString("url" )
Response.Redire ct vURL
%>


Jul 19 '05 #1
10 4880
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*********@ho tmail.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. .. I include an AdRotator component but the component doesn't rotate the ads
_index.asp_
<%
Set objAd=Server.Cr eateObject("MSW C.AdRotator")
vAdRotation=obj Ad.GetAdvertise ment("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.Qu eryString("url" )
Response.Redire ct 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*********@ho tmail.com> wrote in message
news:#d******** ******@TK2MSFTN GP10.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*****@hotmai l.com> wrote in message
news:ds******** **********@bign ews3.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*********@ho tmail.com> wrote in message
news:#d******** ******@TK2MSFTN GP10.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******** ******@TK2MSFTN GP09.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

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
5595
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 http://www.starone-intranet.com/main.asp
0
2566
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 querystring variable, 'url' and redirects the user to that page. One of the reminders should be redirected to a url that contains query strings itself. The url passes in the string up to the first '&'. What should I do. Here is the code on the page...
0
3396
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 adrotator and it doesn't seem to be displaying. I just not sure what needs to done. Any info would be much appreciated, D.
0
1227
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 this control does most of what I need, the exception being this post. I am open to the idea of using a third party content rotator, preferable open source, if the adrotator cannot do this. Please feel free to offer suggestions.
0
1265
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 refresh button on the explorer
5
3124
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> <Ad>
2
1289
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
1061
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
1543
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 below code.One picture is displayed...and when we refresh the page then the second picture is displayed....... <html> <form runat ="server> <asp:AdRotator id="AdRotator1" runat="server" Target="_self" ...
0
9641
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10313
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10146
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7494
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5378
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4044
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3643
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2875
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.