View Single Post
Old 06-22-2002, 03:20 AM   PM User | #2
ACJavascript
Regular Coder

 
Join Date: Jun 2002
Location: FL, USA
Posts: 734
Thanks: 0
Thanked 0 Times in 0 Posts
ACJavascript is on a distinguished road
Hi gin,

Well I see a couple of things that might make it work


1) <a href="java script:
It should be
<a href="javascript:
One word

2) The fundtion your useing doesn't look right to me so heres another function that you can use.


------------



<script language="javascript">

function picture(pic){
var no="addrbar=0,toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,resizeable=0,"
no+="width=550,height=425"

var mywin=window.open("","def",no)

mywin.document.write("<center><img src='"+pic+"'>")
mywin.document.write("<BR><BR><BR>")
mywin.document.write("<input type='button' value=' Close Window ' onclick='javascript:window.close()'>")

}
</script>

</head>
<body>

<a href="javascript:icture('ImageSRC')"> Click here</a>




Hope this helped

HappyScripting
__________________
CYWebmaster.com - See why we dot com!!
ACJavascripts.com - Cut & Paste Javascripts!
SimplyProgram.com - Personal Blog
ACJavascript is offline   Reply With Quote