Print Page | Close Window

Inserting a banner script.

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=21486
Printed Date: 29 March 2026 at 10:03am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Inserting a banner script.
Posted By: jackals
Subject: Inserting a banner script.
Date Posted: 04 October 2006 at 11:19pm
Hiya guys
 
I'm putting a banner scrip into my forum so it sits under the all the buttons and the header in the center of the page. Know these are the insructions i've been given.
 
Displaying Banners on your webpages
===================================================================
1. Display banners in your .asp-pages by include the JBS.asp file. To do this just copy and paste the following line in the top of your .asp page.
 
                     "<!--#include virtual="/JBS/include/JBS.asp"-->"
 
2. Paste the Zone code, for example "<% Call JBS(6) %>" (assigned to each created zone) where you want the banner to be displayed.
3. On bottom of your .asp page paste the following line:
                    "<!--#include virtual="/JBS/include/close_JBS.asp"-->"
(See the code in the enclosed "sample.asp" file for an example of how it’s done)
====================================================================
 
this is the example script
 
====================================================================
 
<!--#include virtual="/JBS/include/JBS.asp"-->
<html>
<head>
<title>Sample</title>
</head>
<body>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1" height="416">
  <tr>
    <td width="100%" height="95">&nbsp; Display a zone:<br> <% Call JBS(17) %><br><br></td>
  </tr>
  <tr>
    <td width="100%" height="70">&nbsp; Display another zone:<br> <% Call JBS(18) %><br><br>&nbsp;</td>
  </tr>
  <tr>
    <td width="100%" height="104">&nbsp; Display another zone:<br> <% Call JBS(19) %><br><br>&nbsp;</td>
  </tr>
  <tr>
    <td width="100%" height="144">&nbsp; Display another zone:<br> <% Call JBS(20) %><br><br>&nbsp;</td>
  </tr>
</table>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2" height="56">
  <tr>
    <td width="100%" height="56"><b>Link to admin login:</b> http://www.yourdoman.com/JBS/files/login.asp%3cp - http://www.yourdoman.com/JBS/files/login.asp<p >
    <b>Link to advertiser login:</b> http://www.yourdoman.com/JBS/advertiser/login.asp%3c/td - http://www.yourdoman.com/JBS/advertiser/login.asp</td >
  </tr>
</table>
</body>
 
Its a banner managment software.... But i've tryed many ways of putting the script in the forum...  I only want one 468x60 pixal banner at the top of the page...lol...
 
My msn is mailto:jackhull@hotmail.com - jackhull@hotmail.com
 
Thankyou for your help
 
Jack

 
 



Replies:
Posted By: dpyers
Date Posted: 05 October 2006 at 1:35am
Try putting the includes in header.asp and footer.asp. If that doesn't work, put them at the top and bottom of default.asp

navigation_buttons_inc.asp will be where you put Call JBS(X)
This file contains asp code blocks and html code blocks intermingled. Use <%Call JBS(X)%> in an html code block and just Call JBS(X) in an asp code block.

header.asp, footer.asp, and navigation_buttons_inc.asp are in the includes directory. default.asp is in the main forum directory.



-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: jackals
Date Posted: 05 October 2006 at 2:35pm

as soon as i put the include into the header.asp the forum goes off.... I carry on and do the same to the footer.asp nothing changes is still off

the Navigation_button_inc.asp do you mean put
<html><div align"middle"><%call JBS(X) %></div></html>
How do i put a .asp code in block....
 
I'm still really only learning bout this....
 
Thankyou very much for your help.
 
Jack
 
 
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net