Witam mam o taki gotowy skrypt js
var IE = document.all?true:false;
if (!IE) document.captureEvents(Event.MOUSEMOVE);
document.onmousemove = getMouseXY;
var tempX = 0;
var tempY = 0;
function getMouseXY(e) {
if (IE) {
tempX = event.clientX + document.body.scrollLeft;
tempY = event.clientY + document.body.scrollTop;
} else {
tempX = e.pageX;
tempY = e.pageY;
}
if (oShowedAtCursor && iShowedAtCursorLastActivity+iShowedAtCursorShowingTime < (new Date()).getTime()) {
oShowedAtCursor.style.display = 'none';
sShowedAtCursor = null;
}
}
var oShowedAtCursor;
var iShowedAtCursorShowingTime;
var iShowedAtCursorLastActivity;
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);
}
function showHint(o, pos) {
if (!$('ahint' + o)) {
var s = $(o);
var top = pos.offsetTop - 144;
var left = pos.offsetLeft+pos.offsetWidth-7;
var id = o;
var content = '<div style="padding: 5px 9px;"><div style="text-align: right;"><span onmouseover="this.style.cursor='pointer'" onclick="java script:$('ahint'+id+'').display='none';" style="font-family: arial; font-weight: bold;">X</span></div><div>';
content += '<div style="text-indent: 4px; font-size: 11px;">' + s.innerHTML + '<div>';
content += '</div></div>';
div = document.createElement('div');
div.innerHTML = content;
div.style.top = top;
div.style.left = left;
div.style.position = 'absolute';
div.style.background = 'url(img/hint.gif)';
div.style.width = '268px';
div.style.height = '152px';
div.setAttribute('id', 'ahint' + id);
document.body.appendChild(div);
} else if ($('ahint' + o).style.display != '') {
$('ahint' + o).style.display = '';
}
}
function unShowHint(o) {
$('ahint' + o).style.display = 'none';
}
var bTaskerActive = false;
var iTask = 0;
function taskerAddTask(m, t) {
bTaskerActive = true;
iTask ++;
setTimeout("if(bTaskerActive && iTask == "+iTask+"){"+m+"}", t);
}
function taskerUnactivate() {
bTaskerActive = false;
}
function goTo(m, qs) {
location = 'index.php?str=' + m + '&' + qs;
}
function insertinto(o, t) {
t = t.replace(/<br/>/g, "\n");
document.getElementById(o).value += t;
document.getElementById(o).focus();
}
function changeDisplay(id, pc) {
if (pc) {
var e = document.getElementById(id).getElementsByTagName('div');
for (k in e) {
if (typeof(e[k]) == 'object' && e[k].parentNode.id == id) {
if (e[k].id == pc) {
e[k].style.display = 'block';
} else {
e[k].style.display = 'none';
}
}
}
} else {
var o = document.getElementById(id);
if (o.style.display != 'none') {
o.style.display = 'none';
} else {
o.style.display = 'block';
}
}
}
function $(id) {
return document.getElementById(id);
}
function nf(v, curr) {
var s = v.toString();
var res = "";
for (var i = 0; i < s.length%3; i ++) {
res += s[i];
}
var j = 0;
for (var i = s.length%3; i < s.length; i ++) {
if (j%3 == 0 && i != 0) {
res += ' ';
}
j ++;
res += s[i];
}
if (curr) {
res += ' PLN';
}
return res;
}
function payConfirm(value, title, url, type) {
var c = document.createElement('div');
document.body.appendChild(c);
var types = [];
types.push("jednorazowe obciÄ…ĹĽenie");
types.push("cotygodniowe obciÄ…ĹĽenie");
types.push("comiesięczne obciążenie");
types.push("cozesonowe obciÄ…ĹĽenie");
if (types[type]) {
type = types[type];
} else {
type = "inne - " + type;
}
var name = 'cash'+(new Date()).getTime();
c.innerHTML = '<div class="sheet-info" id="'+name+'"><div class="sheet-text"><h4>Potwierdzenie obciążenia kasy klubowej:</h4><div><span class="pointer">+</span> Nazwa: '+title+'</div><div><span class="pointer">+</span> Wartość: '+nf(value,true)+'</div><div><span class="pointer">+</span> Stan po: '+nf(
<?php echo intval($aKlub['stan_konta']); ?>-value, true)+'</div><span class="pointer">+</span> Typ: '+type+'</div><div><input type="button" class="ibutton" onclick="window.location=''+url+''" value="ZatwierdĹş" /> <input type="button" class="ibutton" onclick="$(''+name+'').style.display = 'none';" value="Anuluj" /></div></div></div>';
showAtCursor(name, 500);
}
Wyswietla on szczerze nie wiem co bo sie nie znam na js
Tylko wiem ze pokazuje mi jakieś dodatkowe okienko
c.innerHTML jak dodam w linku
<?php
[/php]
[php] <a href="java script:payConfirm('.$aNextPoziom[0].', 'Poziom Szkółki - '.$iNextPoziom.' ', 'index.php?str=szkolka&cmd=upgrade&from='.$_GET['from'].'', 0);"><b><font color="#33CC99">Podnieś poziom</b></font></a>
?>
I Wyskakuje mi okienko Z Informacją o poziomach ect
Porblem w tym ze w firefox działa ale w ie o opera nie

Czemu