Anzeige:
Seite 1 von 2 12 LetzteLetzte
Ergebnis 1 bis 15 von 23

Thema: popup nicht maximierbar machen

  1. #1
    Registrierter Benutzer
    Registriert seit
    28.11.2002
    Beiträge
    11

    popup nicht maximierbar machen

    hi,

    Ich möchte per js ein popup öffnen, welches sich vom user nicht maximieren lässt (der mittlere der 3 Buttons rechts oben im neuen Fenster soll deaktiviert sein). Ich habs mit folgendem Code probiert:

    onClick="window.open('popup.htm','Einstellungen',' scrollbars=yes,width=400,height=200, resizable=no')"

    das popup lässt sich aber trotzdem noch maximieren. Ich habs im aktuellen Firebird und im IE6 probiert.
    Weiß jemand, was ich da falsch mache?

  2. #2
    Registrierter Benutzer
    Registriert seit
    28.11.2002
    Beiträge
    11
    keine javascript-Profis hier???

  3. #3
    Registrierter Benutzer
    Registriert seit
    08.07.2002
    Beiträge
    719
    Ich will dich hier ja nicht wegscheuchen, aber ich denke mal, bei www.webwork-community.de wird dir eher geholfen. Ich glaub nicht, dass das an JavaScript liegt. In der Regel sind es Differenzen zwischen dem, was im Standard steht und dem, was der Browser liefert.

  4. #4
    Administrator Avatar von anda_skoa
    Registriert seit
    17.11.2001
    Ort
    Graz, Österreich
    Beiträge
    5.477
    Original geschrieben von lou_ziffer
    keine javascript-Profis hier???
    Doch, aber die schaun vielleicht nicht alle paar Stunden rein, sondern vielleicht nur einmal am Tag.

    Bischen mehr Geduld wäre da schon angebracht.

    Ciao,
    _
    Qt/KDE Entwickler
    Debian Benutzer

  5. #5
    Registrierter Benutzer
    Registriert seit
    27.08.2002
    Beiträge
    337
    Hatte heute echt noch keine Zeit!
    Code:
    <HTML><HEAD>
    <TITLE>(Type a title for your page here)</TITLE>
    <script language="javaScript" type="text/javascript" SRC="js/pz_chromeless.js"></SCRIPT>
    
    <script>
    function openIT() {
    	theURL="test.html"
    	wname ="CHROMELESSWIN"
    	W=400;
    	H=200;
    	windowCERRARa 		= "img/close_a.gif"
    	windowCERRARd 		= "img/close_d.gif"
    	windowCERRARo 		= "img/close_o.gif"
    	windowNONEgrf 		= "img/none.gif"
    	windowCLOCK		= "img/clock.gif"
    	windowREALtit		= "Task title"
    	windowTIT 	    	= "<font face=verdana size=1>  Window title</font>"
    	windowBORDERCOLOR   	= "#000000"
    	windowBORDERCOLORsel	= "#999999"
    	windowTITBGCOLOR    	= "#999999"
    	windowTITBGCOLORsel 	= "#333333"
    	openchromeless(theURL, wname, W, H, windowCERRARa, windowCERRARd, windowCERRARo, windowNONEgrf, windowCLOCK, windowTIT, windowREALtit , windowBORDERCOLOR, windowBORDERCOLORsel, windowTITBGCOLOR, windowTITBGCOLORsel)
    }
    </script>
    
    </HEAD>
    <BODY BGCOLOR="#ffffff" TEXT="#000000" LINK="#0000ff" VLINK="#800080" ALINK="#ff0000">
    <BR><BR>
    <DIV ALIGN="center">
    <FONT SIZE="2" COLOR="" FACE="verdana"><BR><B>Here is the page loaded into the new chromeless popup window!</B></FONT>
    </DIV><BR><BR>
    <a href="javascript: openit();">Open Window</a>
    </BODY>
    </HTML>

  6. #6
    Registrierter Benutzer
    Registriert seit
    27.08.2002
    Beiträge
    337
    und die js
    Code:
    function openchromeless(theURL, wname, W, H, windowCERRARa, windowCERRARd, windowCERRARo, windowNONEgrf, windowCLOCK, windowTIT, windowREALtit , windowBORDERCOLOR, windowBORDERCOLORsel, windowTITBGCOLOR, windowTITBGCOLORsel) {
    
    	var windowW = W;
    	var windowH = H;
    	var windowX = Math.ceil( (window.screen.width  - windowW) / 2 );
    	var windowY = Math.ceil( (window.screen.height - windowH) / 2 );
    
    	if (navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion)>=4) isie=true
    	else											     isie=false
    
    	if (isie) { H=H+20+2; W=W+2; }
    
    	s = ",width="+W+",height="+H;
    
    	if (isie && (navigator.userAgent.toLowerCase().indexOf("win")!=-1) ) {
    
    var dowin = theURL != "" ? true : false;
    
    var chromeTIThtml = '\n' +
    '<html>																							'+ '\n'+
    '<head>                                                                                                                                                                         	'+ '\n'+
    '<title>&nbsp;CHROMELESS WINDOWS / TITLEBAR</title>                                                                                                                      		'+ '\n'+
    '<style type="text/css">                                                                                                                                                        	'+ '\n'+
    '#mywindowTITLE 	{ position: absolute; left:   0px; top:   0px; width: 100%; height: 22px; z-index: 1; background-color: '+windowTITBGCOLOR+'; clip:rect(0,100%,22,0); }         '+ '\n'+
    '#mywindow 		{ position: absolute; left:   0px; top:   0px; width: 100%; height: 22px; z-index: 2;                            	      clip:rect(0,100%;22,0); }         '+ '\n'+
    '#mywindowCLOSE 	{ position: absolute; left: -22px; top: -22px; width: 11px; height: 11px; z-index: 3;                            	      clip:rect(0,11,11,0);   }         '+ '\n'+
    '#mywindowCLOCK 	{ position: absolute; left: -22px; top: -22px; width: 11px; height: 11px; z-index: 3;                            	      clip:rect(0,11,11,0);   }         '+ '\n'+
    '</style>                                                                                                                                                                       	'+ '\n'+
    '<script language="javascript">																				'+ '\n'
    
    if ( theURL != "" ) {
    
    chromeTIThtml = chromeTIThtml + 
    '	theURL 	    	    = "'+theURL			+'"                                                                                                                             '+ '\n'+
    '	windowCERRARa 	    = "'+windowCERRARa		+'"                                                                                                                             '+ '\n'+
    '	windowCERRARd 	    = "'+windowCERRARd		+'"                                                                                                                             '+ '\n'+
    '	windowCERRARo 	    = "'+windowCERRARo		+'"                                                                                                                             '+ '\n'+
    '	windowCLOCK         = "'+windowCLOCK            +'"                                                                                                                             '+ '\n'+
    '	windowBORDERCOLOR   = "'+windowBORDERCOLOR	+'"                                                                                                                             '+ '\n'+
    '	windowBORDERCOLORsel= "'+windowBORDERCOLORsel	+'"                                                                                                                             '+ '\n'+
    '	windowTITBGCOLOR    = "'+windowTITBGCOLOR	+'"                                                                                                                             '+ '\n'+
    '	windowTITBGCOLORsel = "'+windowTITBGCOLORsel	+'"                                                                                                                             '+ '\n'
    
    } else {
    
    chromeTIThtml = chromeTIThtml + 
    '	theURL="about:blank"                                                                                                                                                            '+ '\n'+
    '	windowCERRARa 		= "img/close_a.gif"                                                                                                                                     '+ '\n'+
    '	windowCERRARd 		= "img/close_d.gif"                                                                                                                                     '+ '\n'+
    '	windowCERRARo 		= "img/close_o.gif"                                                                                                                                     '+ '\n'+
    '	windowCLOCK         	= "img/clock.gif"                                                                                                                             		'+ '\n'+
    '	windowTIT 	    	= "<font face=verdana size=1>&nbsp; window title</font>"                                                                                               '+ '\n'+
    '	windowBORDERCOLOR   	= "#000000"                                                                                                                                             '+ '\n'+
    '	windowBORDERCOLORsel	= "#FF8A00"                                                                                                                                             '+ '\n'+
    '	windowTITBGCOLOR    	= "#d7dcd9"                                                                                                                                             '+ '\n'+
    '	windowTITBGCOLORsel 	= "#ffffff"                                                                                                                                             '+ '\n'
    
    }

  7. #7
    Registrierter Benutzer
    Registriert seit
    27.08.2002
    Beiträge
    337
    Code:
    chromeTIThtml = chromeTIThtml + 
    'var windowCERRARImg_a = new Image(); windowCERRARImg_a.src = windowCERRARa;                                                                                                            '+ '\n'+
    'var windowCERRARImg_d = new Image(); windowCERRARImg_d.src = windowCERRARd;                                                                                                            '+ '\n'+
    'var windowCERRARImg_o = new Image(); windowCERRARImg_o.src = windowCERRARo;                                                                                                            '+ '\n'+
    'var windowCLOCKImg    = new Image();    windowCLOCKImg.src = windowCLOCK;                                                                                                              '+ '\n'+
    '                                                                                                                                                                                       '+ '\n'+
    'function mouseSTATUS() {                                                                                                                                                               '+ '\n'+
    '	this.x       = null;                                                                                                                                                            '+ '\n'+
    '	this.y       = null;                                                                                                                                                            '+ '\n'+
    '	this.bt      = "up";                                                                                                                                                            '+ '\n'+
    '	this.oldx    = null;                                                                                                                                                            '+ '\n'+
    '	this.oldy    = null;                                                                                                                                                            '+ '\n'+
    '	this.dx      = null;                                                                                                                                                            '+ '\n'+
    '	this.dy      = null;                                                                                                                                                            '+ '\n'+
    '	this.screeny = null;                                                                                                                                                            '+ '\n'+
    '	this.screenx = null;                                                                                                                                                            '+ '\n'+
    '                                                                                                                                                                                       '+ '\n'+
    '	this.element = null;                                                                                                                                                            '+ '\n'+
    '	this.event   = null;                                                                                                                                                            '+ '\n'+
    '}                                                                                                                                                                                      '+ '\n'+
    '                                                                                                                                                                                       '+ '\n'+
    'var mouse = new mouseSTATUS();                                                                                                                                                         '+ '\n'+
    '                                                                                                                                                                                       '+ '\n'+
    'function actualizateMouseSTATUS(e) {                                                                                                                                                   '+ '\n'+
    '	if (!e) var e = event                                                                                                                                                           '+ '\n'+
    '	if ( (e.type=="mousedown" || e.type=="mouseup") && e.button!=1) return true                                                                                                     '+ '\n'+
    '                                                                                                                                                                                       '+ '\n'+
    '	var x=e.x+document.body.scrollLeft                                                                                                                                              '+ '\n'+
    '	var y=e.y+document.body.scrollTop                                                                                                                                               '+ '\n'+
    '                                                                                                                                                                                       '+ '\n'+
    '	mouse.x   = x;                                                                                                                                                                  '+ '\n'+
    '	mouse.y   = y;                                                                                                                                                                  '+ '\n'+
    '                                                                                                                                                                                       '+ '\n'+
    '	     if ( e.type == "mousedown" ) mouse.bt = "down";                                                                                                                            '+ '\n'+
    '	else if ( e.type == "mouseup" )   mouse.bt = "up";                                                                                                                              '+ '\n'+
    '                                                                                                                                                                                       '+ '\n'+
    '	if (window.event) {                                                                                                                                                             '+ '\n'+
    '		mouse.screenx=window.event.screenX;                                                                                                                                     '+ '\n'+
    '		mouse.screeny=window.event.screenY;                                                                                                                                     '+ '\n'+
    '	} else {                                                                                                                                                                        '+ '\n'+
    '		mouse.screenx=-1;                                                                                                                                                       '+ '\n'+
    '		mouse.screeny=-1;                                                                                                                                                       '+ '\n'+
    '	}                                                                                                                                                                               '+ '\n'+
    '                                                                                                                                                                                       '+ '\n'+
    '}                                                                                                                                                                                      '+ '\n'+
    '

  8. #8
    Registrierter Benutzer
    Registriert seit
    27.08.2002
    Beiträge
    337
    Code:
    function selectstart(){                                                                                                                                                                '+ '\n'+
    '	if ( event.srcElement.tagName != "INPUT" && event.srcElement.tagName != "TEXTAREA") { return false; }                                                                           '+ '\n'+
    '	else { mouse.bt="up"; return true; }                                                                                                                                            '+ '\n'+
    '}                                                                                                                                                                                      '+ '\n'+
    '																							'+ '\n'+
    'initMouseEvents()                                                                                                                                                                      '+ '\n'+
    '																							'+ '\n'+
    'var mywindowbt    ="up";                                                                                                                                                               '+ '\n'+
    'var wincloseSTATUS="up";                                                                                                                                                               '+ '\n'+
    '																							'+ '\n'+
    'var ofx=0;                                                                                                                                                                             '+ '\n'+
    'var ofy=0;                                                                                                                                                                             '+ '\n'+
    'var opx=0;                                                                                                                                                                             '+ '\n'+
    'var opy=0;                                                                                                                                                                             '+ '\n'+
    'var px=0;                                                                                                                                                                              '+ '\n'+
    'var py=0;                                                                                                                                                                              '+ '\n'+
    '																							'+ '\n'+
    'var wcpx1=-1, wcpy1=-1;                                                                                                                                                                '+ '\n'+
    'var wcpx2=-1, wcpy2=-1;                                                                                                                                                                '+ '\n'+
    '																							'+ '\n'+
    'var wclosechanged = false;                                                                                                                                                             '+ '\n'+
    '																							'+ '\n'+
    '

  9. #9
    Registrierter Benutzer
    Registriert seit
    27.08.2002
    Beiträge
    337
    Code:
    function initToMoveWin() {                                                                                                                                                             '+ '\n'+
    '		if (wincloseSTATUS=="up" && ( mywindowbt=="up" || mywindowbt=="over") ) {                                                                                               '+ '\n'+
    '					                                                 												'+ '\n'+
    '				if ( parent.mainloaded ) document.all["mywindowCLOCK"].style.visibility = "hidden";                                                 			'+ '\n'+
    '					                                                 												'+ '\n'+
    '				document.all["mywindowCLOCK"].style.pixelLeft=document.body.clientWidth-36 										'+ '\n'+
    '				document.all["mywindowCLOCK"].style.pixelTop =4                                                                         				'+ '\n'+
    '					                                                 												'+ '\n'+
    '				wcpx1 = document.all["mywindowCLOSE"].style.pixelLeft=document.body.clientWidth-18                                                                      '+ '\n'+
    '				wcpy1 = document.all["mywindowCLOSE"].style.pixelTop =4                                                                                                 '+ '\n'+
    '				wcpx2 = wcpx1 + 11 - 1                                                                                                                                  '+ '\n'+
    '				wcpy2 = wcpy1 + 11 - 1                                                                                                                                  '+ '\n'+
    '				if ( mouse.x >= wcpx1 && mouse.x <= wcpx2 && mouse.y >= wcpy1 && mouse.y <= wcpy2) {                                                                    '+ '\n'+
    '					if (wclosechanged == false) {                                                                                                                   '+ '\n'+
    '						document.all["mywindowCLOSE"].document.images["closewin"].src=windowCERRARImg_o.src                                                     '+ '\n'+
    '						wclosechanged = true                                                                                                                    '+ '\n'+
    '					}                                                                                                                                               '+ '\n'+
    '						                                                                                                                                        '+ '\n'+
    '				} else if (wclosechanged == true) {                                                                                                                     '+ '\n'+
    '					document.all["mywindowCLOSE"].document.images["closewin"].src=windowCERRARImg_d.src                                                             '+ '\n'+
    '					wclosechanged = false                                                                                                                           '+ '\n'+
    '				}                                                                                                                                                       '+ '\n'+
    '		}                                                                                                                                                                       '+ '\n'+
    '																							'+ '\n'+
    '		     if (   mouse.y <= 22 && mouse.y >= 1   && mywindowbt == "up"   && mouse.bt =="up"    ) { mywindowbt = "over" }                                                     '+ '\n'+
    '		else if ( ( mouse.y  > 22 || mouse.y <  1 ) && mywindowbt == "over" && mouse.bt =="up"    ) { mywindowbt = "up"   }                                                     '+ '\n'+
    '		else if (   mouse.y <= 22 && mouse.y >= 1   && mywindowbt == "over" && mouse.bt == "down" ) {                                                                           '+ '\n'+
    '			self.window.focus();                                                                                                                                            '+ '\n'+
    '	                                                                                                                                                                                '+ '\n'+
    '			if ( mouse.x >= wcpx1 && mouse.x <= wcpx2 && mouse.y >= wcpy1 && mouse.y <= wcpy2 ) {                                                                           '+ '\n'+
    '				wincloseSTATUS="down"                                                                                                                                   '+ '\n'+
    '				document.all["mywindowCLOSE"].document.images["closewin"].src=windowCERRARImg_a.src                                                                     '+ '\n'+
    '			} else {                                                                                                                                                        '+ '\n'+
    '				document.all["mywindowTITLE"].style.backgroundColor = windowTITBGCOLORsel                                                                               '+ '\n'+
    '				document.body.style.borderColor    = windowBORDERCOLORsel                                                                                               '+ '\n'+
    '				parent.chromewinb.document.bgColor = windowBORDERCOLORsel                                                                                               '+ '\n'+
    '				parent.chromewinl.document.bgColor = windowBORDERCOLORsel                                                                                               '+ '\n'+
    '				parent.chromewinr.document.bgColor = windowBORDERCOLORsel                                                                                               '+ '\n'+
    '				ofx =  mouse.x;                                                                                                                                         '+ '\n'+
    '				ofy =  mouse.y;                                                                                                                                         '+ '\n'+
    '				opx =  mouse.x;                                                                                                                                         '+ '\n'+
    '				opy =  mouse.y;                                                                                                                                         '+ '\n'+
    '			}	                                                                                                                                                        '+ '\n'+
    '			mywindowbt="down";                                                                                                                                              '+ '\n'+
    '		}                                                                                                                                                                       '+ '\n'+
    '		else if ( mouse.bt =="up" && mywindowbt == "down" ) {                                                                                                                   '+ '\n'+
    '			mywindowbt="up";                                                                                                                                                '+ '\n'+
    '			ofx=0;                                                                                                                                                          '+ '\n'+
    '			ofy=0;                                                                                                                                                          '+ '\n'+
    '			opx=0;                                                                                                                                                          '+ '\n'+
    '			opy=0;                                                                                                                                                          '+ '\n'+
    '																							'+ '\n'+
    '			if ( mouse.x >= wcpx1 && mouse.x <= wcpx2 && mouse.y >= wcpy1 && mouse.y <= wcpy2 && wincloseSTATUS=="down" ) { top.window.close() }                            '+ '\n'+
    '																							'+ '\n'+
    '			wincloseSTATUS="up"                                                                                                                                             '+ '\n'+
    '		                                                                                                                                                                        '+ '\n'+
    '			if ( document.all["mywindowTITLE"] ) {                                                                                                                          '+ '\n'+
    '				document.all["mywindowTITLE"].style.backgroundColor = windowTITBGCOLOR                                                                                  '+ '\n'+
    '				document.body.style.borderColor   = windowBORDERCOLOR                                                                                                   '+ '\n'+
    '				parent.chromewinb.document.bgColor= windowBORDERCOLOR                                                                                                   '+ '\n'+
    '				parent.chromewinl.document.bgColor= windowBORDERCOLOR                                                                                                   '+ '\n'+
    '				parent.chromewinr.document.bgColor= windowBORDERCOLOR                                                                                                   '+ '\n'+
    '			}                                                                                                                                                               '+ '\n'+
    '																							'+ '\n'+
    '		}                                                                                                                                                                       '+ '\n'+
    '		else if ( mywindowbt == "down" && wincloseSTATUS == "up") {                                                                                                             '+ '\n'+
    '			var m_scrx = mouse.screenx;                                                                                                                                     '+ '\n'+
    '			var m_scry = mouse.screeny;                                                                                                                                     '+ '\n'+
    '			opx = px + ofx - m_scrx;                                                                                                                                        '+ '\n'+
    '			opy = py + ofy - m_scry;                                                                                                                                        '+ '\n'+
    '			px = m_scrx - ofx;                                                                                                                                              '+ '\n'+
    '			py = m_scry - ofy;                                                                                                                                              '+ '\n'+
    '			top.window.moveTo(px , py);                                                                                                                                     '+ '\n'+
    '		}                                                                                                                                                                       '+ '\n'+
    '	setTimeout("initToMoveWin()",50);                                                                                                                                               '+ '\n'+
    '}                                                                                                                                                                                      '+ '\n'+
    '</script>                                                                                												'+ '\n'+
    '</head>                                                                                                                                                                        	'+ '\n'+
    '<body TOPMARGIN=0 LEFTMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 scroll=no style="border: 1px solid '+ windowBORDERCOLOR +'; overflow: hidden; margin: 0pt;" bgcolor='+windowTITBGCOLOR+'>  '+ '\n'+
    '<div id=mywindow><img src="'+windowNONEgrf+'" width=100% height=20></div>                                                                                                             	'+ '\n'+
    '<div id=mywindowTITLE>'+ '<table width=100% height=20 border=0 cellpadding=0 cellspacing=0><tr><td valign=middle align=left>'+windowTIT+'</td></tr></table>' +'</div>                  '+ '\n'+
    '<div id=mywindowCLOSE><img name=closewin src="'+ windowCERRARd +'" border=0 width=11 height=11></div>                                                                                  '+ '\n'+
    '<div id=mywindowCLOCK><img name=clockwin src="'+ windowCLOCK   +'" border=0 width=11 height=11></div>                                                                                  '+ '\n'+
    '</body>

  10. #10
    Registrierter Benutzer
    Registriert seit
    27.08.2002
    Beiträge
    337
    Code:
    '<script>initToMoveWin();</script>																			'+ '\n'+
    '</html>                                                                                                                                                                        	'+ '\n'
    
    var chromeFRMhtml = '' +
    '<HTML>																		'+ '\n'+
    '<HEAD>                                                                         								'+ '\n'+
    '<TITLE>'+ windowREALtit +'</TITLE>                                          									'+ '\n'+
    '</HEAD>                                                                        								'+ '\n'+
    '<script> 																	'+ '\n'+
    'mainloaded = false																'+ '\n'+
    'function generatetitle() { 															'+ '\n'+
    '	if( window.frames["chromewint"] && window.frames["chromewinl"] && window.frames["chromewinb"] && window.frames["chromewinr"] ) {	'+ '\n'+
    '		chromewint.document.open();													'+ '\n'+
    '		chromewint.document.write( "'+ quitasaltolinea(chromeTIThtml) +'" );								'+ '\n'+
    '		chromewint.document.close();													'+ '\n'+
    '		chromewinl.document.bgColor="'+ windowBORDERCOLOR +'"										'+ '\n'+
    '		chromewinb.document.bgColor="'+ windowBORDERCOLOR +'"										'+ '\n'+
    '		chromewinr.document.bgColor="'+ windowBORDERCOLOR +'"										'+ '\n'+
    '	} else {																'+ '\n'+
    '		setTimeout("generatetitle()",200)												'+ '\n'+
    '	}																	'+ '\n'+
    '}																		'+ '\n'+
    'generatetitle()																'+ '\n'+
    '</script>																	'+ '\n'+
    '<frameset border=0 framespacing=0 frameborder=0 rows="22,100%,1" onload="mainloaded=true" onreadystatechange="generatetitle()">		'+ '\n'+
    '	<frame name=chromewint src="about:blank" scrolling=no noresize>  									'+ '\n'+
    '	<frameset border=0 framespacing=0 frameborder=0 cols="1,100%,1">        								'+ '\n'+
    '		<frame name=chromewinl src="about:blank" scrolling=no noresize> 								'+ '\n'+
    '		<frame name=main       src="'+theURL+'">                   									'+ '\n'+
    '		<frame name=chromewinr src="about:blank" scrolling=no noresize> 								'+ '\n'+
    '	</frameset>                                                             								'+ '\n'+
    '	<frame name=chromewinb src="about:blank" scrolling=no noresize>         								'+ '\n'+
    '</frameset>                                                                    								'+ '\n'+
    '</HTML>                                                                        								'
    
    		splashWin = window.open( "" , wname, "fullscreen=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0"+s);
    
    		splashWin.resizeTo( Math.ceil( W )       , Math.ceil( H ) );
    		splashWin.moveTo  ( Math.ceil( windowX ) , Math.ceil( windowY ) );
    
    		splashWin.document.open();
    		splashWin.document.write( chromeFRMhtml );
    		splashWin.document.close();
    
    	}
    	else    {
    		var splashWin = window.open(theURL, wname, "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1"+s, true);
    	}
    
    	splashWin.focus();
    }                                                                               
                                                                                    
    function quitasaltolinea(txt) {
    
      var salida = txt.toString()
      var re     = /\\/g; var salida = salida.replace(re, "\\\\");
      var re     = /\//g; var salida = salida.replace(re, "\\\/");
      var re     = /\"/g; var salida = salida.replace(re, "\\\"");
      var re     = /\'/g; var salida = salida.replace(re, "\\\'");
      var re     = /\n/g; var salida = salida.replace(re, "\\n");
      var re     = /  /g; var salida = salida.replace(re, "");
      var re     = /\t/g; var salida = salida.replace(re, "");
      var re     = /\r/g; var salida = salida.replace(re, "");
    
      return salida
    Die Längenbegrenzung nervt.

  11. #11
    Registrierter Benutzer
    Registriert seit
    27.08.2002
    Beiträge
    337
    PS. die letzte Klammer fehlt!

  12. #12
    Administrator Avatar von anda_skoa
    Registriert seit
    17.11.2001
    Ort
    Graz, Österreich
    Beiträge
    5.477
    Wäre es nicht vernünftiger, den Code in einer Datei anzuhängen?

    Ciao,
    _
    Qt/KDE Entwickler
    Debian Benutzer

  13. #13
    Registrierter Benutzer
    Registriert seit
    27.08.2002
    Beiträge
    337
    Hast Recht.

  14. #14
    Registrierter Benutzer Avatar von peschmae
    Registriert seit
    14.03.2002
    Ort
    Schweizland
    Beiträge
    4.549
    aber so zeugs geht eh nicht mit jedem WM - wo bleibt denn da der Sinn?

    Wenn einer das maximieren möchte, dann soll er doch.

    MfG Peschmä
    The greatest trick the Devil ever pulled was convincing the world he didn't exist. -- The Usual Suspects (1995)
    Hey, I feel their pain. It's irritating as hell when people act like they have rights. The great old one (2006)

  15. #15
    Administrator Avatar von anda_skoa
    Registriert seit
    17.11.2001
    Ort
    Graz, Österreich
    Beiträge
    5.477
    Original geschrieben von Jana
    Hast Recht.
    Vielleicht änderst du das noch

    Ciao,
    _
    Qt/KDE Entwickler
    Debian Benutzer

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •