badmojo123
01-05-2003, 11:56 PM
Cut & Paste Pop-up image viewer II
I want to enable a scrollbar so when the link is clicked the new window uses a scrollbar. Here is the java lines of code taken from this site.
<script>
/*
Pop up image viewer script II
By JavaScript Kit (http://javascriptkit.com)
Over 400+ free scripts here!
*/
function popimage(imagesrc,winwidth,winheight){
var look='width='+winwidth+',height='+winheight+','
popwin=window.open("","",look)
popwin.document.open()
popwin.document.write('<title>Image Window</title><body><img src="'+imagesrc+'"></body>')
popwin.document.close()
}
</script>
and this is the way to use it.
<a href="test.htm" onClick="popimage('test.gif',120,31);return false">Test</a>
So where can I use some sort of scrollbar enable or on or whatever. I need the scrollbars to be vertical not horizontal. Thanks in advance and as a newbie here I hope this post is complete and fullfills the rules that are set out. Thanks in advance.
BadMojo
I want to enable a scrollbar so when the link is clicked the new window uses a scrollbar. Here is the java lines of code taken from this site.
<script>
/*
Pop up image viewer script II
By JavaScript Kit (http://javascriptkit.com)
Over 400+ free scripts here!
*/
function popimage(imagesrc,winwidth,winheight){
var look='width='+winwidth+',height='+winheight+','
popwin=window.open("","",look)
popwin.document.open()
popwin.document.write('<title>Image Window</title><body><img src="'+imagesrc+'"></body>')
popwin.document.close()
}
</script>
and this is the way to use it.
<a href="test.htm" onClick="popimage('test.gif',120,31);return false">Test</a>
So where can I use some sort of scrollbar enable or on or whatever. I need the scrollbars to be vertical not horizontal. Thanks in advance and as a newbie here I hope this post is complete and fullfills the rules that are set out. Thanks in advance.
BadMojo