Funkcja działa niej więcej tak:
Kod javascript
<?php
<div class="picker-horizontal" style="width: 5%; float: left;">
<div class="picker-head"></div>
<div class="picker-text">
// Kod javascript z nazwą "options" //
<a href="java script:showAtCursor('options'.$aRow['id'].'', 10);">
<span class="pointer">+</span></a>
</div>
<div class="picker-bottom"></div>
</div>
<div class="sep"></div>
?>
A To kod co wyświetla te opcje o których mówiłem przypisywane do diva przez ID
<?php
<div class="sheet-pop" id="options'.$aRow['id'].'" style="display: none">
<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>
</div>
';
?>
Co do kodu javascript to proszę:
<?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);
}
?>
I Nie chce po kliknięciu w + otwierać się okienko z tymi opcjami aktywuj i usuń

PozdrwionQa
Proszę o szybką pomoc