07-04-2002, 06:15 AM
ok so here's what i want to do. hope you can help... i don't know much about jscript so this may be easy or impossible. either way, if you don't want to post the basic stuff, i can figure that out myself. but if you see something that sounds difficult please tell me how. :)
i have thumbnails on my site. when someone clicks them, i want a window to pop up. i want the window to basically have no scrollbars, no toolbar, etc. i just want the actually pictures, which will vary in size, to show up in the windows. but i want there to be like half a centimeter of white space around the picture on all sides. to clearly define it and everything. and then an 'X' in the top right to close it.... don't know if that will work or if it is too much to ask but hope you understand. thanks for any help...
07-04-2002, 09:34 AM
I use the following that I got from another major forum poster (spookster maybe?) over at the old WA forum. You can play around with it to get the desired padding around your images. I've never messed with the padding personally.
Above your </head>, put:
preview = window.open("", "","resizable=yes,toolbar=no,scrollbars=no,menubar=no,status=no,directories=no,width="+imgWidth+",height="+imgHeight+",left="+winPosX+",top="+winPosY+"");
// End -->
Some configuration notes (color coded here):
<!--// Parameter list as follows:
Title of Image
Width of Image
Height of Image
Extra padding space to allow for text
Window Position X coordinate
Window Position Y coordinate
Where you have a thumbnail, use the following (change accordingly):
07-04-2002, 05:50 PM
This can also be done with layers. Set your layers to hide as default and each individual one to appear upon mouse click. Make a simple graphic for the 'close window' function (or you can use text) and then set that graphic to hide the layer upon mouse click. It's pretty easy to do in Dreamweaver.
Hope this helps you - good luck!!
07-04-2002, 08:02 PM
wow thanks a lot for all the help... i'll give that a try
07-05-2002, 06:04 AM
07-05-2002, 08:51 AM
Nice catch though...on seeing the added space.
07-05-2002, 04:49 PM