background

Répondre


Cette question est un moyen d’empêcher des soumissions automatisées de formulaires par des robots.
Smileys
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: =D> #-o =P~ :^o :non: :priere: 8-|
Voir plus de smileys
  Revue du sujet
 

  Étendre la vue Revue du sujet : background

par Cyrano » 26 mars 2006, 21:36

Mouais, il y aurait plus simple et ça améliorerait non seulement la lisibilité mais même les performances de l'application:
<?php
//...
?>
<html>
<head>
<title>moteur de recherche</title>
<style type=text/css>
a:link{color:000000; text-decoration:none; font-family:verdana,tahoma,arial; font-size:8pt}
a:visited{color:333333; text-decoration:none; font-family:verdana,tahoma,arial; font-size:8pt}
a:hover{color:000000; text-decoration:underline; font-family:verdana,tahoma,arial; font-size:8pt}
body,td,input{font-family:verdana,tahoma,arial; font-size:8pt; background-image: url("cyprbk.jpg");}
.styleNuRes{font-family:verdana,tahoma,arial; font-size:16pt; font-weight:bold; color:#86aed7}
.style02{color:ffffff; font-weight:bold; background-color:#86aed7}
</style>
</head>
<body>
<?php
//...
?>
Pourquoi en effet faire complètement inutilement interpréter du HTML par PHP :?:

par PhilFree » 26 mars 2006, 13:25

Salut,

C'est à cause de ça:
url("cyprbk.jpg");} 
Tes doubles quotes autour du nom de l'image !

tu devrais écrire:

Code : Tout sélectionner

url(\"cyprbk.jpg\");}

background

par sfourre » 25 mars 2006, 16:39

Mon background me génère toujour une erreur, j'ai essayé plusieurs solutions, rien y fait.

Pourriez vous m'expliquer SVP

Amicalement

Stéphane
<?
echo"
<html>
<head>
<title>moteur de recherche</title>
<style type=text/css>
a:link{color:000000; text-decoration:none; font-family:verdana,tahoma,arial; font-size:8pt}
a:visited{color:333333; text-decoration:none; font-family:verdana,tahoma,arial; font-size:8pt}
a:hover{color:000000; text-decoration:underline; font-family:verdana,tahoma,arial; font-size:8pt}
body,td,input{font-family:verdana,tahoma,arial; font-size:8pt; background-image: url("cyprbk.jpg");}
.styleNuRes{font-family:verdana,tahoma,arial; font-size:16pt; font-weight:bold; color:#86aed7}
.style02{color:ffffff; font-weight:bold; background-color:#86aed7}
</style>
</head>
<body>
";
...