L'éditeur JavaScript
Visiteur non-identifié | Identifiez-vous | Devenir membre
Code perdu ? | Combien de visiteurs sur votre site ?
Rechercher :
Page d'accueil
     Home Page

JavaScript
     Tous les scripts
     Proposer un script
     Recherche de script
     AJAX new!
     Cours de JavaScript
     Liste de discussion
     Forums

Services :
     CountUs
     myCircle

     Referencement
     Créat. de bannière

Trucs et astuces :
     HTML / CSS
     PHP / MySQL
     Réferencement
     Graph / Présentation
     Toutes les astuces
     Ajouter un article

MailingList :
103421 abonnés

Annuaire webmaster :      Hebergement web
     Referencement
     Sites webmasters
     XHTML - CSS2
     PHP
     Affiliation - Pub
     FAI

     Annuaire webmaster

Ressources pour webmasters :
     Kits graphiques
     Création logo

Plus :
     Comparateur de prix
     Foire aux questions
     Les membres
     Devenir annonceur
     Faire un lien
     Contact

Partenaire :
     Hebergement gratuit
     Le PHP facile
     Horoscope
     Comscripts
     WebmasterClub
     Activeartanima...
     Le village de ...
     Faro-dessing
     L'écriteau
     Gifs animés, f...
     Easy-script.com
     Netsources
     Créer son site...
     Création de site
     K i s s design
     Les autres
     Votre site ici ?


Le forum ] [ Préférences ] [ Nouveau sujet ] [ Répondre ] [ Recherche ] [ Vos sujets ] [ Tous lus ] [ Flux RSS ]


[ Forums >> JavaScript >> Problèmes de création JavaScript / DHTML >> À propos de mon script de popup-iframe ]

> À propos de mon script de popup-iframe
[ Posté par @ NBF ] [ Détails ] [ Contact ] [ Citer ]
[ Posté le 23-08-2005 à 07:25 | 361 messages ]

Bon, désolé, ça fait un petit bout que je n'ai pas touché à mon ordinateur et je viens de remarquer ces annotations et j'avais aussi reçu aussi un message que j'ai perdu je-ne-sais-trop-comment que quelqu'un m'avait envoyé dans le mois d'août, le 17 je crois. Voici donc la dernière version :

<!-- Script par @ NBF, membre de l'Éditeur JavaScript -->
<html>
<head>
<script language="Javascript">
var clic = 0;
var dif_x = new Array("0","0","0","0","0","0");
var dif_y = new Array("0","0","0","0","0","0");
var pos_x = new Array("25","325","625","25","325","625");
var pos_y = new Array("25","25","25","325","325","325");
var quel = 0;
var timer = 0;
var resize = 0;
var time;
var w;
var h;

function dif()
{
dif_x[quel] = parseInt(event.clientX) - parseInt(document.getElementById("box"+quel).style.left);
dif_y[quel] = parseInt(event.clientY) - parseInt(document.getElementById("box"+quel).style.top);
}

function bouger()
{
if(clic == 1)
{
pos_x[quel] = parseInt(event.clientX) - parseInt(dif_x[quel]);
pos_y[quel] = parseInt(event.clientY) - parseInt(dif_y[quel]);
if(pos_x[quel] < 0){pos_x[quel] = 0; dif_x[quel] = parseInt(event.clientX) - parseInt(document.getElementById("box"+quel).style.left); if(dif_x[quel] < 0){dif_x[quel] = 0;};}
if(pos_y[quel] < 0){pos_y[quel] = 0; dif_y[quel] = parseInt(event.clientY) - parseInt(document.getElementById("box"+quel).style.top); if(dif_y[quel] < 0){dif_y[quel] = 0;};}
document.getElementById("box"+quel).style.left = pos_x[quel];
document.getElementById("box"+quel).style.top = pos_y[quel];
}
}
function gererfocus()
{
for(n = 0; n < 6; n++)
{
if(document.getElementById("box"+n).style.zIndex > document.getElementById("box"+quel).style.zIndex){document.getElementById("box"+n).style.zIndex--;}
}
}

