.01
.02
.03
.04
.05
.06
.07
.08
.09
.10
.11
.12
.13
.14
.15
.16
.17
.18
.19
.20
.21
.22
.23
.24
.25
.26
.27
.28
.29
.30
.31
.32
.33
.34
.35
.36
.37
.38
.39
.40
.41
.42
.43
|
|
/*******************************************************************************
* *
* _ *
* (_)__ _______ *
* / (_-</ __(_-< *
* __/ /___/\__/___/ *
* |___/ *
* *
* *
********************************************************************************
* *
* Titre : Centrer une fenetre pop up *
* *
* URL : http://www.jscs.org/scripts4-JS.htm *
* Auteur : KOogar *
* Date édition : 23 Sept 2004 *
* *
*******************************************************************************/
<SCRIPT>
<!-- Centrer une fenetre pop up sur le navigateur
var win = null;
function fenetrecentree(mypage,myname,w,h,scroll) {
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',
scrollbars=no'+scroll+',resizable=0'
win = window.open(mypage,myname,settings)
if(win.window.focus){win.window.focus();}
}
setInterval("focuswin()",1000000);
self.focus();
function focuswin(){self.focus()};
<!-- Comment apeler la fonction
<!-- Remplacer par vos paramètres
<!-- fenetrecentree(mypage,myname,w,h,scroll);
</SCRIPT>
|