View Full Version : New Window For Image
The Main Event
09-17-2004, 07:11 PM
---Hello
---Is There A Way To Make A Image Pop Up In A New Window That Is The Size Of The
---Image When You Click On The Image Link And If That Is Possible Is There A Way
---To Customize The Scroll Bar
---Thanx
---The Main Event
tmmoose
09-17-2004, 11:31 PM
click for demo (http://tmmoose.netfirms.com/popwindow.html)
this goes in the head...
<script language="javascript" type="text/javascript">
<!--
function DisplayImage(picURL,picWidth,picHeight){
newWindow=window.open(picURL,'newWin','toolbar=no,width='+picWidth+',height='+picHeight)
newWindow.document.write('<html><head><\/head><body background="'+picURL+'"><\/body><\/html>')
newWindow.resizeBy(picWidth-newWindow.document.body.clientWidth,picHeight-newWindow.document.body.clientHeight)
newWindow.focus()
}
//-->
</script>
This goes in the body
<a href="javascript:DisplayImage('ET5029.jpg','340','425')">
your link text</a>
If the image opens in a new window the same size as the image...there will be no scrollbar ???
The Main Event
09-18-2004, 06:16 AM
---Thanx For The Code And Is There A Way
---To Change The Title Of The Pop Up Window
---Thanx
---The Main Event
veedee
09-19-2004, 10:37 PM
If you looking for popup window script or even pop under
http://www.nowsell.com/pop-ups/pop-up-scripts.html
provide everything you want
_______________________
free ebook programming (http://www.free-itebooks.com/) | free ebook web design (http://www.free-itebooks.com/)
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.