function redim(s)
{
if(timer == 1)
{
if(s == 1)
{
h = parseInt(document.getElementById("box"+quel).style.height);
h -= 2;
if(h < 1){h = 0;}
if(h >= window.screen.availHeight){h = window.screen.availHeight;}
document.getElementById("box"+quel).style.height = h + "px";
document.getElementById("f"+quel).style.height = h + "px";
}
if(s == 2)
{
h = parseInt(document.getElementById("box"+quel).style.height);
h += 2;
if(h < 1){h = 0;}
if(h >= window.screen.availHeight){h = window.screen.availHeight;}
document.getElementById("box"+quel).style.height = h + "px";
document.getElementById("f"+quel).style.height = h + "px";
}
if(s == 3)
{
w = parseInt(document.getElementById("box"+quel).style.width);
w -= 2;
if(w < 125){w = 125;}
if(w >= window.screen.availWidth){w = window.screen.availWidth;}
document.getElementById("box"+quel).style.width = w + "px";
document.getElementById("f"+quel).style.width = w + "px";
}
if(s == 4)
{
w = parseInt(document.getElementById("box"+quel).style.width);
w += 2;
if(w < 125){w = 125;}
if(w >= window.screen.availWidth){w = window.screen.availWidth;}
document.getElementById("box"+quel).style.width = w + "px";
document.getElementById("f"+quel).style.width = w + "px";
}
if(s == 5)
{
document.getElementById("box"+quel).style.height = 0 + "px";
document.getElementById("f"+quel).style.height = 0 + "px";
}
if(s == 6)
{
document.getElementById("box"+quel).style.width = window.screen.availWidth + "px";
document.getElementById("box"+quel).style.height = window.screen.availHeight + "px";
document.getElementById("f"+quel).style.width = window.screen.availWidth + "px";
document.getElementById("f"+quel).style.height = window.screen.availHeight + "px";
document.getElementById("box"+quel).style.top = 0;
document.getElementById("box"+quel).style.left = 0;
pos_x[quel] = 0;
pos_y[quel] = 0;
resize = 1;
}
if(s == 7)
{
document.getElementById("box"+quel).style.display = "none";
};
}
if(timer == 0){clearInterval(time);}
}
</script>
</head>
<body onmouseup="clic = 0" onmousemove="bouger();">
<div ID="box0" onmouseover="resize = 0" onselectstart="return false" ondragstart="return false" style="position:absolute;top:25;left:25;border:1px solid #afafaf;height:250;width:250;background-color:#f0f0f0;cursor:hand;z-index:6" onmouseup="clic = 0;" onmousedown="quel = 0; gererfocus(); document.getElementById('box0').style.zIndex = 6; (resize == 0) ? clic = 1 : clic = 0; dif();"><input type="button" value="A" onmouseup="timer = 0" onmousedown="quel = 0; timer = 1; time = setInterval('redim(1)',10);"><input type="button" value="V" onmouseup="timer = 0" onmousedown="quel = 0; timer = 1; time = setInterval('redim(2)',10);"><input type="button" value="<" onmouseup="timer = 0" onmousedown="quel = 0; timer = 1; time = setInterval('redim(3)',10);"><input type="button" value=">" onmouseup="timer = 0" onmousedown="quel = 0; timer = 1; time = setInterval('redim(4)',10);"><input type="button" value="_" onmousedown="quel = 0; timer = 1; redim(5);" onmouseup="timer = 0;"><input type="button" value="[]" onmousedown="quel = 0; timer = 1; redim(6);" onmouseup="timer = 0;"><input type="button" value="X" onmousedown="quel = 0; timer = 1; redim(7);" onmouseup="timer = 0"> Fenêtre-iframe 0<br><iframe src="http://www.google.ca" style="height:225;width:250;position:absolute;top:25;" ID="f0"></iframe></div>
<div ID="box1" onmouseover="resize = 0" onselectstart="return false" ondragstart="return false" style="position:absolute;top:25;left:325;border:1px solid #afafaf;height:250;width:250;background-color:#f0f0f0;cursor:hand;z-index:5" onmouseup="clic = 0;" onmousedown="quel = 1; gererfocus(); document.getElementById('box1').style.zIndex = 6; (resize == 0) ? clic = 1 : clic = 0; dif();"><input type="button" value="A" onmouseup="timer = 0" onmousedown="quel = 1; timer = 1; time = setInterval('redim(1)',10);"><input type="button" value="V" onmouseup="timer = 0" onmousedown="quel = 1; timer = 1; time = setInterval('redim(2)',10);"><input type="button" value="<" onmouseup="timer = 0" onmousedown="quel = 1; timer = 1; time = setInterval('redim(3)',10);"><input type="button" value=">" onmouseup="timer = 0" onmousedown="quel = 1; timer = 1; time = setInterval('redim(4)',10);"><input type="button" value="_" onmousedown="quel = 1; timer = 1; redim(5);" onmouseup="timer = 0;"><input type="button" value="[]" onmousedown="quel = 1; timer = 1; redim(6);" onmouseup="timer = 0;"><input type="button" value="X" onmousedown="quel = 1; timer = 1; redim(7);" onmouseup="timer = 0"> Fenêtre-iframe 1<br><iframe src="http://www.google.ca" style="height:225;width:250;position:absolute;top:25;" ID="f1"></iframe></div>
<div ID="box2" onmouseover="resize = 0" onselectstart="return false" ondragstart="return false" style="position:absolute;top:25;left:625;border:1px solid #afafaf;height:250;width:250;background-color:#f0f0f0;cursor:hand;z-index:4" onmouseup="clic = 0;" onmousedown="quel = 2; gererfocus(); document.getElementById('box2').style.zIndex = 6; (resize == 0) ? clic = 1 : clic = 0; dif();"><input type="button" value="A" onmouseup="timer = 0" onmousedown="quel = 2; timer = 1; time = setInterval('redim(1)',10);"><input type="button" value="V" onmouseup="timer = 0" onmousedown="quel = 2; timer = 1; time = setInterval('redim(2)',10);"><input type="button" value="<" onmouseup="timer = 0" onmousedown="quel = 2; timer = 1; time = setInterval('redim(3)',10);"><input type="button" value=">" onmouseup="timer = 0" onmousedown="quel = 2; timer = 1; time = setInterval('redim(4)',10);"><input type="button" value="_" onmousedown="quel = 2; timer = 1; redim(5);" onmouseup="timer = 0;"><input type="button" value="[]" onmousedown="quel = 2; timer = 1; redim(6);" onmouseup="timer = 0;"><input type="button" value="X" onmousedown="quel = 2; timer = 1; redim(7);" onmouseup="timer = 0"> Fenêtre-iframe 2<br><iframe src="http://www.google.ca" style="height:225;width:250;position:absolute;top:25;" ID="f2"></iframe></div>
<div ID="box3" onmouseover="resize = 0" onselectstart="return false" ondragstart="return false" style="position:absolute;top:325;left:25;border:1px solid #afafaf;height:250;width:250;background-color:#f0f0f0;cursor:hand;z-index:3" onmouseup="clic = 0;" onmousedown="quel = 3; gererfocus(); document.getElementById('box3').style.zIndex = 6; (resize == 0) ? clic = 1 : clic = 0; dif();"><input type="button" value="A" onmouseup="timer = 0" onmousedown="quel = 3; timer = 1; time = setInterval('redim(1)',10);"><input type="button" value="V" onmouseup="timer = 0" onmousedown="quel = 3; timer = 1; time = setInterval('redim(2)',10);"><input type="button" value="<" onmouseup="timer = 0" onmousedown="quel = 3; timer = 1; time = setInterval('redim(3)',10);"><input type="button" value=">" onmouseup="timer = 0" onmousedown="quel = 3; timer = 1; time = setInterval('redim(4)',10);"><input type="button" value="_" onmousedown="quel = 3; timer = 1; redim(5);" onmouseup="timer = 0;"><input type="button" value="[]" onmousedown="quel = 3; timer = 1; redim(6);" onmouseup="timer = 0;"><input type="button" value="X" onmousedown="quel = 3; timer = 1; redim(7);" onmouseup="timer = 0"> Fenêtre-iframe 3<br><iframe src="http://www.google.ca" style="height:225;width:250;position:absolute;top:25;" ID="f3"></iframe></div>
<div ID="box4" onmouseover="resize = 0" onselectstart="return false" ondragstart="return false" style="position:absolute;top:325;left:325;border:1px solid #afafaf;height:250;width:250;background-color:#f0f0f0;cursor:hand;z-index:2" onmouseup="clic = 0;" onmousedown="quel = 4; gererfocus(); document.getElementById('box4').style.zIndex = 6; (resize == 0) ? clic = 1 : clic = 0; dif();"><input type="button" value="A" onmouseup="timer = 0" onmousedown="quel = 4; timer = 1; time = setInterval('redim(1)',10);"><input type="button" value="V" onmouseup="timer = 0" onmousedown="quel = 4; timer = 1; time = setInterval('redim(2)',10);"><input type="button" value="<" onmouseup="timer = 0" onmousedown="quel = 4; timer = 1; time = setInterval('redim(3)',10);"><input type="button" value=">" onmouseup="timer = 0" onmousedown="quel = 4; timer = 1; time = setInterval('redim(4)',10);"><input type="button" value="_" onmousedown="quel = 4; timer = 1; redim(5);" onmouseup="timer = 0;"><input type="button" value="[]" onmousedown="quel = 4; timer = 1; redim(6);" onmouseup="timer = 0;"><input type="button" value="X" onmousedown="quel = 4; timer = 1; redim(7);" onmouseup="timer = 0"> Fenêtre-iframe 4<br><iframe src="http://www.google.ca" style="height:225;width:250;position:absolute;top:25;" ID="f4"></iframe></div>
<div ID="box5" onmouseover="resize = 0" onselectstart="return false" ondragstart="return false" style="position:absolute;top:325;left:625;border:1px solid #afafaf;height:250;width:250;background-color:#f0f0f0;cursor:hand;z-index:1" onmouseup="clic = 0;" onmousedown="quel = 5; gererfocus(); document.getElementById('box5').style.zIndex = 6; (resize == 0) ? clic = 1 : clic = 0; dif();"><input type="button" value="A" onmouseup="timer = 0" onmousedown="quel = 5; timer = 1; time = setInterval('redim(1)',10);"><input type="button" value="V" onmouseup="timer = 0" onmousedown="quel = 5; timer = 1; time = setInterval('redim(2)',10);"><input type="button" value="<" onmouseup="timer = 0" onmousedown="quel = 5; timer = 1; time = setInterval('redim(3)',10);"><input type="button" value=">" onmouseup="timer = 0" onmousedown="quel = 5; timer = 1; time = setInterval('redim(4)',10);"><input type="button" value="_" onmousedown="quel = 5; timer = 1; redim(5);" onmouseup="timer = 0;"><input type="button" value="[]" onmousedown="quel = 5; timer = 1; redim(6);" onmouseup="timer = 0;"><input type="button" value="X" onmousedown="quel = 5; timer = 1; redim(7);" onmouseup="timer = 0"> Fenêtre-iframe 5<br><iframe src="http://www.google.ca" style="height:225;width:250;position:absolute;top:25;" ID="f5"></iframe></div>
</body>
</html>


