Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 11:37 AM
Apostolis K.
Guest
 
Posts: n/a
Default 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
%>




  #2  
Old July 19th, 2005, 11:37 AM
Luka POZVEK
Guest
 
Posts: n/a
Default Re: AdRotator Component doesn't Rotate Ads

Hello!

Try with different values for time each ad is displayed in .txt file. So,
modify the .txt file like this:
[color=blue]
> _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[/color]

This means that every ad has 20% time or one fifth to display.
Hope it works!

Luka


"Apostolis K." <apostolis80@hotmail.com> wrote in message
news:%23KQcTtb6DHA.3860@tk2msftngp13.phx.gbl...[color=blue]
> 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
> %>
>
>
>
>[/color]


  #3  
Old July 19th, 2005, 11:38 AM
Apostolis K.
Guest
 
Posts: n/a
Default Re: AdRotator Component doesn't Rotate Ads

> Try with different values for time each ad is displayed in .txt file. So,[color=blue]
> modify the .txt file[/color]

I ve already tried with differrent values but the result is the same


  #4  
Old July 19th, 2005, 11:38 AM
Apostolis K.
Guest
 
Posts: n/a
Default Re: AdRotator Component doesn't Rotate Ads

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?


  #5  
Old July 19th, 2005, 11:38 AM
Dave
Guest
 
Posts: n/a
Default Re: AdRotator Component doesn't Rotate Ads

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." <apostolis80@hotmail.com> wrote in message
news:#d8lTne6DHA.2628@TK2MSFTNGP10.phx.gbl...[color=blue]
> 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?
>
>[/color]


  #6  
Old July 19th, 2005, 11:38 AM
Ray at
Guest
 
Posts: n/a
Default Re: AdRotator Component doesn't Rotate Ads

Tru dat.

--

Ray at home
Microsoft ASP MVP


"Dave" <dave_bm@hotmail.com> wrote in message
news:dsETb.12877$aU6.3148@bignews3.bellsouth.net.. .[color=blue]
> 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,[/color]
you[color=blue]
> will eventually see a different ad. I don't think the ads rotate on a[/color]
static[color=blue]
> page.
>
> Dave
>
>
> "Apostolis K." <apostolis80@hotmail.com> wrote in message
> news:#d8lTne6DHA.2628@TK2MSFTNGP10.phx.gbl...[color=green]
> > 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?
> >
> >[/color]
>
>[/color]


  #7  
Old July 19th, 2005, 11:40 AM
Rob Meade
Guest
 
Posts: n/a
Default Re: AdRotator Component doesn't Rotate Ads

"Dave" wrote ...
[color=blue]
> 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,[/color]
you[color=blue]
> will eventually see a different ad. I don't think the ads rotate on a[/color]
static[color=blue]
> page.[/color]

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


  #8  
Old July 19th, 2005, 11:40 AM
Apostolis K.
Guest
 
Posts: n/a
Default Re: AdRotator Component doesn't Rotate Ads

> So options for him might be :[color=blue]
> 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[/color]

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


  #9  
Old July 19th, 2005, 11:40 AM
Ray at
Guest
 
Posts: n/a
Default Re: AdRotator Component doesn't Rotate Ads

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

Ray at work

"Apostolis K." <apostolis80kk@hotmail.com> wrote in message
news:uVf1ZT06DHA.3052@TK2MSFTNGP09.phx.gbl...[color=blue][color=green]
> > So options for him might be :
> > use frames (eew) - and refresh the top frame every x minutes or[/color][/color]
something[color=blue][color=green]
> > just refresh the current page (assuming that there are no forms and[/color][/color]
stuff)[color=blue][color=green]
> > make an animated .gif[/color]
>
> I thought that this component rotates the ads by itself. If I want a true[/color]
ad[color=blue]
> rotator I could easy create one on my own with javascript
>
>[/color]


  #10  
Old July 19th, 2005, 11:41 AM
Apostolis K.
Guest
 
Posts: n/a
Default Re: AdRotator Component doesn't Rotate Ads

> It does do it. But remember, it's a SERVER-SIDE component, not a[color=blue]
> client-side thing.[/color]

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


  #11  
Old July 19th, 2005, 11:41 AM
Ray at
Guest
 
Posts: n/a
Default Re: AdRotator Component doesn't Rotate Ads

"Apostolis K." <apostolis80kk@hotmail.com> wrote in message
news:%23uEZkw16DHA.3860@tk2msftngp13.phx.gbl...[color=blue][color=green]
> > It does do it. But remember, it's a SERVER-SIDE component, not a
> > client-side thing.[/color]
>
> Yes but not in real time. You have to reload the page so the ad is changed
>[/color]

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

Ray at work



 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles