|
mic83
| Inscrit le: 24 Jan 2006 |
| Messages: 1 |
|
|
 |
| Posté le: Mar 24 Jan 2006, 12:04 pm |
|
 |
 |
 |
 |
C'était pour savoir si il y avait un bon script pour ouvrir directement une page .htm zn plein écran et d'y afficher directement une video ? Merci
|
|
|
|
Redox
Modérateurs

| Inscrit le: 07 Sep 2004 |
| Messages: 973 |
|
|
 |
| Posté le: Mar 24 Jan 2006, 9:36 pm |
|
 |
 |
 |
 |
Bonjour,
Tu ne pourras directement, mais seulement en ouvrant une autre fenêtre au chargement de la page:
<html>
<head>
<title></title>
<script language="JavaScript" type="text/JavaScript">
<!-- Original: David Sosnowski (support@codelifter.com) -->
<!-- Web Site: http://www.codelifter.com -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
/*
In the url, it's generally best to use a *relative* address
to your content page with this script; otherwise, IE loses
its sense of "parentage" over the window, and may throw
errors on attempts to relaunch when the fullscreen window is
already open.
*/
// URL de la page a ouvrir en plein écran...
url = "entree.html";
// Vitesse de l'expansion horizontale
// Plus le chiffre est petit plus la vitesse est lente
var speedX = 7;
// Vitesse de l'expansion verticale
// Plus le chiffre est petit plus la vitesse est lente
var speedY = 5;
// Couleur du fond de l'écran pendant le chargement de la page
var bgColor = "#000000";
// Couleur du texte "Chargement en cours..." pendant le chargement de la page
var txtColor = "#FF80000";
// Ne rien éditer en dessous de cette ligne
// ---------------------------
if (document.all) {
var wide = window.screen.availWidth;
var high = window.screen.availHeight;
}
function andBoom() {
if (document.all) {
var Boomer = window.open("","BoomWindow","fullscreen");
Boomer.document.write('<HTML><BODY BGCOLOR='+bgColor+' SCROLL=NO><FONT FACE=ARIAL COLOR='+txtColor+'>Chargement en cours...</FONT></BODY></HTML>');
Boomer.focus();
for (H=1; H<high; H+= speedY) {
Boomer.resizeTo(1,H);
}
for (W=1; W<wide; W+= speedX) {
Boomer.resizeTo(W,H);
}
Boomer.location = url;
}
else {
window.open(url,"BoomWindow","");
}
}
// End -->
</script>
</head>
<body onLoad="andBoom()">
</body>
</html> |
 
|
|
|