Certains ne savaient pas comment n'avoir qu'une seule popup-iframe, l'erreur qu'il y avait c'est qu'en supprimant les 5 autres, ma function qui gère le focus devient inutile et problématique, alors pour une seule popup-iframe, il faut ce script :

<!-- Script par @ NBF, membre de l'Éditeur JavaScript -->
<html>
<head>
<script language="Javascript">
var clic = 0;
var dif_x = new Array("0","0","0","0","0","0");
var dif_y = new Array("0","0","0","0","0","0");
var pos_x = new Array("25","325","625","25","325","625");
var pos_y = new Array("25","25","25","325","325","325");
var quel = 0;
var timer = 0;
var resize = 0;
var time;
var w;
var h;

function dif()
{
dif_x[quel] = parseInt(event.clientX) - parseInt(document.getElementById("box"+quel).style.left);
dif_y[quel] = parseInt(event.clientY) - parseInt(document.getElementById("box"+quel).style.top);
}

function bouger()
{
if(clic == 1)
{
pos_x[quel] = parseInt(event.clientX) - parseInt(dif_x[quel]);
pos_y[quel] = parseInt(event.clientY) - parseInt(dif_y[quel]);
if(pos_x[quel] < 0){pos_x[quel] = 0; dif_x[quel] = parseInt(event.clientX) - parseInt(document.getElementById("box"+quel).style.left); if(dif_x[quel] < 0){dif_x[quel] = 0;};}
if(pos_y[quel] < 0){pos_y[quel] = 0; dif_y[quel] = parseInt(event.clientY) - parseInt(document.getElementById("box"+quel).style.top); if(dif_y[quel] < 0){dif_y[quel] = 0;};}
document.getElementById("box"+quel).style.left = pos_x[quel];
document.getElementById("box"+quel).style.top = pos_y[quel];
}
}

