Click to See Complete Forum and Search --> : New Webpage


dabearunleashed
05-20-2007, 08:00 PM
Hi. i have been developing a site for myself (online portfolio) and i would like some web pages to open in a separate window, specifically sized for each image or video. similar to these sites...

(in "art" section) http://www.kharupt.com/index2.htm

(auto popup) http://www.trydrugs.net/

i notice there are no toolbars or navigation bars when these pages are opened up.

i would really like to know how to do this. so if anybody could tell me, it would be much appreciated.

thanx


-Bear

sticks464
05-21-2007, 01:00 AM
Use the following Javascript in the <head> section
<script type="JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>

If you are going to use a table to display your thumbnail images then enter the following for each <td>
<td width="50"><a href="javascript:;" onClick="MM_openBrWindow('path to large image','','width=532,height=800')"><img src="path to thumbnail image" width="50" height="50" border="0"></a></td> The first width=532,height=800 is the size of the window that will open and display the large image. This is usually the actual size of the image.
width="50" height="50" is the size of the thumbnail, make sure it is the same size as the <td width="50"> or it will break the table and page.