1 2 3 4 5 6 7 8 9 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 44 45 46 47 48 49 50
| <!doctype html>
<html>
<head>
<meta charset="utf-8">
<base href="http://precioussouvenir.com/2013/fr/">
<title>Precious Souvenir</title>
<link href="../style/styleWeb.css" rel="stylesheet" type="text/css">
<script src="../javascript/mootools-core-1.4.5.js"></script>
<script src="../javascript/mootools-more-1.4.0.1.js"></script>
<script>
window.addEvent('domready', function() {
// fonction sur le clic
$('checkbox3').addEvent('click', function(){
oElem = $('blove2');
this.checked ? oElem.tween('width', oElem.originalWidth) : oElem.tween('width',0);
});
$('checkbox2').addEvent('click', function(){
var oElem = $('p_text');
this.checked ? oElem.tween('height', oElem.originalHeight) : oElem.tween('height',0);
});
// init des éléments
$('blove2').originalWidth = $('blove2').getStyle('width');
$('blove2').setStyle('width', 0);
$('p_text').originalHeight = $('p_text').getStyle('height');
$('p_text').setStyles({
'height': 0,
'overflow': 'hidden'
});
});
</script>
</head>
<body>
<div id="main">
<input type="checkbox" name="checkbox2" id="checkbox2">
<label for="checkbox2">Inscription sur la porcelaine (nom, date ... ) : 35.00$<br></label>
<p id="p_text"><input type="text" value="Entrez votre inscription" name="textfield" id="textfield"></p>
<input type="checkbox" name="checkbox3" id="checkbox3">
<label for="checkbox3">Changement de cadradage noir à doré : 35.00$</label>
<p><img src="../images/lignenoire.jpg" id="blove2"/></p>
<input type="checkbox" id="rush" name="rush">
<label for="rush">Commande urgente (moins de 10 jours) : 35.00$</label>
</div>
</body>
</html> |