| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
||||
|
||||
|
JavaScript Image Popup's Done Right
<html>
<head> <title>JavaScript Image Popup's Done Right</title> <script language=javascript> <!-- //------- popImg() --------------------------------------- //-- Input : (iName) - the name of the large image to be shown in the popup //-- Options : (pInfo) - These are for the base window settings when opened //-------------------------------------------------------------- function popImg(iName) { var pURL='pop.aspx?pi='+iName; pInfo='toolbar=0,'; pInfo+='location=0,'; pInfo+='directories=0,'; pInfo+='status=0,'; pInfo+='menubar=0,'; pInfo+='scrollbars=0,'; pInfo+='resizable=1,'; pInfo+='width=200,'; pInfo+='height=200'; window.open(pURL, 'bigPop', pInfo); } //--> </script> </head> <body> Click the thumbnail for a larger image.<br /> <a href="javascript opImg('bigimg.gif');"><img src="smallimg.gif" border="0"></a> </body> </html> Read Complete Article |
![]() |
| Viewing: ASP Free Forums > Programming > Code Bank > JavaScript Image Popup's Done Right |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|