Hi,
I am using some javascript to produce a new window for my
account info. It is designed to be opened looked at and then closed again.
But apparently the code is a bit old fashioned
(somebody made that remark but did not suggest how to
update it :( )
So this is my bit of code:
And the HTML that calls it:
Apparently,
<script language="javas cript" type="text/javascript">
and
document.layers
and
<!-- // comment // -->
are all long deprecated and obsolete.
It was also suggested that I place semi colns at the end of lines and
use more { and }
BuT I am not sure where to use them.
Any suggestions and help much appreciated.
Thanks
I am using some javascript to produce a new window for my
account info. It is designed to be opened looked at and then closed again.
But apparently the code is a bit old fashioned
(somebody made that remark but did not suggest how to
update it :( )
So this is my bit of code:
Code:
<script language="javascript" type="text/javascript">
<!--
var win=null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition=300;
TopPosition=150;
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=yes,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
win=window.open(mypage,myname,settings);
if(win.focus){win.focus();}}
function hidestatus(){
window.status=''
return true
}
if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
document.onmouseover=hidestatus
document.onmouseout=hidestatus
// -->
</script>
Code:
<!-- // SF-Code Affiliate Marketing ##ak18d54kt** // --> <a href="http://www.support-focus.com/check.php?key=SFM64912" onclick="NewWindow(this.href,'','860','700','yes','default'); return false" onfocus="this.blur()" > <img src="http://www.support-focus.com/image_load.php?id=SFM64912" alt="Support-Focus Membership Click to Verify - Before you Buy" border="0" ></a>
<script language="javas cript" type="text/javascript">
and
document.layers
and
<!-- // comment // -->
are all long deprecated and obsolete.
It was also suggested that I place semi colns at the end of lines and
use more { and }
BuT I am not sure where to use them.
Any suggestions and help much appreciated.
Thanks
Comment