Witam
Mam skrypt który po kliknicu w link pokazuje okno z wybranymi przezemnie rzeczami które są potem niżej w div
Oto skrypt:
<?php
function showAtCursor(o, iShowingTime, behind) {
if (oShowedAtCursor) {
oShowedAtCursor.style.display = 'none';
}
iShowedAtCursorShowingTime = iShowingTime;
var o = document.getElementById(o);
oShowedAtCursor = o;
o.style.display = '';
o.style.top = tempY-10;
o.style.left = tempX-10;
if (behind) {
o.style.top = tempY+10 - o.offsetHeight;
}
o.style.position = 'absolute';
o.onclick = new Function("this.style.display = 'none';");
o.onmousemove = new Function("iShowedAtCursorLastActivity = (new Date()).getTime()");
document.body.appendChild(o);
}
?>
To skrypt js który pokazuje
Kod do wyświetlania linku:
<?php
<a href="java script:showAtCursor('options'.$aRow['id']. '',10);"><span class="pointer">++</span></a>
?>
A To w div co ma wyświetlać po kliknięciu w ten ++
<?php
<div class="sheet-pop" id="options'.$aRow['id'].'" style="display: block">
<div class="sheet-text">
<h4>Opcje:</h4>
<div>
<span class="pointer">+</span>
<a href="?str=zgloszenia&cmd=activate&id='.$aRow['id'].'&panel=1">Aktywuj</a> <br />
<span class="pointer">+</span>
<a href="?str=zgloszenia&cmd=unactivate&id='.$aRow['id'].'&panel=1">Usuń</a>
</div>
?>
CO TU NIE DZIAŁA?
już mówie wszystko

Tzn na firefox ok na IE I OPera nie działa ta funkcja