Author |
Topic |
|
RedZone
Starting Member
USA
23 Posts |
Posted - 17 June 2001 : 19:56:30
|
Hi, I want to be able to put our own banner across the top of all pages, but I don't want to use frames and I want more than just an image (available thru the admin options.) I'm sure this isn't a complex problem, I just want to know what you guys think is the best and easiest way to do this. Let's assume I'll have my own .asp file that contains the content I want as the header (or banner) and is available through the subroutine DisplayRedZoneBanner(). What file(s) and where should I place this sub?
Thanks in advance.
--RedZone |
|
e3stone
Average Member
USA
885 Posts |
Posted - 18 June 2001 : 00:37:35
|
inc_top.asp
<-- Eric -->
InsideWaco.com |
|
|
gor
Retired Admin
Netherlands
5511 Posts |
Posted - 18 June 2001 : 00:50:24
|
yes, and stay away from inc_top_short.asp since you don't want banner in your popups
Pierre Join the Snitz WebRing |
|
|
e3stone
Average Member
USA
885 Posts |
Posted - 18 June 2001 : 04:55:51
|
question: do subs get processed everytime the page is loaded, or is it just as the names sounds, a "sub" function which is only processed when called? I'm not too familiar with subs, in general.
Are there advantages and disadvantages of using them?
sorry, this might be addressed elsewhere, already.
<-- Eric -->
InsideWaco.com |
|
|
gglosser
Starting Member
16 Posts |
Posted - 22 June 2001 : 16:18:43
|
quote:
inc_top.asp
<-- Eric -->
Eric,
Okay, that was easy. However, I would prefer to place the banner centered at the very top of each page, just the way you do in the Snitz Forums, with a horizontal rule beneath. Is there a MOD for this? I am using an Access 2000 database, and just installed Snitz this week at: http://www.mathgoodies.com/forum/
TIA, Gisele
|
|
|
gor
Retired Admin
Netherlands
5511 Posts |
Posted - 22 June 2001 : 16:28:20
|
No need for a mod, here is the code I added in inc_top.asp just below the "top anchor" and before the actual start of the rest of the page:
<a name="top"></a>
<!-- start Smartzone --> <table align="center" border="0" cellPadding="0" cellSpacing="0" width="100%"> <tr> <td valign="top" width="100%" align="center"> <table border=0 width="95%" cellspacing="0" cellpadding="0" align="center"> <tr> <td bgcolor="<% =strPageBGColor %>" align="center"> <!-- start Random Ads include --> <!--#INCLUDE FILE="../rnd_ads_02.asp" --> <!-- end Random Ads include --> <hr size=1> </td> </tr> </table> </td> </tr> </table> <!-- end Smartzone --> <font face="<% =strDefaultFontFace %>"> <table align="center" border="0" cellPadding="0" cellSpacing="0" width="100%">
rnd_ads_02.asp is one of our QaD Addrotater pages containing code like this:
<%
'## This file selects and displays a random rating option.... Randomize
intRatingID = Int(rnd * 8)
Select case intRatingID case 1,2,3,4 %> <!-- Commision Junction Smartzone --> <SCRIPT LANGUAGE="javascript" src="http://www.qksz.net/1e-2o7r"> </SCRIPT><br> <!-- end Smartzone --> <% case else %> <!-- Windows 2000 Magazine --> <a href="http://click.linksynergy.com/fs-bin/click?id=JZiMd2Xrqr8&offerid=26350.10000263&type=4&subid=0"><IMG alt="0928a" border=0 src="http://www.winntmag.com/linkshare/banners/0928a.gif"></a><IMG border=0 width=1 height=1 src="http://ad.linksynergy.com/fs-bin/show?id=JZiMd2Xrqr8&bids=26350.10000263&type=4&subid=0"> <% end select %>
In this case it looks like I only have two different banners, but the first is a Commission Junction "Smartzone" which can contain 1 to 25 different banners. Adding and removing bannercode is easy this way.
Pierre Join the Snitz WebRing |
|
|
mneedham
New Member
United Kingdom
84 Posts |
Posted - 24 June 2001 : 07:30:09
|
how would you add a banner if you only have the URL for it?
|
|
|
gor
Retired Admin
Netherlands
5511 Posts |
Posted - 24 June 2001 : 14:21:07
|
quote:
how would you add a banner if you only have the URL for it?
You mean like an unpaid banner ? because otherwise they always provide you with the exact code you need to use for them to track clicks/leads/sales.
Otherwise I figure you mean you have the url of the banner image ? Just use that in a image tag, i.e. replace <!-- Windows 2000 Magazine --> <a href="http://click.linksynergy.com/fs-bin/click?id=JZiMd2Xrqr8&offerid=26350.10000263&type=4&subid=0"><IMG alt="0928a" border=0 src="http://www.winntmag.com/linkshare/banners/0928a.gif"></a><IMG border=0 width=1 height=1 src="http://ad.linksynergy.com/fs-bin/show?id=JZiMd2Xrqr8&bids=26350.10000263&type=4&subid=0">
with <a href="http://www.aspin.com/"><IMG alt="Aspin" border=0 src="http://www.aspin.com/images/aspin/banners/aspin468x60.gif"></a>
Note: make sure you link the correct way. My example for Aspin shows an "incorrect" way because they ask you to save the images you use on your own server. I linked to the one on their server just for this example.
Pierre Join the Snitz WebRing |
|
|
mneedham
New Member
United Kingdom
84 Posts |
Posted - 24 June 2001 : 16:53:09
|
Thanks!
Say I get a paid banner and they give me the code which I have to implement, where would you suggets I put it?
Before any of the other HTMl or somewhere else on the inc_top.asp page
Cheers
|
|
|
SalmanKhana
Average Member
USA
961 Posts |
Posted - 02 August 2001 : 01:14:11
|
quote:
rnd_ads_02.asp is one of our QaD Addrotater pages containing code like this:
<%
'## This file selects and displays a random rating option.... Randomize
intRatingID = Int(rnd * 8)
Select case intRatingID case 1,2,3,4 %> <!-- Commision Junction Smartzone --> <SCRIPT LANGUAGE="javascript" src="http://www.qksz.net/1e-2o7r"> </SCRIPT><br> <!-- end Smartzone --> <% case else %> <!-- Windows 2000 Magazine --> <a href="http://click.linksynergy.com/fs-bin/click?id=JZiMd2Xrqr8&offerid=26350.10000263&type=4&subid=0"><IMG alt="0928a" border=0 src="http://www.winntmag.com/linkshare/banners/0928a.gif"></a><IMG border=0 width=1 height=1 src="http://ad.linksynergy.com/fs-bin/show?id=JZiMd2Xrqr8&bids=26350.10000263&type=4&subid=0"> <% end select %>
In this case it looks like I only have two different banners, but the first is a Commission Junction "Smartzone" which can contain 1 to 25 different banners. Adding and removing bannercode is easy this way.
Pierre Join the Snitz WebRing
Ok I understand the first part of your answer gor.
but about this random ads file, can we add more banners below this code Select case intRatingID case 1,2,3,4 %> ??
let me know please.
|
|
|
Aznknight
Senior Member
USA
1373 Posts |
Posted - 02 August 2001 : 02:25:13
|
quote:
but about this random ads file, can we add more banners below this code
by the look of it, i think you would do it like this
<%
'## This file selects and displays a random rating option.... Randomize
intRatingID = Int(rnd * 8)
Select case intRatingID case 1 %> <!-- Commision Junction Smartzone --> <SCRIPT LANGUAGE="javascript" src="http://www.qksz.net/1e-2o7r"> </SCRIPT><br> <!-- end Smartzone --> <% case 2 <a href...>another banner</a> case 3 <a href...>another banner</a> case 4 <a href...>another banner</a> case 5 <a href...>another banner</a> case 6 <a href...>another banner</a> case 7 <a href...>another banner</a> case else %> <!-- Windows 2000 Magazine --> <a href="http://click.linksynergy.com/fs-bin/click?id=JZiMd2Xrqr8&offerid=26350.10000263&type=4&subid=0"><IMG alt="0928a" border=0 src="http://www.winntmag.com/linkshare/banners/0928a.gif"></a><IMG border=0 width=1 height=1 src="http://ad.linksynergy.com/fs-bin/show?id=JZiMd2Xrqr8&bids=26350.10000263&type=4&subid=0"> <% end select %>
- Alan www.iamviet.com www.calvsa.net Snitz Resource |
|
|
SalmanKhana
Average Member
USA
961 Posts |
Posted - 02 August 2001 : 02:29:00
|
great, i'll try it out. thanx for the reply alan
|
|
|
|
Topic |
|