peterS.: Abfrage, ob autom. PopUps in Mozilla ausgeschaltet sind

Beitrag lesen

gruss Utz,

... und bei beiden Varianten würde ein kleines Fenster kurz
auf- und wiederzugehen.

damit musst Du leben;

Das ist nicht nur unhübsch, da würden wohl viele Leute
befürchten, dass mit diesem Fensterchen irgendwelcher Unfug
gemacht wird.

diese einstellung ehrt Dich;

Wenn Ihr da irgend was anderes im Sinn habt das ich übersehe -
schubst mich doch bitte in die richtige Richtung :-)

hier kommt ein grosser tritt:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>

<head>
 <meta http-equiv="content-style-type" content="text/css" />
 <meta http-equiv="content-script-type" content="text/javascript" />
 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
 <title>popupCheckForFloatingMenu.html</title>
 <script type="text/javascript" language="JavaScript">
 <!--
  var popUpsEnanbled = false;

var checkWin = new Object();checkWin.closed = true;

function popupCheck() {
   var popupCode = ''+
    '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">\n'+
    '<html>\n\n'+
    '<head>\n'+
    ' <meta http-equiv="content-script-type" content="text/javascript" />\n'+
    ' <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />\n'+
    ' <title>popupCheck</title>\n'+
    '</head>\n\n'+
    '<body onload="if(window.opener){opener.closeCheck();}window.close();" bgcolor="#efefef">\n'+
    '</body>\n\n'+
    '</html>';
   if (checkWin.closed) {
    checkWin = window.open("","","width=10,height=10,left=0,top=0");
   }
   checkWin.document.open("text/html","replace");
  // checkWin.moveBy(-120,-120);
   window.focus();
   checkWin.document.write(popupCode);
   checkWin.document.close();
  }
  function closeCheck() {
   popUpsEnanbled = true;
   rewriteLink();
  }
  function rewriteLink() {
  // alert(popUpsEnanbled);
   if (document.getElementsByTagName) {
    var linkObj = document.getElementsByTagName("a")["testLink"];
    var nodeAttributes = linkObj.attributes;
    for (var i=0;i<nodeAttributes.length;i++) {
     if (nodeAttributes[i].nodeName.toLowerCase() == "href") { // .toLowerCase() wegen opera 7.0
      nodeAttributes[i].nodeValue = "http://forum.de.selfhtml.org"
     }
    }
    linkObj.innerHTML = "http://forum.de.selfhtml.org";
   }
  }
 //-->
 </script>
 <style type="text/css">
 <!--
 body {
  margin-left:0px;
  margin-top:0px;
  margin-right:0px;
  margin-bottom:0px;
  background-color:#efefef;
  background-image:none;
  font-family:verdana,geneva,helvetica,arial,sans-serif;
  font-weight:normal;
  color:#000000;
  font-size:12px;
  line-height:14px;
 }
 div {
  font-family:verdana,geneva,helvetica,arial,sans-serif;
  font-weight:normal;
  color:#000000;
  font-size:12px;
  line-height:14px;
 }

a:link {text-decoration:underline; color:#707070;}
 a:visited {text-decoration:underline; color:#aaaaaa;}
 a:hover {text-decoration:none; color:#707070;}
 a:active {text-decoration:underline; color:#ff9000;}

a.internal:hover {background-color:#ff9000; color:#000000;}
 a.external:hover {background-color:#000000; color:#ffffff;}

#content {width:50%;}
 .leftFloat {float:left;}
 .vBorder {width:25%;}
 //-->
 </style>
</head>

<body onload="popupCheck()" bgcolor="#efefef" marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0">
<div id="leftBorder" name="leftBorder" class="leftFloat vBorder"> </div>
<div id="content" name="content" class="leftFloat">
 <br /><br />
 <hr style="width:100%;height:1px" />
 <br />
 Hallo zusammen,<br />
 <br />
 gibt's ne Mölichkeit abzufragen, ob im Mozilla automatische PopUps abgeschaltet sind? Hintergrund:
 Ich bastle gerade mit dem Joust Outliner herum, der die Option "Floating Menu" anbietet.<br />
 Das geht aber im Mozilla nur, wenn autom. PopUps erlaubt sind. Daher würde ich diese Option gerne
 "verstecken", wenn sie gar nicht gehen kann - und dazu müsste ich herausfinden, ob sie
 abgeschaltet sind oder nicht.<br />
 <br />
 Grüße, Utz<br />
 <br />
 <hr style="width:100%;height:1px" />
 <br />
 gruss Utz,<br />
 <br />
 falls popups enabled sind, muss Dich der folgende link zum selfforum führen - wenn nicht, wird auf SELFHTML
 verwiesen - <a class="external" id="testLink" href="http://selfhtml.teamone.de">http://selfhtml.teamone.de</a><br />
 <br />
 by(t)e by(t)e - peterS. - pseliger@gmx.net<br />
 <br />
 <hr style="width:100%;height:1px" />
 <br />
</div>
<div id="rightBorder" name="rightBorder" class="vBorder"> </div>
</body>

</html>

viel erfolg - by(t)e by(t)e - peterS. - pseliger@gmx.net