// chromeless windows v2.1 // www.microbians.com / Gabriel Suchowolski power[z]one - powerz@microbians.com // // Distributed under the terms of the GNU Library General Public License // // - Chromeless trick by webFX. http://www.eae.net/webfx/ // - Chromeless mouse control to handled like a normal window by Gabriel Suchowolski power[z]one function openchromeless(theURL, wname, W, H, posx, posy, windowTIT, windowREALtit , windowBORDERCOLOR, windowBORDERCOLORsel, windowTITBGCOLOR, windowTITBGCOLORsel, bCenter, sFontFamily, sFontSize, sFontColor) { var windowCERRARa = "close_a.gif"; var windowCERRARd = "close_d.gif"; var windowCERRARo = "close_o.gif"; var windowNONEgrf = "none.gif"; var windowCLOCK = "clock.gif"; var windowW = W; var windowH = H; var windowX = -1; var windowY = -1; if(bCenter){ windowX = Math.ceil( (window.screen.width - windowW) / 2 ); windowY = Math.ceil( (window.screen.height - windowH) / 2 ); } else { windowX = posx; windowY = posy; } 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' + ' '+ '\n'+ ' '+ '\n'+ ' CHROMELESS WINDOWS / TITLEBAR '+ '\n'+ ' '+ '\n'+ ' '+ '\n'+ ' '+ '\n'+ ' '+ '\n'+ '
'+ '\n'+ '
'+ '
' + windowTIT + '
' +'
'+ '\n'+ '
'+ '\n'+ '
'+ '\n'+ ' '+ '\n'+ ' '+ '\n'+ ' '+ '\n' var chromeFRMhtml = '' + ' '+ '\n'+ ' '+ '\n'+ '' + ' ' + windowREALtit + ' '+ '\n'+ ' '+ '\n'+ ' '+ '\n'+ ' '+ '\n'+ ' '+ '\n'+ ' '+ '\n'+ ' '+ '\n'+ ' '+ '\n'+ ' '+ '\n'+ ' '+ '\n'+ ' '+ '\n'+ ' '+ '\n'+ ' ' 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 }