function redim(s)
{
if(timer == 1)
{
if(s == 1)
{
h = parseInt(document.getElementById("box"+quel).style.height);
h -= 2;
if(h < 1){h = 0;}
if(h >= window.screen.availHeight){h = window.screen.availHeight;}
document.getElementById("box"+quel).style.height = h + "px";
document.getElementById("f"+quel).style.height = h + "px";
}
if(s == 2)
{
h = parseInt(document.getElementById("box"+quel).style.height);
h += 2;
if(h < 1){h = 0;}
if(h >= window.screen.availHeight){h = window.screen.availHeight;}
document.getElementById("box"+quel).style.height = h + "px";
document.getElementById("f"+quel).style.height = h + "px";
}
if(s == 3)
{
w = parseInt(document.getElementById("box"+quel).style.width);
w -= 2;
if(w < 125){w = 125;}
if(w >= window.screen.availWidth){w = window.screen.availWidth;}
document.getElementById("box"+quel).style.width = w + "px";
document.getElementById("f"+quel).style.width = w + "px";
}
if(s == 4)
{
w = parseInt(document.getElementById("box"+quel).style.width);
w += 2;
if(w < 125){w = 125;}
if(w >= window.screen.availWidth){w = window.screen.availWidth;}
document.getElementById("box"+quel).style.width = w + "px";
document.getElementById("f"+quel).style.width = w + "px";
}
if(s == 5)
{
document.getElementById("box"+quel).style.height = 0 + "px";
document.getElementById("f"+quel).style.height = 0 + "px";
}
if(s == 6)
{
document.getElementById("box"+quel).style.width = window.screen.availWidth + "px";
document.getElementById("box"+quel).style.height = window.screen.availHeight + "px";
document.getElementById("f"+quel).style.width = window.screen.availWidth + "px";
document.getElementById("f"+quel).style.height = window.screen.availHeight + "px";
document.getElementById("box"+quel).style.top = 0;
document.getElementById("box"+quel).style.left = 0;
pos_x[quel] = 0;
pos_y[quel] = 0;
resize = 1;
}
if(s == 7)
{
document.getElementById("box"+quel).style.display = "none";
};
}
if(timer == 0){clearInterval(time);}
}
</script>
</head>
<body onmouseup="clic = 0" onmousemove="bouger();">
<div ID="box0" onmouseover="resize = 0" onselectstart="return false" ondragstart="return false" style="position:absolute;top:25;left:25;border:1px solid #afafaf;height:250;width:250;background-color:#f0f0f0;cursor:hand;z-index:6" onmouseup="clic = 0;" onmousedown="quel = 0; (resize == 0) ? clic = 1 : clic = 0; dif();"><input type="button" value="A" onmouseup="timer = 0" onmousedown="quel = 0; timer = 1; time = setInterval('redim(1)',10);"><input type="button" value="V" onmouseup="timer = 0" onmousedown="quel = 0; timer = 1; time = setInterval('redim(2)',10);"><input type="button" value="<" onmouseup="timer = 0" onmousedown="quel = 0; timer = 1; time = setInterval('redim(3)',10);"><input type="button" value=">" onmouseup="timer = 0" onmousedown="quel = 0; timer = 1; time = setInterval('redim(4)',10);"><input type="button" value="_" onmousedown="quel = 0; timer = 1; redim(5);" onmouseup="timer = 0;"><input type="button" value="[]" onmousedown="quel = 0; timer = 1; redim(6);" onmouseup="timer = 0;"><input type="button" value="X" onmousedown="quel = 0; timer = 1; redim(7);" onmouseup="timer = 0"> Fenêtre-iframe 0<br><iframe src="http://www.google.ca" style="height:225;width:250;position:absolute;top:25;" ID="f0"></iframe></div>
</body>
</html>


