website logo
Auteur
avatar
steph60

Forum » » Le coin des codeurs » » comment mettre des conditions sur un !onload! ?


Posté : 23-02-2004 09:18 icone du post

Bon, finalement j'ai trouvé :

<body <?php $logiciel = "logiciels/".$row_logiciels['nom_logiciel'].".exe";
if (file_exists($logiciel)) {
echo "!onload!=\"ouvre=window.open('$logiciel', '_blank')\""; }?>>

Cet article provient de NPDS REvolution 16
https://lab.grottes-et-karsts-de-chine.org/viewtopic.php?topic=10154&forum=5