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 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title></title>
<style type="text/css">
<?php include('css/style.php'); ?>
</style>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"></script>
<script type="text/javascript" src="jquery.flip.min.js"></script>
<script type="text/javascript" src="script.js"></script>
<script type="text/javascript">
function generate_div(id, width, height, marginTop, marginLeft) {
maDivZone = document.createElement("div");
maDivZone.className = "Zone".id;
maDivZone.style.width = width;
maDivZone.style.height = height;
maDivZone.style.marginTop = marginTop;
maDivZone.style.marginLeft = marginLeft;
maDivZone.style.backgroundColor = "#FFF";
maDivZone.style.position = "absolute";
maDivZone.style.cursor = "pointer";
document.body.appendChild(maDivZone);
maDivZoneFlip = document.createElement("div");
maDivZoneFlip.className = "ZoneFlip".id;
maDivZoneFlip.style.position = "absolute";
maDivZoneFlip.style.left = 0;
maDivZoneFlip.style.top = 0;
maDivZoneFlip.style.width = "100%";
maDivZoneFlip.style.height = "100%";
maDivZoneFlip.style.border = "1px solid #ddd";
maDivZoneFlip.style.background = "url('img/background.jpg') no-repeat center center #f9f9f9";
/*maDivZoneFlip.style.hover.border = "1px solid #999";
maDivZoneFlip.style.hover.moz-box-shadow = "0 0 30px #999 inset";
maDivZoneFlip.style.hover.webkit-box-shadow = "0 0 30px #999 inset";
maDivZoneFlip.style.hover.box-shadow = "0 0 30px #999 inset";*/
document.body.appendChild(maDivZoneFlip);
maDivZoneData = document.createElement("div");
maDivZoneData.className = "ZoneData".id;
maDivZoneData.style.display = "none";
document.body.appendChild(maDivZoneData);
maDivZoneDescription = document.createElement("div");
maDivZoneDescription.className = "zoneDescription".id;
maDivZoneDescription.style.fontSize = "11px";
maDivZoneDescription.style.padding = "10px 10px 20px 20px";
maDivZoneDescription.style.fontStyle = "italic";
document.body.appendChild(maDivZoneDescription);
}
</script>
</head>
<body>
<div id="wrapper">
<div id="status_bar">
</div>
<div class="navigationbar_filter">
</div>
<div class="navigationbar_background">
<p>Titre</p>
</div>
<div class="content">
</div>
<?php
$zones = array(
array("Titre",4,10, 50, 180),
array("Description",50, 40, 100, 200)
);
foreach($zones as $zone){
echo '<script>generate_div("'.$zone[0].'", '.$zone[4].', '.$zone[3].', '.$zone[2].', '.$zone[1].');</script>'; ?>
<div class="<?php echo 'Zone'.$zone[0];?>" title="Click to flip">
<div class="<?php echo "ZoneFlip".$zone[0];?>">
</div>
<div class="<?php echo 'ZoneData'.$zone[0];?>">
<div class="<?php echo 'ZoneDescription'.$zone[0];?>">
<?php echo $zone[0];?>
</div>
</div>
</div>
<?php }?>
</div>
</body>
</html> |
Partager