(Modifié assez rapidement, il y a plusieurs choses qui deviennent inutile lorsqu'on utilise qu'une seule popup-iframe comme par exemple, la variable quel, le fait d'utiliser des tableaux pour le positionnement, etc)

Je crois que le message que j'ai reçu traitait à savoir comment faire changer de site sur les popup-iframe à partir de la page principale, alors j'offre ce script :

<!-- Script par @ NBF, membre de l'Éditeur JavaScript -->
<html>
<head>
<script language="Javascript">
var clic = 0;
var dif_x = new Array("0","0","0","0","0","0");
var dif_y = new Array("0","0","0","0","0","0");
var pos_x = new Array("25","325","625","25","325","625");
var pos_y = new Array("25","25","25","325","325","325");
var quel = 0;
var timer = 0;
var resize = 0;
var time;
var w;
var h;

function dif()
{
dif_x[quel] = parseInt(event.clientX) - parseInt(document.getElementById("box"+quel).style.left);
dif_y[quel] = parseInt(event.clientY) - parseInt(document.getElementById("box"+quel).style.top);
}

function bouger()
{
if(clic == 1)
{
pos_x[quel] = parseInt(event.clientX) - parseInt(dif_x[quel]);
pos_y[quel] = parseInt(event.clientY) - parseInt(dif_y[quel]);
if(pos_x[quel] < 0){pos_x[quel] = 0; dif_x[quel] = parseInt(event.clientX) - parseInt(document.getElementById("box"+quel).style.left); if(dif_x[quel] < 0){dif_x[quel] = 0;};}
if(pos_y[quel] < 0){pos_y[quel] = 0; dif_y[quel] = parseInt(event.clientY) - parseInt(document.getElementById("box"+quel).style.top); if(dif_y[quel] < 0){dif_y[quel] = 0;};}
document.getElementById("box"+quel).style.left = pos_x[quel];
document.getElementById("box"+quel).style.top = pos_y[quel];
}
}
function gererfocus()
{
for(n = 0; n < 6; n++)
{
if(document.getElementById("box"+n).style.zIndex > document.getElementById("box"+quel).style.zIndex){document.getElementById("box"+n).style.zIndex--;}
}
}

function redim(s)
{
if(timer == 1)
{
if(s == 1)
{
h = parseInt(document.getElementById("box"+quel).style.height);
h -= 2;
if(h < 1){h = 0;}
if(h >= window.screen.availHeight){h = window.screen.availHeight;}
document.getElementById("box"+quel).style.height = h + "px";
document.getElementById("f"+quel).style.height = h + "px";
}
if(s == 2)
{
h = parseInt(document.getElementById("box"+quel).style.height);
h += 2;
if(h < 1){h = 0;}
if(h >= window.screen.availHeight){h = window.screen.availHeight;}
document.getElementById("box"+quel).style.height = h + "px";
document.getElementById("f"+quel).style.height = h + "px";
}
if(s == 3)
{
w = parseInt(document.getElementById("box"+quel).style.width);
w -= 2;
if(w < 125){w = 125;}
if(w >= window.screen.availWidth){w = window.screen.availWidth;}
document.getElementById("box"+quel).style.width = w + "px";
document.getElementById("f"+quel).style.width = w + "px";
}
if(s == 4)
{
w = parseInt(document.getElementById("box"+quel).style.width);
w += 2;
if(w < 125){w = 125;}
if(w >= window.screen.availWidth){w = window.screen.availWidth;}
document.getElementById("box"+quel).style.width = w + "px";
document.getElementById("f"+quel).style.width = w + "px";
}
if(s == 5)
{
document.getElementById("box"+quel).style.height = 0 + "px";
document.getElementById("f"+quel).style.height = 0 + "px";
}
if(s == 6)
{
document.getElementById("box"+quel).style.width = window.screen.availWidth + "px";
document.getElementById("box"+quel).style.height = window.screen.availHeight + "px";
document.getElementById("f"+quel).style.width = window.screen.availWidth + "px";
document.getElementById("f"+quel).style.height = window.screen.availHeight + "px";
document.getElementById("box"+quel).style.top = 0;
document.getElementById("box"+quel).style.left = 0;
pos_x[quel] = 0;
pos_y[quel] = 0;
resize = 1;
}
if(s == 7)
{
document.getElementById("box"+quel).style.display = "none";
};
}
if(timer == 0){clearInterval(time);}
}

function changesite(quel)
{
document.getElementById("f"+quel).src = "http://www.editeurjavascript.com";
}
</script>
</head>
<body onmouseup="clic = 0" onmousemove="bouger();">
<input type="button" value="Changer de site pour la fenêtre-iframe 0" onclick="changesite(0)"><br><br>
<input type="button" value="Changer de site pour la fenêtre-iframe 1" onclick="changesite(1)"><br><br>
<input type="button" value="Changer de site pour la fenêtre-iframe 2" onclick="changesite(2)"><br><br>
<input type="button" value="Changer de site pour la fenêtre-iframe 3" onclick="changesite(3)"><br><br>
<input type="button" value="Changer de site pour la fenêtre-iframe 4" onclick="changesite(4)"><br><br>
<input type="button" value="Changer de site pour la fenêtre-iframe 5" onclick="changesite(5)">
<div ID="box0" onmouseover="resize = 0" onselectstart="return false" ondragstart="return false" style="position:absolute;top:25;left:25;border:1px solid #afafaf;height:250;width:250;background-color:#f0f0f0;cursor:hand;z-index:6" onmouseup="clic = 0;" onmousedown="quel = 0; gererfocus(); document.getElementById('box0').style.zIndex = 6; (resize == 0) ? clic = 1 : clic = 0; dif();"><input type="button" value="A" onmouseup="timer = 0" onmousedown="quel = 0; timer = 1; time = setInterval('redim(1)',10);"><input type="button" value="V" onmouseup="timer = 0" onmousedown="quel = 0; timer = 1; time = setInterval('redim(2)',10);"><input type="button" value="<" onmouseup="timer = 0" onmousedown="quel = 0; timer = 1; time = setInterval('redim(3)',10);"><input type="button" value=">" onmouseup="timer = 0" onmousedown="quel = 0; timer = 1; time = setInterval('redim(4)',10);"><input type="button" value="_" onmousedown="quel = 0; timer = 1; redim(5);" onmouseup="timer = 0;"><input type="button" value="[]" onmousedown="quel = 0; timer = 1; redim(6);" onmouseup="timer = 0;"><input type="button" value="X" onmousedown="quel = 0; timer = 1; redim(7);" onmouseup="timer = 0"> Fenêtre-iframe 0<br><iframe src="http://www.google.ca" style="height:225;width:250;position:absolute;top:25;" ID="f0"></iframe></div>
<div ID="box1" onmouseover="resize = 0" onselectstart="return false" ondragstart="return false" style="position:absolute;top:25;left:325;border:1px solid #afafaf;height:250;width:250;background-color:#f0f0f0;cursor:hand;z-index:5" onmouseup="clic = 0;" onmousedown="quel = 1; gererfocus(); document.getElementById('box1').style.zIndex = 6; (resize == 0) ? clic = 1 : clic = 0; dif();"><input type="button" value="A" onmouseup="timer = 0" onmousedown="quel = 1; timer = 1; time = setInterval('redim(1)',10);"><input type="button" value="V" onmouseup="timer = 0" onmousedown="quel = 1; timer = 1; time = setInterval('redim(2)',10);"><input type="button" value="<" onmouseup="timer = 0" onmousedown="quel = 1; timer = 1; time = setInterval('redim(3)',10);"><input type="button" value=">" onmouseup="timer = 0" onmousedown="quel = 1; timer = 1; time = setInterval('redim(4)',10);"><input type="button" value="_" onmousedown="quel = 1; timer = 1; redim(5);" onmouseup="timer = 0;"><input type="button" value="[]" onmousedown="quel = 1; timer = 1; redim(6);" onmouseup="timer = 0;"><input type="button" value="X" onmousedown="quel = 1; timer = 1; redim(7);" onmouseup="timer = 0"> Fenêtre-iframe 1<br><iframe src="http://www.google.ca" style="height:225;width:250;position:absolute;top:25;" ID="f1"></iframe></div>
<div ID="box2" onmouseover="resize = 0" onselectstart="return false" ondragstart="return false" style="position:absolute;top:25;left:625;border:1px solid #afafaf;height:250;width:250;background-color:#f0f0f0;cursor:hand;z-index:4" onmouseup="clic = 0;" onmousedown="quel = 2; gererfocus(); document.getElementById('box2').style.zIndex = 6; (resize == 0) ? clic = 1 : clic = 0; dif();"><input type="button" value="A" onmouseup="timer = 0" onmousedown="quel = 2; timer = 1; time = setInterval('redim(1)',10);"><input type="button" value="V" onmouseup="timer = 0" onmousedown="quel = 2; timer = 1; time = setInterval('redim(2)',10);"><input type="button" value="<" onmouseup="timer = 0" onmousedown="quel = 2; timer = 1; time = setInterval('redim(3)',10);"><input type="button" value=">" onmouseup="timer = 0" onmousedown="quel = 2; timer = 1; time = setInterval('redim(4)',10);"><input type="button" value="_" onmousedown="quel = 2; timer = 1; redim(5);" onmouseup="timer = 0;"><input type="button" value="[]" onmousedown="quel = 2; timer = 1; redim(6);" onmouseup="timer = 0;"><input type="button" value="X" onmousedown="quel = 2; timer = 1; redim(7);" onmouseup="timer = 0"> Fenêtre-iframe 2<br><iframe src="http://www.google.ca" style="height:225;width:250;position:absolute;top:25;" ID="f2"></iframe></div>
<div ID="box3" onmouseover="resize = 0" onselectstart="return false" ondragstart="return false" style="position:absolute;top:325;left:25;border:1px solid #afafaf;height:250;width:250;background-color:#f0f0f0;cursor:hand;z-index:3" onmouseup="clic = 0;" onmousedown="quel = 3; gererfocus(); document.getElementById('box3').style.zIndex = 6; (resize == 0) ? clic = 1 : clic = 0; dif();"><input type="button" value="A" onmouseup="timer = 0" onmousedown="quel = 3; timer = 1; time = setInterval('redim(1)',10);"><input type="button" value="V" onmouseup="timer = 0" onmousedown="quel = 3; timer = 1; time = setInterval('redim(2)',10);"><input type="button" value="<" onmouseup="timer = 0" onmousedown="quel = 3; timer = 1; time = setInterval('redim(3)',10);"><input type="button" value=">" onmouseup="timer = 0" onmousedown="quel = 3; timer = 1; time = setInterval('redim(4)',10);"><input type="button" value="_" onmousedown="quel = 3; timer = 1; redim(5);" onmouseup="timer = 0;"><input type="button" value="[]" onmousedown="quel = 3; timer = 1; redim(6);" onmouseup="timer = 0;"><input type="button" value="X" onmousedown="quel = 3; timer = 1; redim(7);" onmouseup="timer = 0"> Fenêtre-iframe 3<br><iframe src="http://www.google.ca" style="height:225;width:250;position:absolute;top:25;" ID="f3"></iframe></div>
<div ID="box4" onmouseover="resize = 0" onselectstart="return false" ondragstart="return false" style="position:absolute;top:325;left:325;border:1px solid #afafaf;height:250;width:250;background-color:#f0f0f0;cursor:hand;z-index:2" onmouseup="clic = 0;" onmousedown="quel = 4; gererfocus(); document.getElementById('box4').style.zIndex = 6; (resize == 0) ? clic = 1 : clic = 0; dif();"><input type="button" value="A" onmouseup="timer = 0" onmousedown="quel = 4; timer = 1; time = setInterval('redim(1)',10);"><input type="button" value="V" onmouseup="timer = 0" onmousedown="quel = 4; timer = 1; time = setInterval('redim(2)',10);"><input type="button" value="<" onmouseup="timer = 0" onmousedown="quel = 4; timer = 1; time = setInterval('redim(3)',10);"><input type="button" value=">" onmouseup="timer = 0" onmousedown="quel = 4; timer = 1; time = setInterval('redim(4)',10);"><input type="button" value="_" onmousedown="quel = 4; timer = 1; redim(5);" onmouseup="timer = 0;"><input type="button" value="[]" onmousedown="quel = 4; timer = 1; redim(6);" onmouseup="timer = 0;"><input type="button" value="X" onmousedown="quel = 4; timer = 1; redim(7);" onmouseup="timer = 0"> Fenêtre-iframe 4<br><iframe src="http://www.google.ca" style="height:225;width:250;position:absolute;top:25;" ID="f4"></iframe></div>
<div ID="box5" onmouseover="resize = 0" onselectstart="return false" ondragstart="return false" style="position:absolute;top:325;left:625;border:1px solid #afafaf;height:250;width:250;background-color:#f0f0f0;cursor:hand;z-index:1" onmouseup="clic = 0;" onmousedown="quel = 5; gererfocus(); document.getElementById('box5').style.zIndex = 6; (resize == 0) ? clic = 1 : clic = 0; dif();"><input type="button" value="A" onmouseup="timer = 0" onmousedown="quel = 5; timer = 1; time = setInterval('redim(1)',10);"><input type="button" value="V" onmouseup="timer = 0" onmousedown="quel = 5; timer = 1; time = setInterval('redim(2)',10);"><input type="button" value="<" onmouseup="timer = 0" onmousedown="quel = 5; timer = 1; time = setInterval('redim(3)',10);"><input type="button" value=">" onmouseup="timer = 0" onmousedown="quel = 5; timer = 1; time = setInterval('redim(4)',10);"><input type="button" value="_" onmousedown="quel = 5; timer = 1; redim(5);" onmouseup="timer = 0;"><input type="button" value="[]" onmousedown="quel = 5; timer = 1; redim(6);" onmouseup="timer = 0;"><input type="button" value="X" onmousedown="quel = 5; timer = 1; redim(7);" onmouseup="timer = 0"> Fenêtre-iframe 5<br><iframe src="http://www.google.ca" style="height:225;width:250;position:absolute;top:25;" ID="f5"></iframe></div>
</body>
</html>


Je suis désolé d'être difficile à rejoindre, je suis rarement devant mon ordinateur ces temps-ci, mais je vais m'efforcer de venir faire un tour chaque semaine, amusez-vous bien, à plus.

Je voulais mettre ça en annotation, mais j'ai eu des difficultés et je trouvais ça gros pour une annotation, désolé d'avoir fait un nouveau message

________________
[Message édité par @ NBF le 37-14-2008 à 29:62]



[ Posté par SquallLion ] [ Détails ] [ Contact ] [ Citer ]
[ Posté le 26-08-2005 à 14:50 | 69 messages ]

eu..... c'est quoi ton problème? o_O

________________
My desire is to help others




Services email :

Vous devez vous identifier pour profiter des services par email du forum.
Le forum ] [ Préférences ] [ Nouveau sujet ] [ Répondre ] [ Recherche ] [ Vos sujets ] [ Tous lus ] [ Flux RSS ]






