Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - looking for a free asp banner script
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

looking for a free asp banner script

 Post Reply Post Reply Page  <12
Author
prigozu View Drop Down
Newbie
Newbie
Avatar

Joined: 09 January 2003
Location: United States
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote prigozu Quote  Post ReplyReply Direct Link To This Post Posted: 01 April 2003 at 1:20pm

I don't know how to write codes, i'm a graphic designer, i already have a banner script that i use on my site and it works very well the only problem is that it only supports gif & jpeg so it limites me if i want to design a flash banner for my clients, i need something that support all 3 formats. I will appreciate some help on finding the script.

Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 01 April 2003 at 1:55pm
Well looking into it it seems that the ad rotator uses image tags in a text file and flash are objects so it might not work. Might be wrong there. There are a few solutions found on the web most that look good cost money though. Can't you just make a flash movie with different links to different banners. ok you would not have any weighing in there but it would be a banner rotator. go to google and search around, there should be some stuff for you.
Back to Top
pedalcars View Drop Down
Senior Member
Senior Member


Joined: 12 August 2002
Location: United Kingdom
Status: Offline
Points: 268
Post Options Post Options   Thanks (0) Thanks(0)   Quote pedalcars Quote  Post ReplyReply Direct Link To This Post Posted: 09 May 2003 at 8:22am
Originally posted by Gullanian Gullanian wrote:


<SCRIPT LANGUAGE="JavaScript">
function random_banner(){
  var i=0;
  banners = new Array();
  banners[0] = '<IMG SRC="banner0.gif" WIDTH=400 HEIGHT=40>';
  banners[1] = '<IMG SRC="banner1.gif" WIDTH=400 HEIGHT=40>';
  banners[2] = '<IMG SRC="banner2.gif" WIDTH=400 HEIGHT=40>';
  today = new Date();
  i=today.getSeconds();
  n=banners.length;
  return banners[i-Math.round((i-1)/n)*n];
}
</SCRIPT>


in the array above just add the banners you want



Hi,

I'm trying this and it works fine with 1, 2 or 3 banners (like above).

However, when I add a fourth banner (banners[3]), it doesn't show - I get the word "undefined" on the page instead.

Currently the fourth entry is an exact duplicate of the (working) third entry (yes, I have changed it's number!)

Any suggestions?
www.pedalcars.info

The most fun on four wheels

Back to Top
Bluefrog View Drop Down
Senior Member
Senior Member


Joined: 23 October 2002
Location: Korea, South
Status: Offline
Points: 1701
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bluefrog Quote  Post ReplyReply Direct Link To This Post Posted: 10 May 2003 at 12:14pm

This is exactly what you want:

<%
SET objFrontAd=Server.CreateObject("MSWC.ContentRotator")
FrontAdPath="adRotator/myAds.txt"
FrontAd=objFrontAd.ChooseContent(FrontAdPath)
Response.Write FrontAd
SET objFrontAd=Nothing
%>

And then in the adRotator/myAds.txt  file enter something like:

%% 1
<a href="someURL.asp"><IMG SRC="myImage_1.jpg"></a>

%% 1
Any old HTML or text or whatever you feel like goes here. It cannot contain any ASP script though. <img src="thisPicture.gif>

Check the IIS documentation for more information on how to use the IIS ad rotator. It's drop dead simple and it works. Since objects are not script, they will work. Just enter the proper HTML code and you're good to go.

Cheers

 

 

 

 

Back to Top
pedalcars View Drop Down
Senior Member
Senior Member


Joined: 12 August 2002
Location: United Kingdom
Status: Offline
Points: 268
Post Options Post Options   Thanks (0) Thanks(0)   Quote pedalcars Quote  Post ReplyReply Direct Link To This Post Posted: 12 May 2003 at 5:02am
Thanks, I'll give it a go!
www.pedalcars.info

The most fun on four wheels

Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.