B
bspittles
Can anyone tell me why the following script doesn't work in Firefox 1.5
(not sure about other versions) when it works fine in IE6 and Netscapes
7.1? Almost as importantly can ayone tell me how to fix it?
<script language=javascript>
function showphoto(pic, player, w, h, winname) {
photowin = window.open("",winname, "menubar=no,width=" + w +
",height=" + h + ",resize=no");
photowin.document.write("<HTML><HEAD><TITLE>" + player +
"</TITLE><LINK REL=STYLESHEET TYPE='text/css'
HREF='../styles/results.css' TITLE='Style'></HEAD><BODY><img
src='../gifs/players/" + pic + "' border=0 width=100%></BODY></HTML>");
}
The function is called in the page:
<a href="javascriptnClick=showphoto('109.jpg', 'My name', '262',
'373', '109win');"><img src="../gifs/camera2.gif" align=left
border=0></a>
The webpage can be viewed at
http://www.leektown.co.uk/info/penpictures.php
Many thanks,
Brian Spittles
(not sure about other versions) when it works fine in IE6 and Netscapes
7.1? Almost as importantly can ayone tell me how to fix it?
<script language=javascript>
function showphoto(pic, player, w, h, winname) {
photowin = window.open("",winname, "menubar=no,width=" + w +
",height=" + h + ",resize=no");
photowin.document.write("<HTML><HEAD><TITLE>" + player +
"</TITLE><LINK REL=STYLESHEET TYPE='text/css'
HREF='../styles/results.css' TITLE='Style'></HEAD><BODY><img
src='../gifs/players/" + pic + "' border=0 width=100%></BODY></HTML>");
}
The function is called in the page:
<a href="javascriptnClick=showphoto('109.jpg', 'My name', '262',
'373', '109win');"><img src="../gifs/camera2.gif" align=left
border=0></a>
The webpage can be viewed at
http://www.leektown.co.uk/info/penpictures.php
Many thanks,
Brian Spittles