Hallo Leute,
ich raffs grad ned, wie ich ein div positionieren kann! Ich hab folgende funktion in JS:
Die wird wie folgt aufegrufen:
und ich hab noch eine Funktion zum einblenden:
Die wie folgt aufgerufen wird:
Jetzt ist folgendes Problem, dass sobald man nach unten scrollt die Positionierung nicht mehr stimmt!???
Was mach ich denn da falsch?
MFG
MIKE
ich raffs grad ned, wie ich ein div positionieren kann! Ich hab folgende funktion in JS:
PHP Code:
function showWMTT(id) {
wmtt = document.getElementById(id);
wmtt.style.display = "inline";
}
PHP Code:
<span onMouseOver=\"showWMTT('$comment_div')\" onMouseOut=\"hideWMTT()\">
PHP Code:
function ShowWindow(item){
document.getElementById(item).style.display = 'inline';
document.getElementById(item).style.left = posx;
document.getElementById(item).style.top = posy;
}
PHP Code:
<span onClick=\"ShowWindow('DivBox".$todolist_id."')\">...</span>
Was mach ich denn da falsch?
MFG
MIKE
Comment