I’m starting to annoy myself by asking, but IE has decided to stop doing the JQuery thing, while I changed nothing of significance to it. I also did undo several hundred times with no results.
Relevant code:
html {
height: 100%;
}
body {
margin: 0;
width: 100%; height: 100%;
}
#bg {
position: relative;
margin: 0 auto;
width: 1200px; min-height: 100%;
}
#navwrapper {
position: fixed; bottom: -147px; left: 0;
width: 100%; height: 164px;
overflow: hidden;
}
#nav {
position: relative;
margin: auto;
width: 1200px;
}
#navtext {
position: absolute; top: 0px; left: 126px;
width: 170px; height: 164px;
}
#word {
position: absolute; top: 17px; left: 37px;
width: 60px; height: 55px;
}
#word a {
position: absolute; left: 0;
width: 100%; height: 100%;
}
(there are three more divs like word, only with different values for top, left, width and height)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"https://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<link href="opmaak.css" rel="stylesheet" type="text/css">
<script src="jquery-1.4.4.js"></script>
</head>
<body>
<div id="bg">
<div id="navwrapper"><div id="nav">
<div id="navtext">Menu
<div id="word"><a href="word.html"></a></div>
<div id="sound"><a href="#"></a></div>
<div id="image"><a href="#"></a></div>
<div id="fun"><a href="#"></a></div>
</div>
</div></div>
</div>
<script>
$(window).scroll(function () { $("#navwrapper").scrollLeft(window.pageXOffset); });
$("#navtext").hover(
function () { $("#navwrapper").css({bottom: 0}); $(this).css({color: 'grey', 'border-color': 'grey'}) },
function () { $("#navwrapper").css({bottom: -147}); $(this).css({color: 'black', 'border-color': 'black'}) }
);
</script>
</body>
</html>
Removing navtext and .hover() has no effect.
I’m at a complete loss as to how to proceed. I googled a bit, found nothing relevant, but that may be because I suck.
Any help is appreciated, if not, I understand :3
also, changing all the divs (excluding div a) contained in navwrapper to position: relative doesn’t help
edit: just in case anyone is reading this, the problem seems to be window.pageXoffset, even though it worked before