ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 16th, 2003, 10:49 PM
bulletz bulletz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 168 bulletz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 Days 12 h 19 m 45 sec
Reputation Power: 6
horizontal image display

hello:
i have an image database, i want my images to be displayed like google when you try to search an image - displays horizontally.

how would i check if the first row already has, say 5 images, and then add another row for the next set of images and so on?

can someone show me a tutorial, an article for this one?

mine doesnt require to search for any images, just concerned with the display.

thanks again
__________________
*** today i ask, tomorrow i help

- sandbag

Reply With Quote
  #2  
Old December 17th, 2003, 12:37 AM
pda8333 pda8333 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 216 pda8333 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 6 m 31 sec
Reputation Power: 6
hi bulletz,
i have that code somewhere in my pc. let me find first & i'll get back to you.
__________________
Hope this helps.

Mike
Royal Selangor Pewter

"I have not failed. I've just found 10,000 ways that won't work."
- Thomas Alva Edison (1847-1931)

Reply With Quote
  #3  
Old December 17th, 2003, 12:41 AM
bulletz bulletz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 168 bulletz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 Days 12 h 19 m 45 sec
Reputation Power: 6
ok cool, i'll also try to learn the codes.

thanks,

Reply With Quote
  #4  
Old December 17th, 2003, 12:46 AM
pda8333 pda8333 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 216 pda8333 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 6 m 31 sec
Reputation Power: 6
I've cut out part of my existing code for you.
Code:
	  <table border="0" cellpadding="2" cellspacing="2" width="100%">
	  	<tr>
		  <td>All My Images</td>
		</tr>
		<tr valign="top">
		 <%
		 ' i is for image to go down to next row
		 Dim i
		 i=0
		 while not rs.eof
		 %>
		  <td width="33%" valign="top" style="border:1px solid #ff9900" height="100%">
		    <!--Start: ind. image table-->
			<table border="0" cellpadding="1" cellspacing="2" height="100%" width="100%">
			  <tr>
			    <td><img src="xxx.xxx" border="0" alt="xxx"></td>
			  </tr>
			</table>
			<!--End: ind. image table-->
		  </td>
		   <%
		   '''' Start: Go Next Row
		   i=i+1
		   ' below means after 3rd image, the 4th image will go to next/new row
		   if i mod 3=0 then
		     response.write"<tr>"
		   end if
		   '' End : Go Next Row
		 rs.movenext
		 wend
		 %>
	    </tr>
	  </table>

Reply With Quote
  #5  
Old December 17th, 2003, 01:17 AM
bulletz bulletz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 168 bulletz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 Days 12 h 19 m 45 sec
Reputation Power: 6
thanks for the help again.

Reply With Quote
  #6  
Old December 17th, 2003, 01:19 AM
pda8333 pda8333 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 216 pda8333 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 6 m 31 sec
Reputation Power: 6
is this what you are looking for? your welcome.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > horizontal image display


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT