[PHP] help compatibilité firefox / IE

Fermé
jeff - 7 juil. 2005 à 13:48
 jeff - 8 juil. 2005 à 14:21
hola,

mes popups (fonction ouvrepopup) dans la pages ci-dessous s'ouvrent très bien dans firefox (sous linux) ... mais pas pour les windoziens sous IE ???

qqn a déjà rencontré ce genre de problème ???

merci !!!

+

==========================================
index.php
------------------------------------------
<?php
session_start();
?>

<html>
<head>

<script LANGUAGE="JavaScript">
<!--
function ouvrepopup(filename) {
window.open(filename, "ESC15 Tennis", "toolbar=no, location=no, directories=no, status=yes, scrollbars=yes, resizable=no, copyhistory=no, width=300, height=390, left=350, top=190");
}
//-->
</script>

<title>.: Votre titre :.</title>
<meta NAME="description" CONTENT="Votre description">
<meta NAME="keywords" CONTENT="Vos mots clefs">
<meta http-equiv="content-language" content="be, fr, lu, ch, ca">
<meta NAME="author" CONTENT="Vous">
<meta NAME="rating" CONTENT="general">
<meta NAME="classification" CONTENT="Tout public">
<meta NAME="copyright" CONTENT="Infos copyright">
<meta NAME="expires" CONTENT="never">
<meta NAME="rating" CONTENT="general">
<meta NAME="revisit-after" CONTENT="31 days">
<meta NAME="Robots" CONTENT="all | follow | index">
<meta NAME="Reply to" CONTENT="mailto:adesse email">
<meta NAME="publisher" CONTENT="Vous">
<meta HTTP-EQUIV="Content-type" CONTENT="text/html;charset=iso-8859-1">
<style TYPE="text/css">
<!--
A:link {TEXT-DECORATION: none}
A:visited {TEXT-DECORATION: none}
A:hover {COLOR: #000000; TEXT-DECORATION: none}
-->
</style>
</head>
<body bgcolor="#D5DBE6" link="#FFFFFF" vlink="#FFFFFF">
<div align="center"><center>
<table border="0" cellpadding="0" cellspacing="0" width="750" background="0501.gif">
<tr>
<td bgcolor="#9FAEC6" colspan="2" align="center" height="20"
style="border-right: 1px solid rgb(0,0,0); border-top: 1px solid rgb(0,0,0); border-bottom: 1px solid rgb(0,0,0)"><span
style="font-family: Verdana; font-size: 8pt">:::  <a href="index.php">Accueil</a>  
:::  <a href="messages.php">Webmestre</a>  ::: <a href="https://www.fft.fr/">FFT</a> 
:::  <a href="site.php">Ce site</a>  :::  <!--<a href="liens">Homepage</a> 
:::--></span></td>
</tr>
<tr>
<td><img src="medaillon_index.jpg" width="150" height="100" alt="Jimmy Connors"></td>
<td valign="middle" align="center"><div align="center"><center><table border="0"
cellpadding="0" cellspacing="0">
<tr>
<td><img src="0504.gif" width="468" height="60" alt="0504.gif (746 octets)"></td>
</tr>
</table>
</center></div></td>
</tr>
<tr>
<td colspan="2"><div align="left"><table border="0" cellpadding="0" cellspacing="0"
width="749">
<tr>
<td width="150" valign="top" align="center"><div align="center"><center><table border="0"
cellspacing="3" width="130">
<tr>
<td><p align="center"><img src="0505.gif" width="124" height="13" alt="[ .. ]"><br>
<em><span style="font-family: Verdana; font-size: 9pt">Le Club</span></em></td>
</tr>
<tr>
<td onmouseover="javascript:this.style.background='#8294B3'"
onmouseout="javascript:this.style.background='#B8C2D3'" align="center"
style="border: 1px solid rgb(0,0,0)" bgcolor="#B8C2D3"><p align="left"><span
style="font-family: Verdana; font-size: 8pt"><font color="#0080C0"><strong>::</strong></font>
<a class="normal" onMouseOut="this.className='normal';self.status='';return true"
href="joueurs.php">Les joueurs(se)</a></span></td>
</tr>
<tr>
<td onmouseover="javascript:this.style.background='#8294B3'"
onmouseout="javascript:this.style.background='#B8C2D3'" align="center"
style="border: 1px solid rgb(0,0,0)" bgcolor="#B8C2D3"><p align="left"><span
style="font-family: Verdana; font-size: 8pt"><font color="#0080C0"><strong>::</strong></font>
<a class="normal" onMouseOut="this.className='normal';self.status='';return true"
href="http://www.gratos.be/">Les équipes</a></span></td>
</tr>
<tr>
<td onmouseover="javascript:this.style.background='#8294B3'"
onmouseout="javascript:this.style.background='#B8C2D3'" align="center"
style="border: 1px solid rgb(0,0,0)" bgcolor="#B8C2D3"><p align="left"><span
style="font-family: Verdana; font-size: 8pt"><font color="#0080C0"><strong>::</strong></font>
<a class="normal" onMouseOut="this.className='normal';self.status='';return true"
href="http://www.gratos.be/">Les horaires</a></span></td>
</tr>
<!-- <tr>
<td><p align="center"><img src="0505.gif" width="124" height="13" alt="[ .. ]"><br>
<em><span style="font-family: Verdana; font-size: 9pt">Titre de la rubrique</span></em></td>
</tr>
<tr>
<td onmouseover="javascript:this.style.background='#8294B3'"
onmouseout="javascript:this.style.background='#B8C2D3'" align="center"
style="border: 1px solid rgb(0,0,0)" bgcolor="#B8C2D3"><p align="left"><span
style="font-family: Verdana; font-size: 8pt"><font color="#80FFFF"><strong>::</strong></font>
<a class="normal" onMouseOut="this.className='normal';self.status='';return true"
href="http://www.gratos.be/">Votre lien ici</a></span></td>
</tr>
<tr>
<td onmouseover="javascript:this.style.background='#8294B3'"
onmouseout="javascript:this.style.background='#B8C2D3'" align="center"
style="border: 1px solid rgb(0,0,0)" bgcolor="#B8C2D3"><p align="left"><span
style="font-family: Verdana; font-size: 8pt"><font color="#80FFFF"><strong>::</strong></font>
<a class="normal" onMouseOut="this.className='normal';self.status='';return true"
href="http://www.gratos.be/">Votre lien ici</a></span></td>
</tr>
<tr>
<td onmouseover="javascript:this.style.background='#8294B3'"
onmouseout="javascript:this.style.background='#B8C2D3'" align="center"
style="border: 1px solid rgb(0,0,0)" bgcolor="#B8C2D3"><p align="left"><span
style="font-family: Verdana; font-size: 8pt"><font color="#80FFFF"><strong>::</strong></font>
<a class="normal" onMouseOut="this.className='normal';self.status='';return true"
href="http://www.gratos.be/">Votre lien ici</a></span></td>
</tr>
<tr>
<td><p align="center"><img src="0505.gif" width="124" height="13" alt="[ .. ]"><br>
<em><span style="font-family: Verdana; font-size: 9pt">Titre de la rubrique</span></em></td>
</tr>
<tr>
<td onmouseover="javascript:this.style.background='#8294B3'"
onmouseout="javascript:this.style.background='#B8C2D3'" align="center"
style="border: 1px solid rgb(0,0,0)" bgcolor="#B8C2D3"><p align="left"><span
style="font-family: Verdana; font-size: 8pt"><font color="#009CE8"><strong>::</strong></font>
<a class="normal" onMouseOut="this.className='normal';self.status='';return true"
href="http://www.gratos.be/">Votre lien ici</a></span></td>
</tr>
<tr>
<td onmouseover="javascript:this.style.background='#8294B3'"
onmouseout="javascript:this.style.background='#B8C2D3'" align="center"
style="border: 1px solid rgb(0,0,0)" bgcolor="#B8C2D3"><p align="left"><span
style="font-family: Verdana; font-size: 8pt"><font color="#009CE8"><strong>::</strong></font>
<a class="normal" onMouseOut="this.className='normal';self.status='';return true"
href="http://www.gratos.be/">Votre lien ici</a></span></td>
</tr>
<tr>
<td onmouseover="javascript:this.style.background='#8294B3'"
onmouseout="javascript:this.style.background='#B8C2D3'" align="center"
style="border: 1px solid rgb(0,0,0)" bgcolor="#B8C2D3"><p align="left"><span
style="font-family: Verdana; font-size: 8pt"><font color="#009CE8"><strong>::</strong></font>
<a class="normal" onMouseOut="this.className='normal';self.status='';return true"
href="http://www.gratos.be/">Votre lien ici</a></span></td>
</tr> -->
<tr>
<td><img src="05pixel.gif" width="5" height="5" alt="[ .. ]"></td>
</tr>
<tr>
<td><p align="center"><img src="0503.gif" width="123" height="2" alt="[ ... ]"></td>
</tr>
<tr>
<td><img src="05pixel.gif" width="5" height="5" alt="[ .. ]"></td>
</tr>
<tr>
<td><p align="center"><img src="0188x31.gif" width="88" height="31"
alt="0188x31.gif (1748 octets)"></td>
</tr>
<tr>
<td><p align="left"><img src="05pixel.gif" width="5" height="5" alt="[ .. ]"></td>
</tr>
<tr>
<td><p align="center"><img src="0505.gif" width="124" height="13" alt="[ .. ]"></td>
</tr>
</table>
</center></div></td>
<td width="450" valign="top" align="center"><div align="center"><center><table border="0"
cellpadding="0" width="440">
<td><p align="center"><font face="Verdana" color="#FFFFFF"><strong><big>:: LES NEWS
:: </big></strong></font></td>
<?php
if ($est_admin != "") {
echo "<tr><td><br>     <img src='create.png'><font face='Verdana' size='2'>
<a href=\"#nowhere\" onclick=\"ouvrepopup('news_add.php')\">Ajouter une news</a>
</font></td></tr>";
}
?>
<tr>
<td><font face="Verdana" color="#FFFFFF"><strong><small><p align="center"></small><img
src="0511.gif" width="420" height="11" alt="[ ... ]"></strong></font></td>
</tr>
<?php

// connection bdd
$c = @mysql_connect('sql.free.fr','esc15.tennis','tdm850') or die('connexion impossible');
@mysql_select_db('base',$c) or die('selection impossible');

// requete sql 1
$sql1 = "select numero, type, DATE_FORMAT(date, '%d-%m') as zedate, news from News order by numero desc limit 10";

// parcours et affichage des résultats
$i=0;
if($p = @mysql_query($sql1,$c)){
while($r = @mysql_fetch_array($p)){

echo "
<tr>
<td><font face='Verdana' size='2'>";

if ($est_admin != "") {
$i=$i+1;
echo "<form name='zeform_" . $i . "' method='post' action='news_del_go.php'>
<font face='Verdana' size='2'>
      <img src='edit.png'>
<a href=\"#nowhere\" onclick=\"ouvrepopup('news_upd.php?id_news=". $r['numero'] . "')\">Modifier</a>
  <img src='drop.png'>
<input type='hidden' name='id_news_input' value='" . $r['numero'] . "'>
<a href=\"#nowhere\" onClick=\"zeform_". $i . ".submit();\">Supprimer</a>
</font>
</form>";
} else {
echo "<br>";
}

switch ($r['type']) {
case "C": $type = "Club"; break;
case "1": $type = "Equipe n°1"; break;
case "2": $type = "Equipe n°2"; break;
case "3": $type = "Equipe n°3"; break;
case "4": $type = "Equipe n°4"; break;
};

echo "<font color='#FFFFFF'>(".$r['zedate']." / ".$type.")</font> "; echo $r['news']; echo chr(13).chr(13);

echo "
<br>
<br>
</font></td>
</tr>
<tr>
<td><p align='center'><font face='Verdana' color='#FFFFFF'><strong><img src='0511.gif'
width='420' height='11' alt='[ ... ]'></strong></font></td>
</tr>";

}
}

// fermeture bdd
@mysql_close($c);

?>
<tr>
<td><p align="center"><span style="font-size: 8pt"><font face="Verdana"><font
color="#FFFAEA">[</font><strong><font color="#FFBF00">::</font></strong><!--<a
href="http://www.gratos.be/" style="color: rgb(0,0,0)">-->Réalisation : Jeff</a></font><font
face="Verdana" color="#FFBF00"><strong>::</strong></font><font face="Verdana"
color="#FFFAEA">]</font><br><br></span></td>
</tr>
</table>
</center></div></td>
<td width="149" valign="top" align="center"><div align="center"><center><table border="0"
cellpadding="0" width="140" cellspacing="0">
<tr>
<td style="border: 1px solid rgb(0,0,0)" bgcolor="#FDBE00"><p align="center"><span
style="font-family: Verdana; font-size: 9pt">Sites partenaires</span></td>
</tr>
<tr>
<td><img src="05pixel.gif" width="5" height="5" alt="[ .. ]"></td>
</tr>
<td><a href="http://Esc15.free.fr"><font face="Verdana" size="2" color="#005782">  Site de l'ESC XV</a></font><br>
<a href="https://www.fsgt.org/"><font face="Verdana" size="2" color="#005782">  Site de la FSGT</a></font></td>
<tr>
<td><img src="05pixel.gif" width="5" height="5" alt="[ .. ]"></td>
</tr>
<tr>
<td bgcolor="#FFD34F" style="border: 1px solid rgb(0,0,0)"><p align="center"><span
style="font-family: Verdana; font-size: 9pt">Capitaines</span></td>
</tr>
<tr>
<td><img src="05pixel.gif" width="5" height="5" alt="[ .. ]"></td>
</tr>
<tr>
<td>
<font face="Verdana" size="2" color="#005782">
<form method="POST" action="connexion_go.php">
  Pseudo<br>
 <input type="text" name="capitaine_input" size="15"><br>
  Mot de passe<br>
 <input type="password" name="password_input" size="15"><br>
 <input type="image" src="login_OK.jpg" name="submit_button" width="20" height="14">
</form>
</font>
</td>
</tr>
<!-- <tr>
<td><img src="05pixel.gif" width="5" height="5" alt="[ .. ]"></td>
</tr>
<tr>
<td bgcolor="#FFE391" style="border: 1px solid rgb(0,0,0)"><p align="center"><span
style="font-family: Verdana; font-size: 9pt">Titre de la rubrique</span></td>
</tr>
<tr>
<td><img src="05pixel.gif" width="5" height="5" alt="[ .. ]"></td>
</tr>
<tr>
<td><font face="Verdana" size="2" color="#005782">  Votre texte ici<br>
  Votre texte ici</font></td>
</tr>
<tr>
<td><img src="05pixel.gif" width="5" height="5" alt="[ .. ]"></td>
</tr>
<tr>
<td bgcolor="#FFF2CA" style="border: 1px solid rgb(0,0,0)"><p align="center"><span
style="font-family: Verdana; font-size: 9pt">Titre de la rubrique</span></td>
</tr>
<tr>
<td><img src="05pixel.gif" width="5" height="5" alt="[ .. ]"></td>
</tr>
<tr>
<td><font face="Verdana" size="2" color="#005782">  Votre texte ici<br>
  Votre texte ici</font></td>
</tr>
<tr>
<td><img src="05pixel.gif" width="5" height="5" alt="[ .. ]"></td>
</tr>
<tr>
<td bgcolor="#FFFAEA" style="border: 1px solid rgb(0,0,0)"><p align="center"><span
style="font-family: Verdana; font-size: 9pt">Titre de la rubrique</span></td>
</tr>
<tr>
<td><img src="05pixel.gif" width="5" height="5" alt="[ .. ]"></td>
</tr>
<tr>
<td><font face="Verdana" size="2" color="#005782">  Votre texte ici<br>
  Votre texte ici</font></td>
</tr> -->
<?php

if ($est_admin != "") {
echo "
<tr>
<td><center><font face='Verdana' size='2' color='red'>" . $est_admin . " connecté</font></center></td>
</tr>";
}

?>
</tr>
<tr>
<td><hr size="1" color="#005782"></td>
</tr>
<!-- <tr>
<td><font face="Verdana" size="2"><p align="center"></font><img src="0507.gif" width="26"
height="41" alt="[ ... ]">  <img src="0508.gif" width="37" height="40" alt="[ ... ]"></td>
</tr> -->
<tr>
<td><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br></td>
</tr>
</table>
</center></div></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td bgcolor="#9FAEC6" colspan="2" align="center" height="20"
style="border-right: 1px solid rgb(0,0,0); border-top: 1px solid rgb(0,0,0); border-bottom: 1px solid rgb(0,0,0)"><span
style="font-family: Verdana; font-size: 8pt">:::  <a href="index.php">Accueil</a>  
:::  <a href="messages.php">Webmestre</a>  ::: <a href="https://www.fft.fr/">FFT</a> 
:::  <a href="site.php">Ce site</a>  :::  <!--<a href="liens">Homepage</a> 
:::--></span></td>
</tr>
</table>
</center></div>
</body>
</html>
A voir également:

3 réponses

incroyable c'est le blanc dans "ESC15 Tennis" qui n'est pas supporté. collé ça a l'air de passer. quelle daube IE ;-)

+
0
txiki Messages postés 6597 Date d'inscription mercredi 30 janvier 2002 Statut Contributeur Dernière intervention 22 février 2024 515
8 juil. 2005 à 08:11
Pour une popup toujours centrée

<script language="javascript" >
<!--popup centree
function popinfo(mypage,myname,w,h,scroll)
{
var LeftPosition = (screen.width-w)/2;
var TopPosition = (screen.height-h)/2;
var settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+', scrollbars=yes,resizable=no'
window.open(mypage,myname,settings)
}
//-->
</script>

<a href="javascript:void(0)" class="liensN" onClick="popinfo('actus0023.htm','sites','560','450','no')";return false;> mon lien </a>


Fonctionne sous firefox et IE
voir exemple sur http://abarkahiru.free.fr (dans Recettes, la série de liens pour les astuces, info produits...
C'est en cours de remise en page mais bon....
Si ça peut te donner une idée...

Bonne chance ;-)))
0
thx !!!
0