A
Apostolis K.
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
%>
_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
%>