javascript:openWindow=void(window.open('nomepagina.html','newWin','scrollbars=0, width=350,height=350'))
Il problema è che la popup si apre a casaccio mentre io vorrei che si aprisse con precisione geometrics

Mucias Grazias

Moderatori: Dylan666, hydra, gahan
function PopCenter(theUrl,WinName,width,height,scrollbar) {
// theUrl = The page
// width = Width of the window
// height = Height of the windows
// scroll = Do You want the Scroll??? ][ Value = yes|no
//
// brought to you by []==ThoR®
//
var x = screen.availWidth
var y = screen.availHeight
var spaceSx = (x - width)/2
//var spaceUp = 0 // To Point PopUp top
var spaceUp = (y - height)/2 // To point PopUp in the center
winparams = "" // Start Params for Window
winparams = winparams + "scrollbars=" + scrollbar // Scroll
winparams = winparams + ",resizable=no" // Resizable
winparams = winparams + ",left=" + spaceSx // Space From Left
winparams = winparams + ",top=" + spaceUp // Space From Top
winparams = winparams + ",width=" + width // Windowz Width
winparams = winparams + ",height=" + height // Windowz Height
winparams = winparams + ",directory=no" // The Tool Bars Menu
winparams = winparams + ",status=no" //
winparams = winparams + ",location=no" //
winparams = winparams + ",toolbar=no" // -------------------
// Open window
ThoR = new Object( );
// Active window
ThoR.focus();
}
<a href="javascript:PopCenter('page.htm','PopUp','300','250','no');">Click</a>
<HEAD>
<SCRIPT LANGUAGE="javascript">
function centra(url, width, height)
{
if (document.all)
{
var x = window.screenLeft;
var y = window.screenTop;
var w = window.document.body.offsetWidth;
var h = window.document.body.offsetHeight;
}
else
{
var x = window.screenX;
var y = window.screenY;
var w = window.outerWidth;
var h = window.outerHeight;
}
var cntx = x + Math.round((w - width) / 2);
var cnty = y + Math.round((h - height) / 2);
window.open (url, null, 'left=' + cntx + ',top=' + cnty + ',width=' +
width + ',height=' + height);
}
</SCRIPT>
<BODY>
<A HREF="javascript:centra('tua.htm',200,200);">apri</A>
</BODY>
function PopCenter(theUrl,WinName,width,height,scrollbar) {
// theUrl = The page
// width = Width of the window
// height = Height of the windows
// scroll = Do You want the Scroll??? ][ Value = yes|no
//
// brought to you by []==ThoR®
//
var x = screen.availWidth
var y = screen.availHeight
var spaceSx = (x - width)/2
//var spaceUp = 0 // To Point PopUp top
var spaceUp = (y - height)/2 // To point PopUp in the center
winparams = "" // Start Params for Window
winparams = winparams + "scrollbars=" + scrollbar // Scroll
winparams = winparams + ",resizable=no" // Resizable
winparams = winparams + ",left=" + spaceSx // Space From Left
winparams = winparams + ",top=" + spaceUp // Space From Top
winparams = winparams + ",width=" + width // Windowz Width
winparams = winparams + ",height=" + height // Windowz Height
winparams = winparams + ",directory=no" // The Tool Bars Menu
winparams = winparams + ",status=no" //
winparams = winparams + ",location=no" //
winparams = winparams + ",toolbar=no" // -------------------
// Open window
ThoR = window.open(theUrl,WinName,winparams);
// Active window
//ThoR.focus();
}
Il sistema si arresta ma l'unità centrale non si spegne Autore: angelo.p94 |
Forum: Sistemi Operativi Windows Risposte: 1 |
il sistema si arresta ma l'unità centrale non si spegne Autore: angelo.p94 |
Forum: Assistenza Hardware Risposte: 1 |
Visitano il forum: Nessuno e 67 ospiti