Web Layout
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsWeb DesignWeb Layout

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old May 16th, 2006, 08:34 AM
wagae wagae is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2006
Posts: 45 wagae User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 9 m 9 sec
Reputation Power: 3
Exclamation Banner Ad rotator(.swf)

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>

Reply With Quote
  #2  
Old May 25th, 2006, 02:54 PM
RChicken's Avatar
RChicken RChicken is offline
bawk bawk bawk
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2006
Location: Dothan, AL
Posts: 369 RChicken User rank is Second Lieutenant (5000 - 10000 Reputation Level)RChicken User rank is Second Lieutenant (5000 - 10000 Reputation Level)RChicken User rank is Second Lieutenant (5000 - 10000 Reputation Level)RChicken User rank is Second Lieutenant (5000 - 10000 Reputation Level)RChicken User rank is Second Lieutenant (5000 - 10000 Reputation Level)RChicken User rank is Second Lieutenant (5000 - 10000 Reputation Level)RChicken User rank is Second Lieutenant (5000 - 10000 Reputation Level)  Folding Points: 7556 Folding Title: Novice Folder
Time spent in forums: 4 Days 4 h 30 m 40 sec
Reputation Power: 60
Send a message via ICQ to RChicken Send a message via AIM to RChicken Send a message via MSN to RChicken Send a message via Yahoo to RChicken Send a message via XFire to RChicken
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.

Reply With Quote
  #3  
Old June 26th, 2006, 08:04 PM
shamrog12's Avatar
shamrog12 shamrog12 is offline
Newton's Apple Wizard
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 1,661 shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Weeks 2 Days 2 h 39 m 22 sec
Reputation Power: 34
Send a message via AIM to shamrog12
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.


Reply With Quote
Reply

Viewing: ASP Free ForumsWeb DesignWeb Layout > Banner Ad rotator(.swf)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway