View Single Post
Old 06-22-2002, 09:31 AM   PM User | #3
ginataylor50
New to the CF scene

 
Join Date: Jun 2002
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
ginataylor50 is an unknown quantity at this point
Hi A*C

Thanks for the script, however I still can't get it to work. I get an error line 1 character 1 object expected.

<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+="widt h=720,height=576"

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>

<tr><td><p><a href="javascripticture('pic1.bmp')"><img src="tn_pic1.jpg" width="80" height="64"></a></p></td></tr>

I am linking from a thumbnail image, will this effect the code?
Although I did try with you click here link as well and I received the same error.

Hope you can see what I am doing wrong.

The javascript is all one word in all cases but for some reason in here it seperates it out.

Thanks
ginataylor50 is offline   Reply With Quote