Thème amovible
Fermé
Spottedz
-
20 mars 2011 à 03:40
magicshark Messages postés 399 Date d'inscription mardi 27 juillet 2010 Statut Membre Dernière intervention 6 mai 2014 - 20 mars 2011 à 13:34
magicshark Messages postés 399 Date d'inscription mardi 27 juillet 2010 Statut Membre Dernière intervention 6 mai 2014 - 20 mars 2011 à 13:34
A voir également:
- Thème amovible
- Theme sombre chrome - Guide
- Thème iphone gratuit - Télécharger - Thèmes & Fonds d'écran
- Cette fonctionnalité nécessite un média amovible - Forum Windows
- Theme de soutenance en sécurité informatique pdf ✓ - Forum Études / Formation High-Tech
- Exemple de thème de mémoire en secrétariat - Forum Messagerie
1 réponse
magicshark
Messages postés
399
Date d'inscription
mardi 27 juillet 2010
Statut
Membre
Dernière intervention
6 mai 2014
13
20 mars 2011 à 13:34
20 mars 2011 à 13:34
tu peux tres bien avoir un liens dynamique admettons 4 themes
DEFAULT
BLEU
ROUGE
VERT
il te faut donc 4 css different :
-design_default.css
-design_bleu.css
-design_rouge.css
-design_vert.css
DEFAULT
BLEU
ROUGE
VERT
<?php
If(isset($_POST['theme']))
{
$color=$_POST['theme'];
}
else
{
$color=default;
}
?>
<!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" xml:lang="fr" >
<head>
<title>??</title>
<?php
echo '<link rel="stylesheet" media="screen" type="text/css" title="Design" href="design_".$color.".css" />'
?>
</head>
il te faut donc 4 css different :
-design_default.css
-design_bleu.css
-design_rouge.css
-design_vert.css