PDA

View Full Version : ickle bit of js help :)


DTD sIckNesS
19-01-2001, 21:27
i got this:

<script language="JavaScript1.2">
<!--
window.moveTo(0,0);
if (document.all) {
window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers) {
if (window.outerHeight<screen.availHeight||window.outerWidth<screen.availWidth){
window.outerHeight = screen.availHeight;
window.outerWidth = screen.availWidth;
}
}
//-->
</script>
problem is, it only resizes the window, and doesn't maximize it in the proper sense of the word, can anyone help me?

mr_grumpy_man
20-01-2001, 00:39
Hmmmm... I see what you mean. I've had a browse through my documentation on the Window object and I can't see any function that'll maximise the window for you, though I'd have thought there would be one...

Knowing this lot I'd say there'll be someone pop in with a CSS based solution :E

p.s. do you play CS a bit? I play fairly regularly as 'daffodil' and seem to remember your name from somewhere...

DTD sIckNesS
20-01-2001, 01:13
i tried cs a bit, but with my ping, fs, nae chance, although one match everyone had like 1500 odd ping, and in that match i ruled :D, i reckon if i become lpb, i will rule, at CS and my favoured RS ;)

[Edited by DTD sIckNesS on 20-01-2001 at 12:14 AM]