hier soir j'ai encore bosser dessus jusque une heure et de mi du matin
sous FireFox sa marche niquel sous MSIE tout é decaler
voici le code (complet cette foi ci)
et des aperçu
***index.php***
<HTML>
<HEAD><TITLE></TITLE>
<STYLE type="text/css">
.main {
background : url(images/bg2.JPG);
width : 765px;
height : 315px;
position : absolute;
margin-left : 243px;
background-repeat : no-repeat;
}
</STYLE>
<?PHP
include('rubrique.php');
?>
</HEAD>
<BODY>
<?PHP
include_once('krypton.html');
?>
<CENTER>
<div class='main'>
<?PHP
include_once($page);
?>
</div>
</CENTER>
</BODY>
</HTML>
*** krypton.html ***
<html xmlns="
[ Lien ]" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>krypton</title>
</head>
<body bgcolor="#ffffff">
<center>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
[ Lien ]" width="766" height="345" id="krypton" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="krypton.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="krypton.swf" quality="high" bgcolor="#ffffff" width="766" height="345" name="krypton" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="
[ Lien ]" />
</object>
</center>
</body>
</html>
***rubrique.php***
<HTML>
<HEAD>
</HEAD>
<BODY>
<?php
if(!isset($_GET['file'])){
$file = "";
}
else {
$file = $_GET['file'];
}
if(!isset($_GET['folder'])){
$folder= "";
}
else {
$folder = $_GET['folder'];
}
if($folder){
$page = $folder.'/'.$file.'.php';
}
else{
$page = $file.'.php';
}
if(!file_exists($page)){
$page = 'news.php';
}
?>
</BODY>
</HTML>
***news.php***
<HTML>
<HEAD><TITLE></TITLE>
<STYLE type="text/css">
BODY { background-color: #CCCCCC;
}
.news {
background : url(images/news.JPG);
width : 499px;
height : 214px;
position : absolute;
margin-left : 140px;
margin-top : 40px;
background-repeat : no-repeat;
}
.news_titre{
position : absolute;
margin-left : 40px;
margin-top : 10px;
font-family : tahoma;
font-size : 8 pt;
font-weight : bold;
color : #DDDDDD;
}
.news_contenu{
position : absolute;
width : 465px;
height : 160px;
margin-left : 15px;
margin-top : 42px;
font-size : 25 pt;
color : #000000;
//border-width : 3;
//border-color : #000000;
//border-style : dotted;
}
TABLE:hover{
background-color : #DDDDDD;
}
A{
color : #000000;
}
A:hover{
color : #FF0000;
}
</STYLE>
<SCRIPT LANGUAGE="JScript">
function OpenCenterPopUp(id){
var Left=window.screen.width/2-175;
var Top=window.screen.height/2-175;
var Configuration="'toolbar=no, menubar=no, location=no, directories=no, status=no, resizeable=no, width=350, height=350, left=" + Left + ", top=" + Top;
window.open('popup_news.php?ID='+id,'News',Configuration);
}
</SCRIPT>
</HEAD>
<BODY>
<div class="news">
<div class="news_titre">News</div>
<div class="news_contenu">
<?PHP
include 'connec.php';
$idConnexion = mysql_connect("$localhost", "$login", "$pass") or die("Connexion impossible");
mysql_select_db("$base",$idConnexion);
$requete = "SELECT * FROM news ORDER BY ID DESC LIMIT 0,6";
$envoie = mysql_query($requete);
$i = 0;
while($tableau = mysql_fetch_array($envoie))
{
$id = $tableau['ID'];
$icone = $tableau['icone'];
$titre = $tableau['titre'];
$hits = $tableau['hits'];
$date = $tableau['date'];
if ($i % 2 == 0){
$bgcolor = "#AAAAAA";
}
if ($i % 2 != 0){
$bgcolor = "#666666";
}
echo "<TABLE BORDER='0' WIDTH='100%' BGCOLOR='$bgcolor'><TR><TD WIDTH='5%'><IMG SRC=\"$icone\" WIDTH='15' HEIGHT='15'></TD><TD WIDTH='55%'>$titre</TD><TD WIDTH='15%'>($hits hits)</TD><TD WIDTH='20%'><A href=\"javascript:OpenCenterPopUp($id)\">Lire la news</A></TR></TABLE>";
$i++;
}
mysql_close($idConnexion);
?>
</DIV></DIV>
</BODY>
</HTML>
Voila le code complet
et voici les rendu
MSIE :
[ Lien ]
FFox :
[ Lien ]
D'avance merci
L0rD...