Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Adding a banner script to the top of all pages
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

HVROX
Junior Member

177 Posts

Posted - 26 May 2004 :  14:13:02  Show Profile
Hello,

Does anyone know how to add this banner script so it show up at the top of all pages?

Where should I place it and what else do need to add to make it work?




<SCRIPT LANGUAGE="Javascript"><!--

function banner() {
};

banner = new banner();
number = 0;

// bannerArray
banner[1] = "<a href='http://www.url1.com'/ target='_blank'><img src='images/banner-1.gif' border='0'></a>"
banner[2] = "<a href='http://www.url2.com'/ target='_blank'><img src='images/banner-2.gif' border='0'></a>"
banner[3] = "<a href='http://www.url3.com'/ target='_blank'><img src='images/banner-3.gif' border='0'></a>"
banner[4] = "<a href='http://www.url4.com'/ target='_blank'><img src='images/banner-4.gif' border='0'></a>"
banner[5] = "<a href='http://www.url5.com'/ target='_blank'><img src='images/banner-5.gif' border='0'></a>"

increment = Math.floor(Math.random() * number);

document.write(banner[increment]);

//--></SCRIPT>


OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 26 May 2004 :  22:39:27  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
Find the following code in inc_header.asp:
		"<body" & strTmpPageBGImageURL & " bgColor=""" & strPageBGColor & """ text=""" & strDefaultFontColor & """ link=""" & strLinkColor & """ aLink=""" & strActiveLinkColor & """ vLink=""" & strVisitedLinkColor & """>" & vbNewLine & _
		"<a name=""top""></a>" & vbNewLine & _
		vbNewLine & _
		"<table align=""center"" border=""0"" cellPadding=""0"" cellSpacing=""0"" width=""100%"">" & vbNewLine & _

and replace it with the following code:
		"<body" & strTmpPageBGImageURL & " bgColor=""" & strPageBGColor & """ text=""" & strDefaultFontColor & """ link=""" & strLinkColor & """ aLink=""" & strActiveLinkColor & """ vLink=""" & strVisitedLinkColor & """>" & vbNewLine & _
		"<a name=""top""></a>" & vbNewLine
%>
<SCRIPT LANGUAGE="Javascript"><!--

function banner() {
};

banner = new banner();
number = 0;

// bannerArray
banner[1] = "<a href='http://www.url1.com'/ target='_blank'><img src='images/banner-1.gif' border='0'></a>"
banner[2] = "<a href='http://www.url2.com'/ target='_blank'><img src='images/banner-2.gif' border='0'></a>"
banner[3] = "<a href='http://www.url3.com'/ target='_blank'><img src='images/banner-3.gif' border='0'></a>"
banner[4] = "<a href='http://www.url4.com'/ target='_blank'><img src='images/banner-4.gif' border='0'></a>"
banner[5] = "<a href='http://www.url5.com'/ target='_blank'><img src='images/banner-5.gif' border='0'></a>"

increment = Math.floor(Math.random() * number);

document.write(banner[increment]);

//--></SCRIPT>
<%
Response.Write  vbNewLine & _
		"<table align=""center"" border=""0"" cellPadding=""0"" cellSpacing=""0"" width=""100%"">" & vbNewLine & _

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.24 seconds. Powered By: Snitz Forums 2000 Version 3.4.07