Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Customization
 CODE:Simple BANNER Rotation for VPASP
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

hakkatil
VP-CART New User

109 Posts

Posted - June 20 2002 :  11:23:18  Show Profile  Reply with Quote
If you'd like to add simple banner rotation system, here it is.

With this small script you can rotate your banners. Banners loaded everytime the page reloads. Just add this code infront of a page you want to add banners and change the directory destination of images. If you know some ASP, you can use existing VPASP database and add banner names and directory destination. Also this way your customer won't have to struggle while they are trying to change banners. That's it
or visit my test site http://208.17.144.14/testsite/default.asp



Enjoy the code.

' Copy this code and paste it into your pages.
<%
RANDOMIZE
LowestNumber = 1
HighestNumber = 10
RandomNumber = INT((HighestNumber-LowestNumber+1)*Rnd+LowestNumber)
SELECT CASE RandomNumber
CASE "1"%>
<A HREF="link1.htm"><IMG SRC="banner1.gif" BORDER=0></A>
<%CASE "2"%>
<A HREF="link2.htm"><IMG SRC="banner2.gif" BORDER=0></A>
<%CASE "3"%>
<A HREF="link3.htm"><IMG SRC="banner3.gif" BORDER=0></A>
<%CASE "4"%>
<A HREF="link4.htm"><IMG SRC="banner4.gif" BORDER=0></A>
<%CASE "5"%>
<A HREF="link5.htm"><IMG SRC="banner5.gif" BORDER=0></A>
<%CASE "6"%>
<A HREF="link6.htm"><IMG SRC="banner6.gif" BORDER=0></A>
<%CASE "7"%>
<A HREF="link7.htm"><IMG SRC="banner7.gif" BORDER=0></A>
<%CASE "8"%>
<A HREF="link8.htm"><IMG SRC="banner8.gif" BORDER=0></A>
<%CASE "9"%>
<A HREF="link9.htm"><IMG SRC="banner9.gif" BORDER=0></A>
<%CASE "10"%>
<A HREF="link10.htm"><IMG SRC="banner10.gif" BORDER=0></A>
<%END SELECT%>


  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00