Click to See Complete Forum and Search --> : lil' help?


Dark_Minds
12-09-2002, 08:40 PM
Hi, i must say i know nothing about programming besides 'bold on' 'bold off' but i am looking for a few things to jazz up the site that im working on. www.darcysmodelcars.com

im looking for the code for when you click on a thumbnail of an image for the larger image, it opens up a new window, that much i can do, but im looking for the window to be only the size of the image and for there to be no tool bars what so ever.

is there any one out there that can help a n00b like me?

Dark_Minds
12-10-2002, 01:50 AM
Can anybody at all help me PLEASE?!!!

Sceiron
12-10-2002, 02:24 AM
How about...


<script>
function openWindow_nb(url, w, h) {
win = window.open(url, 'win', 'width=' + w + ',height=' + h +',resizable=0,scrollbars=0');
win.focus();
}
</script>
<a href="javascript:openWindow_nb('somefile.htm', 100, 200);"


That would open somefile.htm in a window 200px high and 100px wide. I would suggest looking up the .open() method, as it supports many attributes to control the new window.