| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi there.
I have followed the example on msdn ( http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnasp/html/asptutorial.asp) about the Ad rotator. THe only difference her is i am using .swf instead of .gif/jpeg. I am not sure whether this is why my banner does not show...please help. Examples included below 3 files involved are the inlude file <% Function getAd() Dim load 'Create an instance of the AdRotator component Set load=Server.CreateObject("MSWC.AdRotator") 'Set the target frame, if any. This is the frame 'where the URL will open up. If the HTML page does 'not find the target name, the URL will be opened 'in a new window. load.TargetFrame = "Target = new" 'Get a random advertisement from the text file. getAd = load.GetAdvertisement("adimagedata.txt") End Function %> 2. The .txt file REDIRECT adrotatorredirect.asp WIDTH 250 HEIGHT 60 BORDER 0 * ' separates the general data from the image information images/windows_logo.gif http://www.microsoft.com/windows Microsoft Windows 2 images/office_logo.gif http://www.microsoft.com/office Office 2000 3 3. And the code to put where i want the ads to appear <p><%=getAd()%></p> |
|
#2
|
||||
|
||||
|
i keep editing my post the more i read into this. But from what i'm finding is that it can be done in asp.net and that i'm not finding much with regular asp.
what you need to do is get the swf file to be embeded with either putting the code in your ad.txt file or acctually put it on the page itself and use the asp tag in the src. |
|
#3
|
||||
|
||||
|
there is an ASP 3.0 component called Ad Rotator which does just what it suggests.... rotates ads.
http://www.w3schools.com/asp/asp_adrotator.asp
__________________
If you found a post of mine helpful, please click on the on my post to add to my reputation.
|
![]() |
| Viewing: ASP Free Forums > Web Design > Web Layout > Banner Ad rotator(.swf) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|