It works great !! but after I included the savescroll.js file on my asp.net page, menu on the page is not working please advise.
JS Code for to build the menu on the page
*************************************************************************************************************
function StartUp()
{
StartList();
ContentSize();
}
//From http://www.alistapart.com [Suckerfish menu]
StartList = function() {if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {node.onmouseover=function() {this.className+=" over";
}
node.onmouseout=
function() {this.className=this.className.replace(" over", "");
}
}
}
}
}
//From: http://www.howtocreate.co.uk/tutorials/index.php?tut=0&part=16
function ContentSize()
{
var myWidth = 0, myHeight = 0;if( typeof( window.innerWidth ) == 'number' )
{
//Non-IE
myWidth = window.innerWidth;
myHeight = window.innerHeight;
} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
//IE 6+ in 'standards compliant mode'
myWidth = document.documentElement.clientWidth;
myHeight = document.documentElement.clientHeight;
} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
//IE 4 compatible
myWidth = document.body.clientWidth;
myHeight = document.body.clientHeight;
} else {
//Everything else
myWidth = document.body.clientWidth;
myHeight = document.body.clientHeight;
}
var mySizeH = 0;
var mySizeW = 0;var minSizeH = 99;
var minSizeW = 10;if ( (myHeight - minSizeH) <= 0 )
{
mySizeH = 1;
document.getElementById('content').style.display = 'none';
} else {
mySizeH = ( myHeight - minSizeH );
document.getElementById('content').style.display = 'block';
}
if ( (myWidth - minSizeW) <= 0 )
{
mySizeW = 1;
document.getElementById('content').style.display = 'none';
} else {
mySizeW = ( myWidth - minSizeW );
document.getElementById('content').style.display = 'block';
}
document.getElementById('content').style.height = mySizeH;
//document.getElementById('content').style.width = mySizeW;
}
window.onresize = ContentSize;
window.onload=StartUp;
*************************************************************************************************************
Thank you,
K