|
-
Feb 3rd, 2010, 08:10 PM
#1
Thread Starter
Fanatic Member
Limit the td in table for dynamic table
Hello,
I am storing avatar images in a table dynamically.
I want to store only 2 avatars in a row, but there may exists any no of avatars. Also in the view i want only to show 3 rows. The remaining must be hidden. When i click some button i want the other 3 rows to be showed and so on.
Is that really possible? Thankyou
-
Feb 7th, 2010, 07:59 PM
#2
Thread Starter
Fanatic Member
Re: Limit the td in table for dynamic table
hi, this works for me. But ineed some changes here. I set the overflow to be hidden. Then i place 2 buttons, when i press the rightbutton the 3&4 div must be show and when leftbutton 1&2 button to be shown. Is that possible?
Code:
<html>
<body>
<head>
<style type="text/css">
#div1
{
float: left;
overflow: auto;
width: 7.5em;
height: 7em;
background-color: red;
vertical-align: top;
}
#subdiv1,#subdiv2,#subdiv3,#subdiv4
{
float:left;
background-color: green;
width: 50px;
height: 75px;
}
</style>
</head>
<body>
<table border="1" cellpadding="0" cellspacing="0">
<tr>
<td id="div1">
<table border="1" cellpadding="0" cellspacing="5">
<tr>
<td><div id="subdiv1">1</div></td>
<td><div id="subdiv2">2</div></td>
<td><div id="subdiv3">3</div></td>
<td><div id="subdiv4">4</div></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
-
Feb 8th, 2010, 05:05 AM
#3
Re: Limit the td in table for dynamic table
Yes, it is possible I remember seeing an example about how to hide and show divs. Do a search in google for "Hide/Show divs" or something similar. I have forgotten where I saw the example I came across.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
-
Feb 8th, 2010, 12:30 PM
#4
Thread Starter
Fanatic Member
Re: Limit the td in table for dynamic table
 Originally Posted by Nightwalker83
Yes, it is possible I remember seeing an example about how to hide and show divs. Do a search in google for "Hide/Show divs" or something similar. I have forgotten where I saw the example I came across.
I think what you are saying is possible for limited number of div's. But i will be having unlimited number of avatars and so there are many div's. Is that possible here now?
-
Feb 8th, 2010, 07:22 PM
#5
Re: Limit the td in table for dynamic table
Sounds like you want a slideshow/photo gallery.
JQuery has some nice ones: http://blueprintds.com/2009/01/20/to...llery-plugins/
-
Feb 8th, 2010, 07:52 PM
#6
Thread Starter
Fanatic Member
Re: Limit the td in table for dynamic table
[QUOTE=kfcSmitty;3724591]Sounds like you want a slideshow/photo gallery.
Ya i need not exactly want a slideshow, but am going to dealing with photos. I want to show the friends avatar of the corresponding user. It may end up for the users with his/her friends.
-
Feb 8th, 2010, 08:20 PM
#7
Re: Limit the td in table for dynamic table
 Originally Posted by bharanidharanit
I think what you are saying is possible for limited number of div's. But i will be having unlimited number of avatars and so there are many div's. Is that possible here now?
Not sure! You could try kfcSmitty's suggestion first and see if that works if not search hide/show multiple divs.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|