B
ByeBye 182971
Es will einfach nicht und ich habe absolut und gar keine ahnung warum.
Ich hab jetzt schon mehrere fertige Scripts benutzt, selbst geschrieben und sonstiges, aber es geht einfach kein Popup auf!!
Ich weiß nicht woran es liegt denn das script müsste eigentlich funktionieren:
Wie ich es anwende:
Ich glaube das funktionier?! kann es aber nicht sein, dass irgendeine andere Formatierung schuld ist, dass es nicht funktioniert? Javascript ist bei mir eingeschaltet...
Kann mir bitte wer helfen?
Wenn's ist dann poste ich meinen kompletten Html-Code
PS: es funktioniert im IE(7) aber nicht im FF
Ich hab jetzt schon mehrere fertige Scripts benutzt, selbst geschrieben und sonstiges, aber es geht einfach kein Popup auf!!
Ich weiß nicht woran es liegt denn das script müsste eigentlich funktionieren:
Code:
// Script by Thomas Stich
// stichpunkt<.>de</>beitrag</>popup<.>html
// use it if you like it
//
// <a href="html-or.jpg" onclick="return popup(this,123,456)" title="..."
// or
// <a href="html-or.jpg" onclick="return popup(this)" title="..."
var pop = null;
function popdown() {
if (pop && !pop.closed) pop.close();
}
function popup(obj,w,h) {
var url = (obj.getAttribute) ? obj.getAttribute('href') : obj.href;
if (!url) return true;
w = (w) ? w += 20 : 400; // 150px*150px is the default size
h = (h) ? h += 25 : 400;
var args = 'width='+w+',height='+h+',resizable';
popdown();
pop = window.open(url,'',args);
return (pop) ? false : true;
}
window.onunload = popdown;
window.onfocus = popdown;
Wie ich es anwende:
HTML:
<a href="agb.html" onclick="return popup(this,400,400)" target="_blank">AGBs</a>
Ich glaube das funktionier?! kann es aber nicht sein, dass irgendeine andere Formatierung schuld ist, dass es nicht funktioniert? Javascript ist bei mir eingeschaltet...
Kann mir bitte wer helfen?
Wenn's ist dann poste ich meinen kompletten Html-Code
PS: es funktioniert im IE(7) aber nicht im FF