background resize with java

this is the code i'm using

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin

function Is() {

var agent = navigator.userAgent.toLowerCase();

this.major = parseInt(navigator.appVersion);

this.minor = parseFloat(navigator.appVersion);

this.ns = ((agent.indexOf('mozilla') != -1) &&

(agent.indexOf('spoofer') == -1) && (agent.indexOf('compatible') == -1) && (agent.indexOf('opera') == -1) && (agent.indexOf('webtv') == -1));

this.ns2 = (this.ns && (this.major == 2));

this.ns3 = (this.ns && (this.major == 3));

this.ns4 = (this.ns && (this.major == 4));

this.ns6 = (this.ns && (this.major >= 5));

this.ie = (agent.indexOf("msie") != -1);

this.ie3 = (this.ie && (this.major < 4));

this.ie4 = (this.ie && (this.major == 4) &&

(agent.indexOf("msie 5.0")== -1));

this.ie5 = (this.ie && (this.major == 4) &&

(agent.indexOf("msie 5.0") != -1));

this.ieX = (this.ie && !this.ie3 && !this.ie4);

}

var is = new Is();

function layerObject(id,left,top,visibility) {

if (is.ie5||is.ns6){

this.obj = document.getElementById(id).style;

this.obj.left = left;

this.obj.top = top;

this.obj.visibility = visibility;

return this.obj;

}

else if(is.ie4) {

this.obj = document.all[id].style;

this.obj.left = left;

this.obj.top = top;

this.obj.visibility = visibility;

return this.obj;

}

else if(is.ns4) {

this.obj = document.layers[id];

this.obj.left = left;

this.obj.top = top;

this.obj.visibility = visibility;

return this.obj;

}

}

function layerSetup() {

backgroundLyr = new layerObject('backgroundLayer', 0,0,'visible');

}

function findSize() {

if(is.ns4 ||is.ns6) {

available_width=innerWidth;

available_height=innerHeight;

layerSetup();

} else if(is.ie4 || is.ie5) {

available_width=document.body.clientWidth;

available_height=document.body.clientHeight;

layerSetup();

}

}

function winResize() {

if(is.ns4 ||is.ns6||is.ie4||is.ie5) {

history.go(0);

}

}

// End -->

</script>

</HEAD>

<BODY onLoad="findSize();" onResize="winResize()">

<div id="backgroundLayer" style="position:absolute; width:200px; height:115px; left: 0px; top: 0; visibility: hidden; z-index:0; attachment:fixed">

<SCRIPT LANGUAGE="JavaScript">

if(is.ns4 || is.ns6) {

available_width = innerWidth;

available_height = innerHeight;

}

else if(is.ie4 || is.ie5) {

available_width=document.body.clientWidth;

available_height=document.body.clientHeight;

}

if(is.ie4 || is.ie5 || is.ns6 || is.ns4) {

image1_width = (available_width * 1.00);

image1_height = (available_height * 1.00);

var image1 = '<img src="parchment5.jpg" width="' + image1_width + '" height="' + image1_height + '">';

document.write(image1);

}

</script>

</div>

this code works great, however, i need it to not scroll...is there something i can add or change to this code. Thanks!!

[3431 byte] By [spoonie3372a] at [2007-11-27 5:31:31]
# 1
That's great. What's it got to do with Java? (Java != Javascript)
bsampieria at 2007-7-12 14:56:48 > top of Java-index,Java Essentials,New To Java...
# 2
> That's great. What's it got to do with Java? (Java != Javascript)Maybe if we consistently called it ECMAScript: http://www.ecma-international.org/publications/standards/Ecma-262.htm
Hippolytea at 2007-7-12 14:56:48 > top of Java-index,Java Essentials,New To Java...
# 3
Too hard to say. Ekk-ma doesn't sound as nice. No, I think we'll have to stick with the confusion.
bsampieria at 2007-7-12 14:56:48 > top of Java-index,Java Essentials,New To Java...
# 4
I actually like the unpleasant sound it makes. Pronounce it like you are a Prussian officer: "echhhmah script"! Then click your boot heels.
Hippolytea at 2007-7-12 14:56:48 > top of Java-index,Java Essentials,New To Java...