Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rotating banner in ASP not working

Status
Not open for further replies.

LaPluma

Programmer
Feb 3, 2002
139
DE
Hello

I have obviously done something wrong in my attempt to create a rotating banner page in ASP because I get the following message:

Microsoft VBScript runtime error '800a01a8'

Object required: ''

/stevehigham/Banner.asp, line 11

Does anybody know what this can mean?

There is only one page (Banner.asp) and 3 images. Here is the full code for Banner.asp

<html>
<body>

<%
set adrotator=Server.CreateObject(&quot;MSWC.AdRotator&quot;)

'adrotator.Border=&quot;2&quot;
'me:the above adrotatot.Border=&quot;2&quot; statement is is not necessary:
'it simply specifies the borders around the advertisement

adrot.Clickable=false

'Specifies whether advertisement is a hyperlink or not

Response.Write(adrotator.GetAdvertisement(&quot;ads.txt&quot;))
%>



<p>
<a href=&quot;ads.txt&quot;>
<img border=&quot;0&quot; src=&quot;banner1.gif&quot;>
<img border=&quot;0&quot; src=&quot;banner2.gif&quot;>
<img border=&quot;0&quot; src=&quot;banner3.gif&quot;>

</a>
</p>

</body>
</html>



 
[tt]I like using this method instead, that way I know there's no syntax errors
faq333-1806
 
adrot.Clickable=false
should be
adrotator.Clickable=false codestorm
Fire bad. Tree pretty. - Buffy
select * from population where talent > 'average'
<insert witticism here>
 
Hello Codestorm and Decojute

Many thanks for both of your helpful replies.

Yes, I know it can be done in JavaScript. I suppose I just wanted to try it out in ASP!

Thank you also, Codestorm, for pointing out an obvious error.

Best wishes

Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top