popup if ie
Hvad er det der er galt..???Jeg har selv forsøgt lidt med java :S
<script language="JavaScript" type="text/JavaScript">
<!-- // Skjul for gamle browsere
function popUp1(strURL, intWidth, intHeight) {
var intLeft = (screen.availWidth - intWidth - 10);
var intTop = 0;
objWin = window.open(strURL, 'popup', 'left=' + intLeft + ',top=' + intTop + ',width=' + intWidth + ',height=' + intHeight + ',menubar=no,toolbar=no,location=no,status=no,scrollbars=no,resizable=no');
}
function popUp2(strURL, intWidth, intHeight) {
var intLeft = (screen.availWidth - intWidth - 10);
var intTop = 0;
objWin = window.open(strURL, 'popup', 'left=' + intLeft + ',top=' + intTop + ',width=' + intWidth + ',height=' + intHeight + ',menubar=no,toolbar=no,location=no,status=no,scrollbars=no,resizable=no');
}
if(navigator.appName == "Microsoft Internet Explorer")
{
document.write('<a href="java script:popup1('player.php', 200, 300);">Netradio</a>');
}
else
{
document.write('<a href="java script:popup2('player-safe.php', 200, 300);">Netradio</a>');
}
</script>
