
J'aurais besoin de savoir où se trouvent les paramètres pour diminuer la taille finale des images qui débordent de l'écran. (ou j'attend que tous le monde possède un écran de 22' !!!
). Merci
MON SITE ICI
Le code dessous
//-- <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
HTML
<HEAD>
<TITLE>...</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<STYLE TYPE="text/css">
BODY{
color:#0000f0;
font-size:13px;
font-family:Verdana;
background-color: #000000;
background-image: url(../marbre2.gif);
}
.M1 {color:#0000f0;font-size:13px;font-family:Verdana;text-align:center;}
body,td,th {
color: #CC0000;
}
.Style1 {
color: #FF00FF;
font-size: 50px;
}
#Layer1 {
position:absolute;
left:19px;
top:44px;
width:45px;
height:28px;
z-index:11;
background-color: #FFFF00;
}
#Layer2 {
position:absolute;
left:70px;
top:44px;
width:40px;
height:44px;
z-index:12;
background-color: #CCCCCC;
}
#Layer3 {
position:absolute;
left:116px;
top:44px;
width:40px;
height:44px;
z-index:13;
background-color: #CCCCCC;
}
.Style3 {font-size: 36px; font-weight: bold; }
#Layer4 {
position:absolute;
left:163px;
top:44px;
width:40px;
height:44px;
z-index:14;
background-color: #CCCCCC;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
#Layer5 {
position:absolute;
left:331px;
top:108px;
width:1003px;
height:737px;
z-index:1;
}
#Layer6 {
position:absolute;
left:244px;
top:190px;
width:537px;
height:645px;
z-index:0;
}
#Layer7 {
position:absolute;
left:732px;
top:79px;
width:331px;
height:647px;
z-index:1;
}
#Layer8 {
position:absolute;
left:652px;
top:196px;
width:192px;
height:149px;
z-index:3;
}
#Layer9 {
position:absolute;
left:868px;
top:588px;
width:130px;
height:73px;
z-index:15;
}
#Layer10 {
position:absolute;
left:1149px;
top:76px;
width:33px;
height:821px;
z-index:16;
background-color: #000000;
}
#Layer11 {
position:absolute;
left:242px;
top:835px;
width:926px;
height:26px;
z-index:17;
background-color: #000000;
}
</STYLE>
<script language="JavaScript">
var L_Deb;
var L_Fin;
var H_Deb;
var H_Fin;
var Compteur;
var Trame = 10;
var Delay = 100;
var DelayAuto = 1000;
var ModeAuto = false;
var ZoomImg;
var ZoomDiv;
var ID_Timer =0;
var Rap = new Point();
var Inc = new Point();
var Pos = new Point();
var PosFin = new Point();
var PosDeb = new Point();
var ImgTmp = new Image();
// Merçi la compatibilité
var DOM = (document.getElementById ? true : false);
var IE = (document.all && !DOM ? true : false);
var NS4 = (document.layers ? true : false);
var NAV_OK = ( DOM || IE || NS4);
var NETSCAPE = (navigator.appName == "Netscape");
//--------------------
function Point(x_, y_){
var Arg = arguments;
this.x = 0; this.y = 0;
if( Arg[1] != null) this.x = x_;
if( Arg[2] != null) this.y = y_;
}
//---------------------
function GetObjet(div_){
if( DOM) return document.getElementById(div_);
if( IE) return document.all[div_];
if( NS4) return document.layers[div_];
return(null);
}
//---------------------
function GetStyle(div_){
return (NS4 ? GetObjet(div_) : GetObjet(div_).style);
}
//------------------------
function ObjGetPosX( div_){
var Obj = null;
if( div_){
Obj = GetObjet( div_);
if( Obj)
return (NS4 ? Obj.pageX : Obj.offsetLeft);
}
return(null);
}
//------------------------
function ObjGetPosY( div_){
var Obj = null;
if( div_){
Obj = GetObjet( div_);
if( Obj)
return (NS4 ? Obj.pageY : Obj.offsetTop);
}
return(null);
}
//-----------------------------
function ObjWrite( div_, html_){
var Obj;
Obj = GetObjet( div_);
if( Obj) with( Obj){
if( !NS4){
innerHTML = html_;
}
else{
document.open();
document.write( html_);
document.close();
}
}
}
//---------------------------
function ObjGetLargeur( div_){
var Obj = null;
var Larg = 0;
Obj = GetObjet( div_);
if( Obj){
if( NETSCAPE){
if( NS4)
Larg= Obj.clip.width;
else
Larg= Obj.offsetWidth;
}
else
Larg= Obj.scrollWidth;
}
return( Larg);
}
//---------------------------
function ObjGetHauteur( div_){
var Obj = null;
var Haut = 0;
Obj = GetObjet( div_);
if( Obj){
if( NETSCAPE){
if( NS4)
Haut= Obj.clip.height;
else
Haut= Obj.offsetHeight;
}
else
Haut= Obj.scrollHeight;
}
return( Haut);
}
//-------------------------------
function ObjMoveTo( div_, x_, y_){
var Obj = null;
var Arg = arguments;
if( div_){
Obj = GetStyle( div_);
if( Obj){
if( NETSCAPE){
if( Arg[1] != null) Obj.left = x_;
if( Arg[2] != null) Obj.top = y_;
}
else{
if( Arg[1] != null) Obj.pixelLeft = x_;
if( Arg[2] != null) Obj.pixelTop = y_;
}
}
}
}
//---------------------
function ObjHide( div_){
var Obj = null;
if( div_){
Obj = GetStyle( div_);
if( Obj){
Obj.visibility= "hidden";
Obj.zIndex = 0;
}
}
return(true);
}
//-------------------------
function ObjShow( div_, z_){
var Obj = null;
if( div_){
Obj = GetStyle( div_);
if( Obj){
Obj.visibility = "visible";
if( arguments[1] != null)
Obj.zIndex = z_;
else
Obj.zIndex = 1;
}
}
return(true);
}
//-----------------------------
function ObjWrite( div_, html_){
var Obj;
Obj = GetObjet( div_);
if( Obj) with( Obj){
if( !NS4){
innerHTML = html_;
}
else{
document.open();
document.write( html_);
document.close();
}
}
}
//-----------------
function ZoomMoins(){
var Larg;
var Haut;
var Html ="";
Compteur--;
//-- Calcul nouveaux paramètres --
Pos.x = PosDeb.x +parseInt( Compteur *Inc.x);
Pos.y = PosDeb.y +parseInt( Compteur *Inc.y);
Larg = L_Deb +parseInt( Compteur *Rap.x);
Haut = H_Deb +parseInt( Compteur *Rap.y);
Html = '<TABLE BORDER=1 BGCOLOR="#ffffff"><TR><TD><IMG SRC="' +ZoomImg +'" HEIGHT='+ Haut +' WIDTH=' +Larg +'></TD></TR></TABLE>';
ObjWrite ( ZoomDiv, Html);
ObjMoveTo( ZoomDiv, Pos.x, Pos.y);
if( Larg > L_Deb)
ID_Timer = setTimeout( ZoomMoins, Delay);
else{
ObjHide ( ZoomDiv);
ObjWrite ( ZoomDiv,"");
}
}
//-----------------------
function StartZoomMoins(){
clearTimeout(ID_Timer);
ZoomMoins();
}
//-----------------
function ZoomPlus(){
var Larg;
var Haut;
var Html ="";
var Text ="";
Compteur++;
//-- Calcul nouveaux paramètres --
Pos.x = PosDeb.x +parseInt( Compteur *Inc.x);
Pos.y = PosDeb.y +parseInt( Compteur *Inc.y);
Larg = L_Deb +parseInt( Compteur *Rap.x);
Haut = H_Deb +parseInt( Compteur *Rap.y);
Html = '<TABLE BORDER=1 BGCOLOR="#000000"><TR><TD><IMG SRC="' +ZoomImg +'" HEIGHT='+ Haut +' WIDTH=' +Larg +'></TD></TR></TABLE>';
ObjWrite ( ZoomDiv, Html);
ObjMoveTo( ZoomDiv, Pos.x, Pos.y);
ObjShow ( ZoomDiv, 1);
if( Larg < L_Fin -1)
ID_Timer = setTimeout( ZoomPlus, Delay);
else{
Text = '<IMG SRC="' +ZoomImg +'" border=0 ALT="Retour case départ...">';
if( !ModeAuto)
Html = '<TABLE BORDER=1 BGCOLOR="#ffffff"><TR><TD><a href="#" Onclick="StartZoomMoins()";>'+ Text +'</a></TD></TR></TABLE>';
else
Html = '<TABLE BORDER=1 BGCOLOR="#ffffff"><TR><TD>'+ Text +'</TD></TR></TABLE>';
ObjWrite ( ZoomDiv, Html);
ObjMoveTo( ZoomDiv, PosFin.x, PosFin.y);
window.status ="FIN";
if( ModeAuto)
ID_Timer= setTimeout( StartZoomMoins, DelayAuto);
}
}
//---------------------------------
function StartZoomPlus( div_, url_){
ZoomImg = url_;
ZoomDiv = div_;
clearTimeout(ID_Timer);
ZoomPlus();
}
//------------------
function GetPosFin(){
var Larg;
var Haut;
//-- Récup Position Image Finale --
Larg = ObjGetLargeur( 'FINAL');
Haut = ObjGetHauteur( 'FINAL');
PosFin.x = ObjGetPosX( 'FINAL') +Larg /2;
PosFin.y = ObjGetPosY( 'FINAL') +Haut /2;
//-- Tiens compte de la largeur du cadre
PosFin.x -= -800;
PosFin.y -= -400;
}
//------------------------------
function StartImage( div_, url_){
var Html ="";
ImgTmp.src = url_;
Compteur=0;
//-- Création Image dans DIV caché --
Html = '<IMG NAME="Result" ID="Result" SRC="' +url_ +'">';
ObjHide ( 'Temp');
ObjWrite ( 'Temp', Html);
//-- Récup Position Image Finale --
GetPosFin();
//-- Récup Position Image Départ --
PosDeb.x = ObjGetPosX( div_ );
PosDeb.y = ObjGetPosY( div_);
//-- Récup Taille Image Départ --
L_Deb = ObjGetLargeur( div_);
H_Deb = ObjGetHauteur( div_);
//-- Récup. taille Image Finale --
L_Fin = ObjGetLargeur( 'Temp');
H_Fin = ObjGetHauteur( 'Temp');
PosFin.x -= L_Fin/2;
PosFin.y -= H_Fin/2;
//-- Calcul paramètres déplacement --
Rap.x = (L_Fin - L_Deb) / Trame;
Rap.y = (H_Fin - H_Deb) / Trame;
Inc.x = (PosFin.x - PosDeb.x) / Trame;
Inc.y = (PosFin.y - PosDeb.y) / Trame;
//-- Lance le Zoom --
StartZoomPlus( 'Temp', url_);
}
</script>
</HEAD>
<BODY>
<div id="Layer1">
<div align="center" class="Style3">1</div>
</div>
<div id="Layer2">
<div align="center" class="Style3"><a href="page_vignettes_2.html">2</a></div>
</div>
<div id="Layer3">
<div align="center" class="Style3"><a href="page_vignettes_3.html">3</a></div>
</div>
<div class="Style3" id="Layer4">
<div align="center"><a href="page_vignettes_4.html">4</a></div>
</div>
<div id="Layer6">
<div align="center"><img src="../michel_ange_partg.gif" width="698" height="643" align="absmiddle"></div>
</div>
<div id="Layer7"><img src="../michel_ange_partd.gif" width="415" height="616"></div>
<div id="Layer9"><img src="../bruno_artiste.gif" width="111" height="50"></div>
<div id="Layer11"></div>
<div align="center">
<h1 class="Style1"><img src="../titre.gif" width="711" height="86"></h1>
</div>
<div ID="Temp" style="position:absolute;left:0px;top:0px;width:auto;height:auto;z-index:0;visibility:visible;">
<table widh=200><tr><td></td></tr></table>
</div>
<div ID="ID_01" style="position:absolute;left:19px;top:100px;width:auto;height:auto;z-index:10;visibility:visible;"><a href="#" onClick="StartImage( 'ID_01','img_001.jpg')";><img name="IMG" src="img_001.jpg" height=50 width=100 border=1 alt="On clique ça part..."></a></div>
<div ID="ID_02" style="position:absolute;left:19px;top:180px;width:auto;height:auto;z-index:10;visibility:visible;">
<a href="#" Onclick="StartImage( 'ID_02','img_002.jpg')";><img src="img_002.jpg" height=50 width=100 border=1 ALT="On clique ça part..."></a></div>
<div ID="ID_03" style="position:absolute;left:19px;top:260px;width:auto;height:auto;z-index:10;visibility:visible;"><a href="#" onClick="StartImage( 'ID_03','img_003.jpg')";><img src="img_003.jpg" height=50 width=100 border=1 alt="On clique ça part..."></a></div>
<div ID="ID_04" style="position:absolute;left:19px;top:340px;width:auto;height:auto;z-index:10;visibility:visible;">
<a href="#" Onclick="StartImage( 'ID_04','img_004.jpg')";><img src="img_004.jpg" height=50 width=100 border=1 ALT="On clique ça part..."></a></div>
<div ID="ID_05" style="position:absolute;left:19px;top:420px;width:auto;height:auto;z-index:10;visibility:visible;">
<a href="#" Onclick="StartImage( 'ID_5','img_005.jpg')";><img src="img_005.jpg" height=50 width=100 border=1 ALT="On clique ça part..."></a></div>
<div ID="ID_06" style="position:absolute;left:19px;top:500px;width:auto;height:auto;z-index:10;visibility:visible;">
<a href="#" Onclick="StartImage( 'ID_06','img_006.jpg')";><img src="img_006.jpg" height=50 width=100 border=1 ALT="On clique ça part..."></a></div>
<div ID="ID_07" style="position:absolute;left:19px;top:580px;width:auto;height:auto;z-index:10;visibility:visible;">
<a href="#" Onclick="StartImage( 'ID_07','img_007.jpg')";><img src="img_007.jpg" height=50 width=100 border=1 ALT="On clique ça part..."></a></div>
<div ID="ID_08" style="position:absolute;left:19px;top:660px;width:auto;height:auto;z-index:10;visibility:visible;">
<a href="#" Onclick="StartImage( 'ID_08','img_008.jpg')";><img src="img_008.jpg" height=50 width=100 border=1 ALT="On clique ça part..."></a></div>
<div ID="ID_09" style="position:absolute;left:19px;top:740px;width:auto;height:auto;z-index:10;visibility:visible;">
<a href="#" Onclick="StartImage( 'ID_09','img_009.jpg')";><img src="img_009.jpg" height=50 width=100 border=1 ALT="On clique ça part..."></a></div>
<div ID="ID_10" style="position:absolute;left:19px;top:820px;width:auto;height:auto;z-index:10;visibility:visible;">
<a href="#" Onclick="StartImage( 'ID_10','img_010.jpg')";><img src="img_010.jpg" height=50 width=100 border=1 ALT="On clique ça part..."></a></div>
<div ID="ID_11" style="position:absolute;left: 130px;top:100px;width:auto;height:auto;z-index:10;visibility:visible;">
<a href="#" Onclick="StartImage( 'ID_11','img_011.jpg')";><img src="img_011.jpg" height=50 width=100 border=1 ALT="On clique ça part..."></a></div>
<div ID="ID_12" style="position:absolute;left: 130px;top:180px;width:auto;height:auto;z-index:10;visibility:visible;">
<a href="#" Onclick="StartImage( 'ID_12','img_012.jpg')";><img src="img_012.jpg" height=50 width=100 border=1 ALT="On clique ça part..."></a></div>
<div ID="ID_13" style="position:absolute;left: 130px;top: 260px;width:auto;height:auto;z-index:10;visibility:visible;">
<a href="#" Onclick="StartImage( 'ID_13','img_013.jpg')";><img src="img_013.jpg" height=50 width=100 border=1 ALT="On clique ça part..."></a></div>
<div ID="ID_14" style="position:absolute;left: 130px;top: 340px;width:auto;height:auto;z-index:10;visibility:visible;">
<a href="#" Onclick="StartImage( 'ID_14','img_014.jpg')";><img src="img_014.jpg" height=50 width=100 border=1 ALT="On clique ça part..."></a></div>
<div ID="ID_15" style="position:absolute;left: 130px;top: 420px;width:auto;height:auto;z-index:10;visibility:visible;">
<a href="#" Onclick="StartImage( 'ID_15','img_015.jpg')";><img src="img_015.jpg" height=50 width=100 border=1 ALT="On clique ça part..."></a></div>
<div ID="ID_16" style="position:absolute;left: 130px;top:500px;width:auto;height:auto;z-index:10;visibility:visible;">
<a href="#" Onclick="StartImage( 'ID_16','img_016.jpg')";><img src="img_016.jpg" height=50 width=100 border=1 ALT="On clique ça part..."></a></div>
<div ID="ID_17" style="position:absolute;left: 130px;top:580px;width:auto;height:auto;z-index:10;visibility:visible;">
<a href="#" Onclick="StartImage( 'ID_17','img_017.jpg')";><img src="img_017.jpg" height=50 width=100 border=1 ALT="On clique ça part..."></a></div>
<div ID="ID_18" style="position:absolute;left: 130px;top:660px;width:auto;height:auto;z-index:10;visibility:visible;">
<a href="#" Onclick="StartImage( 'ID_18','img_018.jpg')";><img src="img_018.jpg" height=50 width=100 border=1 ALT="On clique ça part..."></a></div>
<div ID="ID_19" style="position:absolute;left: 130px;top:740px;width:auto;height:auto;z-index:10;visibility:visible;">
<a href="#" Onclick="StartImage( 'ID_19','img_019.jpg')";><img src="img_019.jpg" height=50 width=100 border=1 ALT="On clique ça part..."></a></div>
<div ID="ID_20" style="position:absolute;left:130px;top:820px;width:auto;height:auto;z-index:10;visibility:visible;">
<a href="#" Onclick="StartImage( 'ID_20','img_020.jpg')";><img src="img_020.jpg" height=50 width=100 border=1 ALT="On clique ça part..."></a></div>
</BODY>
</HTML>