17 visiteurs
actuellement en ligne

    PUBLICITE

Wilogo.com - Création Logo Entreprise

     ANNUAIRE WEBMAST.
Dell
Dell est le leader de la distribution de PC uniquement en ligne et par telephone.
http://www.dell.fr
Cat : Hardware
Voir l'annuaire webmaster


     LES SCRIPTS :
78 à éditer
68 à copier/coller
247 des membres
2580 sur le web
>> Tous les scripts

     LES MEMBRES :
55276 membres
8361 comptes CountUs
1485 comptes myCircle

     LES FORUMS :
14 forums
39236 topics
188869 messages
>> Les forums

    SONDAGE

Vous avez un blog ou site classique ?
Un blog
Un site classique
Les deux !
La mini-astuce "Navigateur" du jour par chrislebouler
La fonction agrandissement de texte existe sur tous les navigateurs. Le moyen le plus universel pour l'utiliser?... Ctrl + molette centrale de la souris.
Plusieurs avantages : pour IE pas besoin de l'onglet affichage, pour les Geckos agrandissement + progressif que l'option Ctrl ++.
Proposer votre mini-astuce | Archives des mini-astuces
© 1999-2008 K-NETWORK - Tous droits réservés | CNIL N° 844440 | 11/10/2008 10:16:32 | Design by Studcrea | Gen. en 0.436 sec.