Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 29th, 2003, 08:46 AM
Registered User
 
Join Date: Nov 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Adding banner to this code

Hi there.

I have this code that show my records in two cols per row.

Is there anyone that can help so this code can show banners between row 1 and 2, and row 2 and 3? Is this possible in a easy way?
I also want to able to add URL to the banners, and maybe also in a easy way change where the banners appears.
Any tips and/or code examples?

<table border="0" cellpadding="5" cellspacing="0" width="640">
<%
i=0
Do While Not RecordSet.EOF
if i mod 2=0 then
Response.Write "<tr>"
end if
Response.Write "<td align='left' valign='top' width='50%'>"&_
"" & RecordSet("Information") & "<br>"
%>
<%
RecordSet.MoveNext
i=i+1
Loop

RecordSet.Close
Connection.Close
set RecordSet = nothing
set Connection = nothing
%>
</td>
</tr>
</table>


Regards
Einar Hansen, Norway





Similar Threads
Thread Thread Starter Forum Replies Last Post
Banner display in asp SKhna Classic ASP Basics 1 May 5th, 2008 06:38 PM
How to display a banner in div control peace2007 Javascript 3 October 5th, 2007 12:38 AM
intresting banner? sirup_segar Dreamweaver (all versions) 1 May 30th, 2007 04:25 AM
Repeating Banner in web page ychange Dreamweaver (all versions) 2 March 11th, 2007 01:32 PM
Pausing a rotating image banner 132591 Javascript How-To 1 December 18th, 2006 01:54 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.