Nieuw lid |
|
Hey,
Voor mijn gamesite ben ik bezig een screenshot systeem te bouwen. Het systeem werkt wel maar de screens laden in de hoek en niet naast de muis. Hoe los ik dit op ?
<script language="javascript">
function popup(msg,bak,e){
document.getElementById("thumbblok").innerHTML=msg;
document.getElementById("thumbblok").style.display='block';
}
function stopthumb(){
document.getElementById("thumbblok").style.display='none';
}
function gaMee(e){
marge=20;
if(document.all){
pos_hor=event.clientX+marge;
pos_ver=event.clientY+marge;
} else {
pos_ver=e.clientY+marge;
pos_hor=e.clientX+marge;
}
pos_hor=pos_hor+document.body.scrollLeft;
pos_ver=pos_ver+document.body.scrollTop;
document.getElementById("thumbblok").style.left=pos_hor;
document.getElementById("thumbblok").style.top=pos_ver;
}
</script>
<body onmousemove="gaMee(event)">
<div id="thumbblok" style="display:none; position:absolute;"></div>
<a href="****/Ninja-Turtles.html" target="_blank" ONMOUSEOVER="popup('<TABLE class=popup WIDTH=100><tr><td class=icigames width=100><img width=100 height=70 src=****></td></tr></TABLE>','0',event)"; ONMOUSEOUT="stopthumb()">Ninja Turtles</a><br>
<script language="javascript"> function popup(msg,bak,e){ document.getElementById("thumbblok").innerHTML=msg; document.getElementById("thumbblok").style.display='block'; } function stopthumb(){ document.getElementById("thumbblok").style.display='none'; } function gaMee(e){ marge=20; if(document.all){ pos_hor=event.clientX+marge; pos_ver=event.clientY+marge; } else { pos_ver=e.clientY+marge; pos_hor=e.clientX+marge; } pos_hor=pos_hor+document.body.scrollLeft; pos_ver=pos_ver+document.body.scrollTop; document.getElementById("thumbblok").style.left=pos_hor; document.getElementById("thumbblok").style.top=pos_ver; } </script> <body onmousemove="gaMee(event)"> <div id="thumbblok" style="display:none; position:absolute;"></div> <a href="****/Ninja-Turtles.html" target="_blank" ONMOUSEOVER="popup('<TABLE class=popup WIDTH=100><tr><td class=icigames width=100><img width=100 height=70 src=****></td></tr></TABLE>','0',event)"; ONMOUSEOUT="stopthumb()">Ninja Turtles</a><br>
|