So I'm not sure if this is the right forum ~ I'll cross-post to HTML/CSS in a minute.
Here's the deal:
I have an image I've sliced into many rows and columns, let's say 20 rows and 26 columns.
Each sliced piece has a number assigned to it, 01.jpg through 520.jpg
I have a database that stores numbers, let's say some numbers are: 1,52,189,264,389,502
I would like to ONLY show the pieces that correspond to the numbers in the database, in their CORRECT position, not just show 6 pieces.
I can figure out WHERE to put each piece using an algorithm like this:
Let's use piece number 189 as an example:
Dim PieceNum, RowNum, ColNum
RowNum = Cint(PieceNum / 26) +1 ---- (189/26=7.26)--> Cint(7.26)=7 7+1=8 ' ROW 8!
ColNum = PieceNum - (Cint(PieceNum / 26) * 26) ---- 189 - (7 * 26 (182)) = 7 ' COLUMN 7!
So... with the above I can determine that piece 189.jpg should go in Column 7 of Row 8, but HOW would I do that using either an HTML table, or DIV?
Alternatively, is there a way to stitch these together on the fly before sending out a single image?
1 Replies - 2649 Views - Last Post: 28 November 2012 - 08:03 PM
Replies To: DIV / table to show only selected parts of the whole? or create image?
Page 1 of 1