je n'y arrive pas
voici le code originale
ce qui est en bleu est ce que je veux supprimer et integrer directement le code
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="generator" content="HTML Tidy for Linux (vers 6 November 2007), see
www.w3.org">
<title>48</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta name="GENERATOR" content="MSHTML 8.00.6001.18372">
<meta name="GENERATOR" content="MSHTML 8.00.6001.18372">
<link rel="stylesheet" type="text/css" href="marche_fichiers/index.css" media="all">
<style type="text/css">
img.c1 {width: 1364px; height: 840px;}
</style>
</head>
<body>
<script type="text/javascript">
</script>
<script type="text/javascript" src="marche_fichiers/prototype2.js">
</script>
<script type="text/javascript" src="marche_fichiers/dragdrop.js">
</script>
<script type="text/javascript" src="marche_fichiers/builder.js">
</script>
<script type="text/javascript" src="marche_fichiers/dragdrop.js">
</script>
<script type="text/javascript" src="marche_fichiers/cropper.js">
</script>
<script type="text/javascript">
//<![CDATA[
function onEndCrop( coords, dimensions ) {$( 'x1' ).value = coords.x1;$( 'y1' ).value = coords.y1; $( 'x2' ).value = coords.x2;
$( 'y2' ).value = coords.y2;$( 'width' ).value = dimensions.width;$( 'height' ).value = dimensions.height;}// example with a preview of crop results, must have minimumm dimensions
Event.observe(window,'load',function() {new Cropper.ImgWithPreview('Image',{minWidth: 20,minHeight: 20,ratioDim: { }, displayOnInit: true,onEndCrop: onEndCrop,previewWrap: 'previewArea'})});
//]]>
</script>
<div><br>
<div>
<form id="redimadavatar_form" method="post" name="redimadavatar_form" action="
http://mon.doctissimo.fr/modificationcompte/avatar">
<input id="y1" value="79" name="y1"><input id="height" name="height"><input id="width" name="width"><input id="x1" value="154" name="x1">http://avatar.doctissimo.fr<input value="/6/7/4/2/862476/" name="url_avatar">TN2_<input value="1176906853.gif" name="url_id_avatar">
<div id="previewArea" class="imgCrop_previewWrap c11"><img id="imgCrop_image2" name="imgCrop_image2" alt="image" src="marche_fichiers/im_1225181347.jpg"><img id="imgCrop_image" class="c10" name="image" alt="" src="marche_fichiers/im_1225181347.jpg"></div>
<input id="x2" value="2174" name="x2" type="hidden"><input id="y2" value="199" name="y2" type="hidden"><input class="submit_button" value="Sauvegarder" name="redim" type="submit">
<div>
<div><img class="c1" id="Image" name="image" alt="image" src="marche_fichiers/im_1225181347.jpg"></div>
<input class="submit_button c1" onclick="javacript:window.location='/modificationcompte/avatar'" value="Annuler" name="redim" type="button"></div>
</form>
</div>
</div>
</body>
</html>
et j'ai ensuite testé ce code
ce qui est en rouge est le contenu de index .css
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script><endnote><head>
<script></script>
<meta name="generator" content="HTML Tidy for Linux (vers 6 November 2007), see
www.w3.org">
<title>48</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta name="GENERATOR" content="MSHTML 8.00.6001.18372">
<meta name="GENERATOR" content="MSHTML 8.00.6001.18372">
<link rel="stylesheet" type="text/css" href="marche_fichiers/inddex.css" media="all">
<style type="text/css">
</style>
</head>
<body>
<script type="text/javascript">
</script>
<script type="text/javascript" src="marche_fichiers/prototype2.js">
</script>
<script type="text/javascript" src="marche_fichiers/dragdrop.js">
</script>
<script type="text/javascript" src="marche_fichiers/builder.js">
</script>
<script type="text/javascript" src="marche_fichiers/dragdrop.js">
</script>
<script type="text/javascript" src="marche_fichiers/cropper.js">
</script>
<script type="text/javascript">
//<![CDATA[
function onEndCrop( coords, dimensions ) {$( 'x1' ).value = coords.x1;$( 'y1' ).value = coords.y1; $( 'x2' ).value = coords.x2;
$( 'y2' ).value = coords.y2;$( 'width' ).value = dimensions.width;$( 'height' ).value = dimensions.height;}// example with a preview of crop results, must have minimumm dimensions
Event.observe(window,'load',function() {new Cropper.ImgWithPreview('Image',{minWidth: 20,minHeight: 20,ratioDim: { }, displayOnInit: true,onEndCrop: onEndCrop,previewWrap: 'previewArea'})});
//]]>
</script>
<style media="all" type="text/css">
//<![CDATA[
/* mes autres css */
.imgCrop_overlay {
position : absolute;
background : rgb(255, 255, 255);
width : 100%;
height : 100%;
opacity : 0.5;
}
.imgCrop_previewWrap {
position : relative;
overflow : hidden;
}
.imgCrop_previewWrap IMG {
position : absolute;
}
.imgCrop_wrap {
position : relative;
cursor : crosshair;
}
.imgCrop_selArea {
z-index : 2;
position : absolute;
cursor : move;
}
.imgCrop_clickArea {
background-color : rgb(255, 255, 255);
width : 100%;
height : 100%;
opacity : 0.01;
}
.imgCrop_handle {
z-index : 4;
border-bottom : 1px solid rgb(51, 51, 51);
position : absolute;
border-left : 1px solid rgb(51, 51, 51);
width : 6px;
background : rgb(255, 255, 255);
height : 6px;
border-top : 1px solid rgb(51, 51, 51);
border-right : 1px solid rgb(51, 51, 51);
opacity : 0.5;
}
.imgCrop_handleNE {
top : -3px;
cursor : ne-resize;
right : -3px;
}
.imgCrop_handleE {
top : 0;
cursor : e-resize;
right : -3px;
}
.imgCrop_handleSE {
bottom : -3px;
cursor : se-resize;
right : -3px;
}
.imgCrop_handleS {
bottom : -3px;
cursor : s-resize;
right : 0;
}
.imgCrop_handleSW {
bottom : -3px;
cursor : sw-resize;
left : -3px;
}
.imgCrop_dragArea {
z-index : 200;
position : absolute;
width : 100%;
height : 100%;
top : 0;
left : 0;
}
//]]>
</style>
<div><br>
<div>
<form id="redimadavatar_form" method="post" name="redimadavatar_form" action="
http://mon.doctissimo.fr/modificationco ... ar"><input id="y1" value="79" name="y1"><input id="height" name="height"><input id="width" name="width"><input id="x1" value="154" name="x1">http://avatar.doctissimo.fr<input value="/6/7/4/2/862476/" name="url_avatar">TN2_<input value="1176906853.gif" name="url_id_avatar">
<div id="previewArea" class="imgCrop_previewWrap c11"><img id="imgCrop_image2" name="imgCrop_image2" alt="image" src="marche_fichiers/im_1225181347.jpg"><img id="imgCrop_image" class="c10" name="image" alt="" src="marche_fichiers/im_1225181347.jpg"></div>
<input id="x2" value="2174" name="x2" type="hidden"><input id="y2" value="199" name="y2" type="hidden"><input class="submit_button" value="Sauvegarder" name="redim" type="submit">
<div>
<div><img class="c1" id="Image" name="image" alt="image" src="marche_fichiers/im_1225181347.jpg"></div>
<input class="submit_button c1" onclick="javacript:window.location='/modificationcompte/avatar'" value="Annuler" name="redim" type="button"></div>
</form>
</div>
</div>
</body>
</html>
comme dans l'exemple j'ai mis le css après </script>
mais ça ne fonctionne pas
Message envoyé avec : Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6