This should probably be moved to the JavaScript forum, but I can't do that. (administrator??)
Anyway, the css is essentially the same as before, but I added some javascript to the index.html file:
[CODE]<script language="JavaScript">
i=0;
function upi() { i+=10; return i; }
function raiselit() { upi(); lit.style.zIndex+=i; }
function raisesci() { upi(); sci.style.zIndex+=i; }
function raisemy() { upi(); my.style.zIndex+=i; }
function raisetst() { upi(); tst.style.zIndex+=i; }
</script>
CODE]
and each div calls its function by (for example):
Code:
<div class="science" id="sci" onmouseOver="raisesci()">
<p>Science writing:</p>
But, either i is not global (as all the documentation I found says it ought to be) or it's not incrementing properly (or there's some duh! flaw in my logic...), since sometimes several swipes with the mouse are needed to bring a div to the top.
Anybody can help?
thanks!
Marj
PS - I got it! 
A script that works in IE and Mozilla is:
Code:
<script language="JavaScript">
i=0;
function raisediv(e) { i+=1; updiv=e; updiv.style.zIndex=i; }
</script>
accompanied by this in the div tag:
Code:
onmouseOver="raisediv(this);"
Bookmarks