Click to See Complete Forum and Search --> : Problem with thumbnail image script...


biff
11-27-2003, 09:23 AM
hi, nice forum! :D i hope i post this correctly. i'm somewhat new to java, but i love it & i like learning new things.


ok, i'm working on a thumbnail image page. i have a script i really love, cuz the thumbnails pop open into their own window for viewing. here's the problem....

when i got the script, it had 2 example thumbnails. i have 30+ images i'd like to add to my page, but i can only get it to show 2 thumbnails per row. i'd like to have 5 per row, cuz 2 by 2 makes the page really long. i've tried & tried, but i can't get more than 2 per row.

here's my page so you can see what i mean....

http://www.gexus.com/tmbbiff/trailer.html

& here's some of the script......


<script language="JavaScript1.2">

<!--

function openWin( winHeight, winWidth, picSrc ){

newWin = window.open('', '', 'height='+ winHeight + ',width='+ winWidth + 'toolbars=no, scrollbars=yes' );

newWin.document.write("<head><title>"+ picSrc +"</title></head>");

newWin.document.write("<p align=center>");

newWin.document.write("<img src=" + picSrc + ">"); newWin.document.write("<br><br><form><input type='button' value='Close' onclick='JavaScript:window.close()'>");

newWin.document.write("</form></p>");

}

-->

</script>



<p align=center><img src="http://www.gexus.com/tmbbiff/trailer/1trailer1.jpg" width="132" height="72" onclick="openWin(400,600,'http://www.gexus.com/tmbbiff/trailer/trailer1.jpg')"> <img src="http://www.gexus.com/tmbbiff/trailer/1trailer2.jpg" width="132" height="73" onclick="openWin(400,600,'http://www.gexus.com/tmbbiff/trailer/trailer2.jpg')"></p>

<p align=center><img src="http://www.gexus.com/tmbbiff/trailer/1trailer3.jpg" width="132" height="72" onclick="openWin(400,600,'http://www.gexus.com/tmbbiff/trailer/trailer3.jpg')"> <img src="http://www.gexus.com/tmbbiff/trailer/1trailer4.jpg" width="132" height="73" onclick="openWin(400,600,'http://www.gexus.com/tmbbiff/trailer/trailer4.jpg')"> </p>


i hope i did that right. :) any help would be greatly appreciated! thanks in advance...

luv, biff

ps.... feel free to edit me if i did something wrong. :D

cacalex
11-27-2003, 09:59 AM
I believe this is what you want, but you could use tables to size it right !!!


<p align=center>
<img src="http://www.gexus.com/tmbbiff/trailer/1trailer1.jpg" width="132" height="72" onclick="openWin(400,600,'http://www.gexus.com/tmbbiff/trailer/trailer1.jpg')">
<img src="http://www.gexus.com/tmbbiff/trailer/1trailer2.jpg" width="132" height="73" onclick="openWin(400,600,'http://www.gexus.com/tmbbiff/trailer/trailer2.jpg')">
<img src="http://www.gexus.com/tmbbiff/trailer/1trailer3.jpg" width="132" height="72" onclick="openWin(400,600,'http://www.gexus.com/tmbbiff/trailer/trailer3.jpg')">
<img src="http://www.gexus.com/tmbbiff/trailer/1trailer4.jpg" width="132" height="73" onclick="openWin(400,600,'http://www.gexus.com/tmbbiff/trailer/trailer4.jpg')">
<img src="http://www.gexus.com/tmbbiff/trailer/1trailer5.jpg" width="132" height="73" onclick="openWin(400,600,'http://www.gexus.com/tmbbiff/trailer/trailer5.jpg')">
</p>

biff
11-27-2003, 11:17 AM
thanks cacalex, i'll give it a try as soon as i can. :D

(since it's Thanksgiving, it might be a day or 2)

i'll let you know how it turns out. :)

Happy Thanksgivng! :D

biff
11-27-2003, 11:26 AM
i couldn't wait, so i went & tried it & it looks great! :D (check the link if you want)

for the next row, i need to do a <BR> & then 5 more, right? (hehe)

this forum ROCKS!!! :D

cacalex
11-27-2003, 12:37 PM
There you go...

It looks great !

biff
11-27-2003, 01:43 PM
thanks. :D