Lille javascript jeg lige har kodet, ved ikke om det kan bruges, ellers tager i den bare ;)
<span id="staticcombo" style="position:absolute;left:0;top:0;visibility:hidden">
<form name="jumpy">
<script language="javascript">
<!--
/*
Phantom aka Jacob Schween -
http://www.moeg-ungen.dk[...]
*/
//Jump to top # hol.dk - code start
function gone(){
if (linktarget=="")
location=document.jumpy.example.options[document.jumpy.example.selectedIndex].value
else if (linktarget=="_new")
window.open(document.jumpy.example.options[document.jumpy.example.selectedIndex].value)
else{
targetobj=eval("window.parent."+linktarget)
targetobj.location=document.jumpy.example.options[document.jumpy.example.selectedIndex].value
}
}
//-->
</script>
<input type="button" name="test" value="Til toppen!"
onClick="javascript:scroll(0,0)">
</p>
</form>
</span>
<script language="JavaScript1.2">
function initialize(){
comboobj=document.all? document.all.staticcombo : document.getElementById? document.getElementById("staticcombo") : document.layers? document.staticcombo : 0
windowwidth=window.innerWidth? window.innerWidth-30 : document.body.clientWidth-20
windowheight=window.innerHeight? window.innerHeight : document.body.clientHeight
if (!comboobj)
return
if (document.all || document.getElementById){
combowidth=comboobj.offsetWidth
comboheight=comboobj.offsetHeight
setInterval("staticit_dom()",50)
comboobj.style.visibility="visible"
}
else if (document.layers){
combowidth=comboobj.document.width
comboheight=comboobj.document.height
setInterval("staticit_ns()",50)
comboobj.visibility="show"
}
}
function staticit_dom(){
var pageoffsetx=document.all? document.body.scrollLeft : window.pageXOffset
var pageoffsety=document.all? document.body.scrollTop : window.pageYOffset
comboobj.style.left=pageoffsetx+windowwidth-combowidth
comboobj.style.top=pageoffsety+windowheight-comboheight
}
function staticit_ns(){
comboobj.left=pageXOffset+windowwidth-combowidth
comboobj.top=pageYOffset+windowheight-comboheight
}
window.onload=initialize //Jump to top # hol.dk - code end
</script>
//Phantom
--
Den 11 årige Monsterbruger slår til igen!