•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 422,642 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,758 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 705 | Replies: 1
![]() |
Hi all!
I need to know how to repeat a javascript code snippet, until the table's row is full - so without stretching it. The row is inside the middle column of an 80% width table, made up of 3 columns, one for a left side graphic, the middle column for the content, and the right hand side one for the right side graphic.
All the javascript code is writes in a random 35/35 thumbnail image, and so i want this to repeat all the way to the end, so its good for all resolutions.
Thanks verrrry much guys and gals :]
Max
PS. Page: http://www.grafax.co.uk/testingserve...b/example.html
& its the images at the top that I want repeated right to the edge.
I need to know how to repeat a javascript code snippet, until the table's row is full - so without stretching it. The row is inside the middle column of an 80% width table, made up of 3 columns, one for a left side graphic, the middle column for the content, and the right hand side one for the right side graphic.
All the javascript code is writes in a random 35/35 thumbnail image, and so i want this to repeat all the way to the end, so its good for all resolutions.
Thanks verrrry much guys and gals :]
Max
PS. Page: http://www.grafax.co.uk/testingserve...b/example.html
& its the images at the top that I want repeated right to the edge.
Last edited by MaxMumford : Mar 11th, 2008 at 11:02 am. Reason: page example
Economizerz Hosting
Price Beater Promise
10% Cheaper Hosting, & Double Bandwidth and Web Space
Click here to apply
Price Beater Promise
10% Cheaper Hosting, & Double Bandwidth and Web Space
Click here to apply
Those images are predefined, and set to occupy a certain percentage of the width of the page. They contain links to other pages. It's a menu.
You need to do the following. The example is for 10 images:
blank.jog is an image the same size, with nothing but your background color in it. This holds the places until js loads the images.
Now use js to insert your random thumbnails.
You need to do the following. The example is for 10 images:
<html>
<head>
...
<style type="text/css">
.wfl {width: 100%}
.w10 {width: 10%; margin: 0; border: none; padding: 0; text-align: center;}
.pic {padding: 2px; clear: both;}
</style>
...
</head>
<body>
...
<table class="wfl">
<tr>
<td class="w10>
<img src=blank.jpg class="pic" id="pic1" />
</td>
<td class="w10>
<img src=blank.jpg class="pic" id="pic2" />
</td>
<td class="w10>
<img src=blank.jpg class="pic" id="pic3" />
</td>
<td class="w10>
<img src=blank.jpg class="pic" id="pic4" />
</td>
<td class="w10>
<img src=blank.jpg class="pic" id="pic5" />
</td>
<td class="w10>
<img src=blank.jpg class="pic" id="pic6" />
</td>
<td class="w10>
<img src=blank.jpg class="pic" id="pic7" />
</td>
<td class="w10>
<img src=blank.jpg class="pic" id="pic8" />
</td>
<td class="w10>
<img src=blank.jpg class="pic" id="pic9" />
</td>
<td class="w10>
<img src=blank.jpg class="pic" id="pic10" />
</td>
</tr>
</table>
...
</body>
</html>blank.jog is an image the same size, with nothing but your background color in it. This holds the places until js loads the images.
Now use js to insert your random thumbnails.
Last edited by MidiMagic : Mar 11th, 2008 at 1:59 pm.
Daylight-saving time uses more gasoline
![]() |
•
•
•
•
•
•
•
•
DaniWeb HTML and CSS Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
access activation api blogger blogging blogs call c# through javascript code combo cross-browser javascript menu with few lines of code dani daniweb data debugging development dreamweaver dropdownlist equivalent code of messagebox in asp.net firefox gdata google gpl html innovation javascript javascript delete all rows from table in javascript show overflow of text by "..." javascript smooth scrolling scroll smoothly window document position javascript tab menu with rounded corners generator key linux microsoft module net news openbsd prevent javascript menu from getting hidden under flash movies preventing the delay when src attribute of the images set via javascript product programming reuse rss serial source tags vista web wysiwyg xml
- Cannot get MySQL to talk to .php file (MySQL)
- browser incompatibility? page wont finish loading (JavaScript / DHTML / AJAX)
Other Threads in the HTML and CSS Forum
- Previous Thread: Cross-browser relatively absolute positioning
- Next Thread: It DID work!! Now It don't!! HELP!!



Linear Mode