Ce code css écrit en javascript, permet de personnaliser le style du texte, le lien etc...
Il est multi-plateforme.
Si vous avez des rémarques n'hésitez à m'envoyer un email.
Source / Exemple :
/**
- @author Coumarane COUPPANE <coumarane_c@hotmail.com>
- @file Name : css.js
- @Version : V1
- @Creation Date : 12/04/2004 17:23
/****************************************************************/
/** Tableaux des codes couleurs **/
var couleur = new Array();
couleur[0] = "#BFBFBF";//Argent
couleur[1] = "#FFFFFF";//Blanc
couleur[2] = "#0000FF";//Bleu
couleur[3] = "#00B8FF";//Bleu ciel
couleur[4] = "#00FFFF";//Bleu clair
couleur[5] = "#EFFFFF";//Bleu azur
couleur[6] = "#00007F";//Bleu foncé
couleur[7] = "#00007F";//Bleu marine
couleur[8] = "#8F28E0";//Bleu violet
couleur[9] = "#FFE0BF";//Beige
couleur[10] = "#9F2720";//Brun
couleur[11] = "#D0681F";//Brun clair
couleur[12] = "#007F7F";//Cyan foncé
couleur[13] = "#FF00FF";//Fuchsia
couleur[14] = "#7F7F7F";//Gris
couleur[15] = "#FFFFEF";//Ivoire
couleur[16] = "#FFFF00";//Jaune
couleur[17] = "#F0DFAF";//Jaune paille
couleur[18] = "#E0E7F0";//Lavande
couleur[19] = "#7F0000";//Maron
couleur[20] = "#282811";//Marron Chocolat
couleur[21] = "#9030CF";//Mauve foncé
couleur[22] = "#000000";//Noir
couleur[23] = "#FFF8F0";//Neige
couleur[24] = "#FFA000";//Orange
couleur[25] = "#FF8800";//Orange foncé
couleur[26] = "#FFD700";//Or
couleur[27] = "#D09FD0";//Prune
couleur[28] = "#FF0000";//Rouge
couleur[29] = "#FFBFC0";//Rose
couleur[30] = "#FF7F70";//Saumon
couleur[31] = "#3FDFCF";//Turquoise
couleur[32] = "#007F00";//Vert
couleur[33] = "#00FF00";//Vert clair
couleur[34] = "#7F7F00";//Vert Olive
couleur[35] = "#006000";//Vert foncé
couleur[36] = "#0A5613";//Vert vampire
couleur[37] = "#7F007F";//Violet
couleur[38] = "#3FDFCF";//Turquoise
//couleur perso pour menu
couleur[39] = "#0CA51E";//
couleur[40] = "#2CE319";//
couleur[41] = "#34A19A";//vert
couleur[42] = "#2CE319";//vert foncé
couleur[43] = "#34679A";//bleu
couleur[44] = "#A7A7A5";//gris
couleur[44] = "#C0E6C6";//
couleur[45] = "#144698";//
/***** La taille des Polices en pt *********/
var taille = new Array();
taille[0] = "0pt";//
taille[1] = "1pt";//
taille[2] = "2pt";//
taille[3] = "3pt";//
taille[4] = "4pt";//
taille[5] = "5pt";//
taille[6] = "6pt";//
taille[7] = "7pt";//
taille[8] = "8pt";//
taille[9] = "9pt";//
taille[10] = "10pt";//
taille[11] = "11pt";//
taille[12] = "12pt";//
taille[13] = "13pt";//
taille[14] = "14pt";//
taille[15] = "15pt";//
taille[16] = "16pt";//
taille[17] = "17pt";//
taille[18] = "18pt";//
taille[19] = "19pt";//
taille[20] = "20pt";//
taille[21] = "25pt";//
taille[22] = "30pt";//
taille[23] = "35pt";//
taille[24] = "40pt";//
taille[25] = "45pt";//
taille[26] = "50pt";//
taille[27] = "55pt";//
taille[28] = "60pt";//
taille[29] = "65pt";//
taille[30] = "70pt";//
taille[31] = "75pt";//
taille[32] = "80pt";//
taille[33] = "85pt";//
taille[34] = "90pt";//
taille[35] = "95pt";//
taille[36] = "100pt";//
taille[37] = "200pt";//
taille[38] = "300pt";//
taille[39] = "400pt";//
taille[40] = "500pt";//etc...
/**** Variables Body + Scroll-Bar */
var body_bgrd = "";//
var txtc = couleur[3];//Couleur de texte
var sfc = couleur[20];//scrollbar-face-color
var s3dc = couleur[25];//scrollbar-3dlight-color
var ssc = couleur[15];//scrollbar-shadow-color
var stc = couleur[10];//scrollbar-track-color
var shlc = couleur[40];//scrollbar-highlight-color
var sbc = couleur[45];//scrollbar-base-color
var sdc = couleur[35];//scrollbar-darkshadow-color
var sac = couleur[30];//scrollbar-arrow-color
/************** Graisse ************ ****** */
var weight = new Array();
weight[0] = "normal";
weight[1] = "bold";
weight[2] = "bolder";
weight[3] = "lighter";
weight[4] = 900;//etc..
/************** Polices **********/
var police = new Array();
police[0] = new Array("arial, helvetica");
police[1] = "Vernada";
police[2] = "Tahoma";
police[3] = "";
police[4] = "";//etc...
/**************** Styles Polices *****************/
var style = new Array("normal", "italic");//Normal = 0; Italic = 1;
/** Alignement du texte **/
var txt_align = new Array("", "left", "right", "center", "justify");
/** Décoration du texte (souligné ou entouré) **/
var txt_deco = new Array("", "underline", "line-through");
/*** Style du curseur Uniquement pour IE **/
var cursor = new Array("hand", "hand","text", "help", "crosshair", "w-resize", "e-resize", "n-resize", "s-resize", "nw-resize", "ne-resize", "sw-resize", "se-resize", "auto", "pointer", "move", "wait");
/************ Variables Menu ********/
/****************************************/
var agent = navigator.userAgent;
var brows_vers = navigator.appVersion;
var brows_name = navigator.appName;
var ref_style = "";
/* *************** ***************** ********** Début *********** ********************* *******************/
/********************************* Styles pour P.C *************************************/
// Explorer P.C
if((agent.indexOf("Windows")!= -1) || (agent.indexOf("Win") != -1) && (brows_name.indexOf("Explorer")!= -1))
{
ref_style = '<style type="text/css">'+'\n'+
/******************* style body ********************/
'body {background-color: '+body_bgrd+'; color: '+txtc+';' +'\n'+
'scrollbar-face-color: '+sfc+'; scrollbar-3dlight-color: '+s3dc+';' +'\n'+
'scrollbar-shadow-color: '+ssc+'; scrollbar-track-color: '+stc+';' +'\n'+
'scrollbar-highlight-color: '+shlc+'; scrollbar-base-color: '+sbc+';' +'\n'+
'scrollbar-darkshadow-color: '+sdc+'; scrollbar-arrow-color: '+sac+';' +'\n'+
'font-family:'+police[0]+'; font-size:'+taille[10]+';}' +'\n'+
/******************* style text ********************
ex --> txtc0t6 signifie : textcouleur[0]_taille[6]
voir le tableau des couleurs et des tailles ci-dessus
//text couleur Argent
'.txtc0t6 {font-family:'+police[0]+'; font-size:'+taille[6]+'; font-weight:'+weight[0]+'; color:'+couleur[0]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
//text couleur Blanc
'.txtc1t8 {font-family:'+police[0]+'; font-size:'+taille[8]+'; font-weight:'+weight[0]+'; color:'+couleur[1]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
'.txtc1t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[1]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
'.txtc1t12 {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[0]+'; color:'+couleur[1]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
'.txtc1t14 {font-family:'+police[0]+'; font-size:'+taille[14]+'; font-weight:'+weight[0]+'; color:'+couleur[1]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
//text couleur Bleu
'.txtc2t6 {font-family:'+police[0]+'; font-size:'+taille[6]+'; font-weight:'+weight[0]+'; color:'+couleur[2]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
'.txtc2t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[2]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
//text ouleur Bleu ciel
'.txtc3t6 {font-family:'+police[0]+'; font-size:'+taille[6]+'; font-weight:'+weight[0]+'; color:'+couleur[3]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
//text couleur Bleu clair
'.txtc4t6 {font-family:'+police[0]+'; font-size:'+taille[6]+'; font-weight:'+weight[0]+'; color:'+couleur[4]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
'.txtc4t8 {font-family:'+police[0]+'; font-size:'+taille[8]+'; font-weight:'+weight[0]+'; color:'+couleur[4]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
//text couleur Bleu azur
'.txtc5t6 {font-family:'+police[0]+'; font-size:'+taille[6]+'; font-weight:'+weight[0]+'; color:'+couleur[5]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
'.txtc5t8 {font-family:'+police[0]+'; font-size:'+taille[8]+'; font-weight:'+weight[0]+'; color:'+couleur[5]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
//text couleur Bleu foncé
'.txtc6t6 {font-family:'+police[0]+'; font-size:'+taille[6]+'; font-weight:'+weight[0]+'; color:'+couleur[6]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
'.txtc6t20 {font-family:'+police[0]+'; font-size:'+taille[20]+'; font-weight:'+weight[0]+'; color:'+couleur[6]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
//text couleur Bleu marine
'.txtc7t6 {font-family:'+police[0]+'; font-size:'+taille[6]+'; font-weight:'+weight[0]+'; color:'+couleur[7]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
//text couleur Bleu violet
'.txtc8t6 {font-family:'+police[0]+'; font-size:'+taille[6]+'; font-weight:'+weight[0]+'; color:'+couleur[8]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
'.txtc8t8 {font-family:'+police[0]+'; font-size:'+taille[8]+'; font-weight:'+weight[0]+'; color:'+couleur[8]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
'.txtc8t20 {font-family:'+police[0]+'; font-size:'+taille[20]+'; font-weight:'+weight[0]+'; color:'+couleur[8]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
//text couleur Beige
'.txtc9t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[9]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
//text couleur Brun
'.txtc10t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[10]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
//text couleur Brun clair
'.txtc11t100 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[11]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
//text couleur Cyan foncé
'.txtc12t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[12]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
//text couleur Fuchsia
'.txtc13t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[13]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
//text couleur Gris
'.txtc14t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[14]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
//text couleur Ivoire
'.txtc15t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[15]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
//text couleur Jaune
'.txtc16t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[16]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
//text couleur Jaune paille
'.txtc17t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[17]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
//text couleur Lavande
'.txtc18t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[18]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
//text couleur Maron
'.txtc19t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[19]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
//text couleur Maron Chaucolat
'.txtc20t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[20]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
//text couleur Mauve foncé
'.txtc21t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[21]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
//text couleur Noir
'.txtc22t8 {font-family:'+police[0]+'; font-size:'+taille[8]+'; font-weight:'+weight[0]+'; color:'+couleur[22]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
'.txtc22t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[22]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
//text couleur Neige
'.txtc23t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[23]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
//text couleur Orange
'.txtc24t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[24]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
//text couleur Orange foncé
'.txtc25t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[25]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
//text couleur Or
'.txtc26t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[26]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
//text couleur Prune
'.txtc27t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[27]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
//text couleur Rouge
'.txtc28t6 {font-family:'+police[0]+'; font-size:'+taille[6]+'; font-weight:'+weight[0]+'; color:'+couleur[28]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
'.txtc28t8 {font-family:'+police[0]+'; font-size:'+taille[8]+'; font-weight:'+weight[0]+'; color:'+couleur[28]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
'.txtc28t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:blue; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
'.txtc28t12 {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[0]+'; color:'+couleur[28]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
'.txtc28t14 {font-family:'+police[0]+'; font-size:'+taille[14]+'; font-weight:'+weight[0]+'; color:'+couleur[28]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
'.txtc28t16 {font-family:'+police[0]+'; font-size:'+taille[16]+'; font-weight:'+weight[0]+'; color:'+couleur[28]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
'.txtc28t18 {font-family:'+police[0]+'; font-size:'+taille[18]+'; font-weight:'+weight[0]+'; color:'+couleur[28]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
'.txtc28t20 {font-family:'+police[0]+'; font-size:'+taille[20]+'; font-weight:'+weight[0]+'; color:'+couleur[28]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
//text couleur Rose
'.txtc29t6 {font-family:'+police[0]+'; font-size:'+taille[20]+'; font-weight:'+weight[0]+'; color:'+couleur[29]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
//text couleur Saumon
'.txtc30t6 {font-family:'+police[0]+'; font-size:'+taille[20]+'; font-weight:'+weight[0]+'; color:'+couleur[30]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
//text couleur Turquoise
'.txtc31t6 {font-family:'+police[0]+'; font-size:'+taille[20]+'; font-weight:'+weight[0]+'; color:'+couleur[31]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
//text couleur Vert
'.txtc32t6 {font-family:'+police[0]+'; font-size:'+taille[20]+'; font-weight:'+weight[0]+'; color:'+couleur[32]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
//text couleur Vert clair
'.txtc33t6 {font-family:'+police[0]+'; font-size:'+taille[20]+'; font-weight:'+weight[0]+'; color:'+couleur[33]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
//text couleur Vert olive
'.txtc34t6 {font-family:'+police[0]+'; font-size:'+taille[20]+'; font-weight:'+weight[0]+'; color:'+couleur[34]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
//text couleur Vert foncé
'.txtc35t6 {font-family:'+police[0]+'; font-size:'+taille[20]+'; font-weight:'+weight[0]+'; color:'+couleur[35]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
//text couleur Vert vampire
'.txtc36t6 {font-family:'+police[0]+'; font-size:'+taille[20]+'; font-weight:'+weight[0]+'; color:'+couleur[36]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
//text couleur Vioelt
'.txtc37t6 {font-family:'+police[0]+'; font-size:'+taille[20]+'; font-weight:'+weight[0]+'; color:'+couleur[37]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
//text couleur Turquoise
'.txtc38t6 {font-family:'+police[0]+'; font-size:'+taille[20]+'; font-weight:'+weight[0]+'; color:'+couleur[38]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
//Couleur Perso
'.txtc39t6 {font-family:'+police[0]+'; font-size:'+taille[6]+'; font-weight:'+weight[0]+'; color:'+couleur[39]+'; font-style:'+style[0]+';}'+'\n'+
'.txtc39t8 {font-family:'+police[0]+'; font-size:'+taille[8]+'; font-weight:'+weight[0]+'; color:'+couleur[39]+'; font-style:'+style[0]+';}'+'\n'+
'.txtc40t6 {font-family:'+police[0]+'; font-size:'+taille[6]+'; font-weight:'+weight[0]+'; color:'+couleur[40]+'; font-style:'+style[0]+';}'+'\n'+
'.txtc40t8 {font-family:'+police[0]+'; font-size:'+taille[8]+'; font-weight:'+weight[0]+'; color:'+couleur[40]+'; font-style:'+style[0]+';}'+'\n'+
'.txtc41t6 {font-family:'+police[0]+'; font-size:'+taille[6]+'; font-weight:'+weight[0]+'; color:'+couleur[41]+'; font-style:'+style[0]+';}'+'\n'+
'.txtc41t8 {font-family:'+police[0]+'; font-size:'+taille[8]+'; font-weight:'+weight[0]+'; color:'+couleur[41]+'; font-style:'+style[0]+';}'+'\n'+
'.txtc42t6 {font-family:'+police[0]+'; font-size:'+taille[6]+'; font-weight:'+weight[0]+'; color:'+couleur[42]+'; font-style:'+style[0]+';}'+'\n'+
'.txtc42t8 {font-family:'+police[0]+'; font-size:'+taille[8]+'; font-weight:'+weight[0]+'; color:'+couleur[42]+'; font-style:'+style[0]+';}'+'\n'+
'.txtc43t6 {font-family:'+police[0]+'; font-size:'+taille[6]+'; font-weight:'+weight[0]+'; color:'+couleur[43]+'; font-style:'+style[0]+';}'+'\n'+
'.txtc43t8 {font-family:'+police[0]+'; font-size:'+taille[8]+'; font-weight:'+weight[0]+'; color:'+couleur[43]+'; font-style:'+style[0]+';}'+'\n'+
'.txtc43t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[43]+'; font-style:'+style[0]+';}'+'\n'+
'.txtc43t12 {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[0]+'; color:'+couleur[43]+'; font-style:'+style[0]+';}'+'\n'+
'.txtc43t14 {font-family:'+police[0]+'; font-size:'+taille[14]+'; font-weight:'+weight[0]+'; color:'+couleur[43]+'; font-style:'+style[0]+';}'+'\n'+
'.txtc43t16 {font-family:'+police[0]+'; font-size:'+taille[16]+'; font-weight:'+weight[0]+'; color:'+couleur[43]+'; font-style:'+style[0]+';}'+'\n'+
'.txtc43t18 {font-family:'+police[0]+'; font-size:'+taille[18]+'; font-weight:'+weight[0]+'; color:'+couleur[43]+'; font-style:'+style[0]+';}'+'\n'+
'.txtc43t20 {font-family:'+police[0]+'; font-size:'+taille[20]+'; font-weight:'+weight[0]+'; color:'+couleur[43]+'; font-style:'+style[0]+';}'+'\n'+
'.txtc45t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[45]+'; font-style:'+style[0]+';}'+'\n'+
/**************** style formulaire *******************/
'input {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[1]+'; color:navy; background-color:white; border:solid 1px green;}'+'\n'+
'textarea {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[1]+'; color:white; background-color:navy; border:solid 1px white;}'+'\n'+
/************** style puce **************************/
'ul {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[43]+';}'+'\n'+
'ul.c43t8 {font-family:'+police[0]+'; font-size:'+taille[8]+'; font-weight:'+weight[0]+'; color:'+couleur[43]+';}'+'\n'+
'ul.c43t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[43]+';}'+'\n'+
/************** style link **************************/
//a.one:link {color: #ff0000} a.one:visited {color: #0000ff} a.one:hover {color: #ffcc00}
'a {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[43]+'; text-decoration:none;}'+'\n'+
'a:hover {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[28]+'; text-decoration:underline; cursor:hand;}'+'\n'+
'a.lien {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[43]+'; text-decoration:underline;}'+'\n'+
'a.lien:hover {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[28]+'; text-decoration:underline; cursor:hand;}'+'\n'+
'a.lientitre {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[1]+'; color:blue; text-decoration:none;}'+'\n'+
'a.lientitre:hover {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[1]+'; color:'+couleur[43]+'; text-decoration:none; cursor:hand;}'+'\n'+
'a.txtMenuEtude {font-family:arial, helvetica; color:blue; font-size:10pt; font-weight:bold; text-decoration:none;}'+'\n'+
'a.txtMenuEtude:hover {font-family:arial, helvetica; color:blue; font-size:10pt; font-weight:bold; text-decoration:underline;}'+'\n'+
'a.Nav {font-family:'+police[0]+'; color:#983F14; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; text-decoration:none;}'+'\n'+
'a.Nav:hover {font-family:'+police[0]+'; color:#F1C181; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; text-decoration:none;}'+'\n'+
'a.menu {font-family:'+police[0]+'; color:yellow; font-size:'+taille[10]+'; font-weight:'+weight[1]+'; text-decoration:none;}'+'\n'+
'a.menu:hover {font-family:'+police[0]+'; color:#409F6F; font-size:'+taille[10]+'; font-weight:'+weight[1]+'; text-decoration:none;}'+'\n'+
'a.txtSsMenu {font-family:'+police[0]+'; color:#3A62A5; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; text-decoration:none;}'+'\n'+
'a.txtSsMenu:hover {font-family:'+police[0]+'; color:red; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; text-decoration:none; cursor:hand;}'+'\n'+
'a.txtEtV {font-family:'+police[0]+'; color:#409F6F; font-size:'+taille[10]+'; font-weight:'+weight[1]+'; text-decoration:none;}'+'\n'+
'a.txtEtV:hover {font-family:'+police[0]+'; color:#409F6F; font-size:'+taille[10]+'; font-weight:'+weight[1]+'; text-decoration:none; cursor:hand;}'+'\n'+
'a.etuvente {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[1]+'; color:red; text-decoration:none;}'+'\n'+
'a.txtmail {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[1]+'; text-decoration:underline;}'+'\n'+
'a.txtmail:hover {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[16]+'; text-decoration:overline; cursor:hand;}'+'\n'+
'a.navItem {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:noraml; color:'+couleur[28]+'; letter-spacing:1px; text-decoration:none;}'+'\n'+
'a.navItem:hover {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[43]+'; text-decoration:none; cursor:hand; letter-spacing:1px; background-color:#FFFFFF; border:1px solid #E5EBE8; width:140;}'+'\n'+
'a.navItemCmd {font-family:'+police[0]+'; font-size:'+taille[8]+'; font-weight:'+weight[1]+'; color:red; text-decoration:underline;}'+'\n'+
'a.navItemCmd:hover {font-family:'+police[0]+'; font-size:'+taille[8]+'; font-weight:'+weight[1]+'; color:red; text-decoration:none; cursor:hand; background-color:'+couleur[1]+'}'+'\n'+
'a.txtaccueil {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[1]+'; color:'+couleur[43]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+'; cursor:hand;}'+'\n'+
'a.txtaccueil:hover {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[1]+'; color:'+couleur[43]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[1]+'; cursor:hand;}'+'\n'+
'a.txtnav {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[1]+'; color:'+couleur[16]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
'a.txtnav:hover {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[1]+'; color:'+couleur[16]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[1]+'; cursor:hand;}'+'\n'+
'a.txtnav2 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[1]+'; color:'+couleur[1]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[0]+';}'+'\n'+
'a.txtnav2:hover {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[1]+'; color:'+couleur[1]+'; font-style:'+style[0]+'; text-align:'+txt_align[0]+'; text-decoration:'+txt_deco[1]+'; cursor:hand;}'+'\n'+
'a:hover {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[0]+'; color:green; text-decoration:none;}'+'\n'+
'a.etuvente {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[1]+'; color:blue; text-decoration:none; cursor:hand;}'+'\n'+
'a.etuvente:hover {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[0]+'; color:red; text-decoration:underline overline; background:yellow;}'+'\n'+
'table.titre {border:solid 2px green}'+'\n'+
'td.tdmenu {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[1]+'; color:blue; text-decoration:none; cursor:hand;}'+'\n'+
'td.tdmenu:hover {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[0]+'; color:red; text-decoration:underline overline; background:yellow; boredr:1px solid #0CA71E;}'+'\n'+
'.test {font-family:'+police[0]+'; font-size:'+taille[8]+'; font-weight:'+weight[0]+'; color:'+couleur[45]+'; text-decoration:none; background-color: #F1F1F1; border-color: #F1F1F1; border-width: 1px; border-style: solid; padding-left: 6px; padding-right: 25px; padding-top: 1px;}'+'\n'+
'.testOver {font-family:'+police[0]+'; font-size:'+taille[8]+'; font-weight:'+weight[0]+'; color:'+couleur[1]+'; text-decoration:none; background-color: gray; border-color: #000000; border-width: 1px; border-height:1px; border-style: solid; padding-left: 6px; padding-right: 25px; padding-top: 1px; cursor: hand; padding: 1px 25px 3px 6px;}'+'\n'+
'a.close {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[1]+'; text-decoration:none;}'+'\n'+
'a.close:hover {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[16]+'; text-decoration:underline; cursor:'+cursor[1]+';}'+'\n'+
'a.travelS {font-family:'+police[0]+'; font-size:'+taille[8]+'; font-weight:'+weight[1]+'; color:'+couleur[43]+'; background-color:#FFFF99; text-decoration:underline; font-style:'+style[0]+'; cursor:hand;}'+'\n'+
'a.travelS:hover {font-family:'+police[0]+'; font-size:'+taille[8]+'; font-weight:'+weight[1]+'; color:'+couleur[28]+'; text-decoration:overline; font-style:'+style[1]+'; cursor:hand;}'+'\n'+
'p.nav {border:0px solid #EEEEEE; background-color:#0CA51E; letter-spacing:1px;}'+'\n'+
'p.presse {background-color:#0CA51E;}'+'\n'+
'hr {font-family:'+police[0]+'; font-size:8pt; font-weight:'+weight[1]+'; color:'+couleur[3]+';}'+'\n'+
'test.hr {font-family:'+police[0]+'; font-size:8pt; font-weight:'+weight[1]+'; color:'+couleur[5]+';}'+'\n'+
'div {position:absolute;}'+'\n'+
//'.'+'\n'+
'</style>'
}
// Netscape P.C
else if(brows_name.indexOf("Netscape") != -1)
{
ref_style = '<style type="text/css">'+'\n'+
/******************* style text ********************
ex --> txtc0_t6 signifie : textcouleur[0]_taille[6]
voir le tableau des couleurs et des tailles ci-dessus
//text couleur Argent
'.txtc0t6 {font-family:'+police[0]+'; font-size:'+taille[6]+'; font-weight:'+weight[0]+'; color:'+couleur[0]+';}'+'\n'+
//text couleur Blanc
'.txtc1t8 {font-family:'+police[0]+'; font-size:'+taille[8]+'; font-weight:'+weight[0]+'; color:'+couleur[1]+';}'+'\n'+
'.txtc1t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[1]+';}'+'\n'+
'.txtc1t12 {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[0]+'; color:'+couleur[1]+';}'+'\n'+
'.txtc1t14 {font-family:'+police[0]+'; font-size:'+taille[14]+'; font-weight:'+weight[0]+'; color:'+couleur[1]+';}'+'\n'+
//text couleur Bleu
'.txtc2t6 {font-family:'+police[0]+'; font-size:'+taille[6]+'; font-weight:'+weight[0]+'; color:'+couleur[2]+';}'+'\n'+
'.txtc2t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[2]+';}'+'\n'+
//text ouleur Bleu ciel
'.txtc3t6 {font-family:'+police[0]+'; font-size:'+taille[6]+'; font-weight:'+weight[0]+'; color:'+couleur[3]+';}'+'\n'+
//text couleur Bleu clair
'.txtc4t6 {font-family:'+police[0]+'; font-size:'+taille[6]+'; font-weight:'+weight[0]+'; color:'+couleur[4]+';}'+'\n'+
'.txtc4t8 {font-family:'+police[0]+'; font-size:'+taille[8]+'; font-weight:'+weight[0]+'; color:'+couleur[4]+';}'+'\n'+
//text couleur Bleu azur
'.txtc5t6 {font-family:'+police[0]+'; font-size:'+taille[6]+'; font-weight:'+weight[0]+'; color:'+couleur[5]+';}'+'\n'+
'.txtc5t8 {font-family:'+police[0]+'; font-size:'+taille[8]+'; font-weight:'+weight[0]+'; color:'+couleur[5]+';}'+'\n'+
//text couleur Bleu foncé
'.txtc6t6 {font-family:'+police[0]+'; font-size:'+taille[6]+'; font-weight:'+weight[0]+'; color:'+couleur[6]+';}'+'\n'+
'.txtc6t20 {font-family:'+police[0]+'; font-size:'+taille[20]+'; font-weight:'+weight[0]+'; color:'+couleur[6]+';}'+'\n'+
//text couleur Bleu marine
'.txtc7t6 {font-family:'+police[0]+'; font-size:'+taille[6]+'; font-weight:'+weight[0]+'; color:'+couleur[7]+';}'+'\n'+
//text couleur Bleu violet
'.txtc8t6 {font-family:'+police[0]+'; font-size:'+taille[6]+'; font-weight:'+weight[0]+'; color:'+couleur[8]+';}'+'\n'+
'.txtc8t8 {font-family:'+police[0]+'; font-size:'+taille[8]+'; font-weight:'+weight[0]+'; color:'+couleur[8]+';}'+'\n'+
'.txtc8t20 {font-family:'+police[0]+'; font-size:'+taille[20]+'; font-weight:'+weight[0]+'; color:'+couleur[8]+';}'+'\n'+
//text couleur Beige
'.txtc9t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[9]+';}'+'\n'+
//text couleur Brun
'.txtc10t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[10]+';}'+'\n'+
//text couleur Brun clair
'.txtc11t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[11]+';}'+'\n'+
//text couleur Cyan foncé
'.txtc12t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[12]+';}'+'\n'+
//text couleur Fuchsia
'.txtc13t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[13]+';}'+'\n'+
//text couleur Gris
'.txtc14t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[14]+';}'+'\n'+
//text couleur Ivoire
'.txtc15t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[15]+';}'+'\n'+
//text couleur Jaune
'.txtc16t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[16]+';}'+'\n'+
//text couleur Jaune paille
'.txtc17t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[17]+';}'+'\n'+
//text couleur Lavande
'.txtc18t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[18]+';}'+'\n'+
//text couleur Maron
'.txtc19t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[19]+';}'+'\n'+
//text couleur Maron Chaucolat
'.txtc20t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[20]+';}'+'\n'+
//text couleur Mauve foncé
'.txtc21t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[21]+';}'+'\n'+
//text couleur Noir
'.txtc22t8 {font-family:'+police[0]+'; font-size:'+taille[8]+'; font-weight:'+weight[0]+'; color:'+couleur[22]+';}'+'\n'+
'.txtc22t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[22]+';}'+'\n'+
//text couleur Neige
'.txtc23t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[23]+';}'+'\n'+
//text couleur Orange
'.txtc24t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[24]+';}'+'\n'+
//text couleur Orange foncé
'.txtc25t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[25]+';}'+'\n'+
//text couleur Or
'.txtc26t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[26]+';}'+'\n'+
//text couleur Prune
'.txtc27t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[27]+';}'+'\n'+
//text couleur Rouge
'.txtc28t6 {font-family:'+police[0]+'; font-size:'+taille[6]+'; font-weight:'+weight[0]+'; color:'+couleur[28]+';}'+'\n'+
'.txtc28t8 {font-family:'+police[0]+'; font-size:'+taille[8]+'; font-weight:'+weight[0]+'; color:'+couleur[28]+';}'+'\n'+
'.txtc28t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[1]+'; color:'+couleur[28]+';}'+'\n'+
'.txtc28t12 {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[0]+'; color:'+couleur[28]+';}'+'\n'+
'.txtc28t14 {font-family:'+police[0]+'; font-size:'+taille[14]+'; font-weight:'+weight[0]+'; color:'+couleur[28]+';}'+'\n'+
'.txtc28t16 {font-family:'+police[0]+'; font-size:'+taille[16]+'; font-weight:'+weight[0]+'; color:'+couleur[28]+';}'+'\n'+
'.txtc28t18 {font-family:'+police[0]+'; font-size:'+taille[18]+'; font-weight:'+weight[0]+'; color:'+couleur[28]+';}'+'\n'+
'.txtc28t20 {font-family:'+police[0]+'; font-size:'+taille[20]+'; font-weight:'+weight[0]+'; color:'+couleur[28]+';}'+'\n'+
//text couleur Rose
'.txtc29t6 {font-family:'+police[0]+'; font-size:'+taille[20]+'; font-weight:'+weight[0]+'; color:'+couleur[29]+';}'+'\n'+
//text couleur Saumon
'.txtc30t6 {font-family:'+police[0]+'; font-size:'+taille[20]+'; font-weight:'+weight[0]+'; color:'+couleur[30]+';}'+'\n'+
//text couleur Turquoise
'.txtc31t6 {font-family:'+police[0]+'; font-size:'+taille[20]+'; font-weight:'+weight[0]+'; color:'+couleur[31]+';}'+'\n'+
//text couleur Vert
'.txtc32t6 {font-family:'+police[0]+'; font-size:'+taille[20]+'; font-weight:'+weight[0]+'; color:'+couleur[32]+';}'+'\n'+
//text couleur Vert clair
'.txtc33t6 {font-family:'+police[0]+'; font-size:'+taille[20]+'; font-weight:'+weight[0]+'; color:'+couleur[33]+';}'+'\n'+
//text couleur Vert olive
'.txtc34t6 {font-family:'+police[0]+'; font-size:'+taille[20]+'; font-weight:'+weight[0]+'; color:'+couleur[34]+';}'+'\n'+
//text couleur Vert foncé
'.txtc35t6 {font-family:'+police[0]+'; font-size:'+taille[20]+'; font-weight:'+weight[0]+'; color:'+couleur[35]+';}'+'\n'+
//text couleur Vert vampire
'.txtc36t6 {font-family:'+police[0]+'; font-size:'+taille[20]+'; font-weight:'+weight[0]+'; color:'+couleur[36]+';}'+'\n'+
//text couleur Vioelt
'.txtc37t6 {font-family:'+police[0]+'; font-size:'+taille[20]+'; font-weight:'+weight[0]+'; color:'+couleur[37]+';}'+'\n'+
//text couleur Turquoise
'.txtc38t6 {font-family:'+police[0]+'; font-size:'+taille[20]+'; font-weight:'+weight[0]+'; color:'+couleur[38]+';}'+'\n'+
//Couleur Perso
'.txtc39t6 {font-family:'+police[0]+'; font-size:'+taille[6]+'; font-weight:'+weight[0]+'; color:'+couleur[39]+';}'+'\n'+
'.txtc39t8 {font-family:'+police[0]+'; font-size:'+taille[8]+'; font-weight:'+weight[0]+'; color:'+couleur[39]+';}'+'\n'+
'.txtc40t6 {font-family:'+police[0]+'; font-size:'+taille[6]+'; font-weight:'+weight[0]+'; color:'+couleur[40]+';}'+'\n'+
'.txtc40t8 {font-family:'+police[0]+'; font-size:'+taille[8]+'; font-weight:'+weight[0]+'; color:'+couleur[40]+';}'+'\n'+
'.txtc41t6 {font-family:'+police[0]+'; font-size:'+taille[6]+'; font-weight:'+weight[0]+'; color:'+couleur[41]+';}'+'\n'+
'.txtc41t8 {font-family:'+police[0]+'; font-size:'+taille[8]+'; font-weight:'+weight[0]+'; color:'+couleur[41]+';}'+'\n'+
'.txtc42t6 {font-family:'+police[0]+'; font-size:'+taille[6]+'; font-weight:'+weight[0]+'; color:'+couleur[42]+';}'+'\n'+
'.txtc42t8 {font-family:'+police[0]+'; font-size:'+taille[8]+'; font-weight:'+weight[0]+'; color:'+couleur[42]+';}'+'\n'+
'.txtc43t6 {font-family:'+police[0]+'; font-size:'+taille[6]+'; font-weight:'+weight[0]+'; color:'+couleur[43]+';}'+'\n'+
'.txtc43t8 {font-family:'+police[0]+'; font-size:'+taille[8]+'; font-weight:'+weight[0]+'; color:'+couleur[43]+';}'+'\n'+
'.txtc43t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[43]+';}'+'\n'+
'.txtc43t12 {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[0]+'; color:'+couleur[43]+';}'+'\n'+
'.txtc43t14 {font-family:'+police[0]+'; font-size:'+taille[14]+'; font-weight:'+weight[0]+'; color:'+couleur[43]+';}'+'\n'+
'.txtc43t16 {font-family:'+police[0]+'; font-size:'+taille[16]+'; font-weight:'+weight[0]+'; color:'+couleur[43]+';}'+'\n'+
'.txtc43t18 {font-family:'+police[0]+'; font-size:'+taille[18]+'; font-weight:'+weight[0]+'; color:'+couleur[43]+';}'+'\n'+
'.txtc43t20 {font-family:'+police[0]+'; font-size:'+taille[20]+'; font-weight:'+weight[0]+'; color:'+couleur[43]+';}'+'\n'+
'.txtc45t10 {font-family:'+police[0]+'; font-size:'+taille[10]+'; font-weight:'+weight[0]+'; color:'+couleur[45]+';}'+'\n'+
'</style>'
}
/********************************* Styles pour MAC *************************************/
else if((agent.indexOf("Macintosh") != -1) || (agent.indexOf("Mac") != -1))
{
// Explorer 4 MAC
if(brows_vers.indexOf("MSIE 4") > 0)
{
ref_style = '<style type="text/css">'+'\n'+
'body {scrollbar-face-color:blue; scrollbar-3dlight-color:white; scrollbar-shadow-color:navy; scrollbar-track-color:navy; scrollbar-highlight-color:cyan; scrollbar-base-color:red; scrollbar-darkshadow-color:white; scrollbar-arrow-color:red;}'+'\n'+
'.titre {font-family:'+police[0]+'; font-size:14px; font-weight:'+weight[1]+'; color:green;}'+'\n'+
'.txtblanc {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[0]+'; color:white;}'+'\n'+
'.txtblancG {font-family:'+police[0]+'; font-size:14px; font-weight:'+weight[0]+'; color:white;}'+'\n'+
'.txtbleuN {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[0]+'; color:blue;}'+'\n'+
'.txtbleuB {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[1]+'; color:blue;}'+'\n'+
'.txtred {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[1]+'; color:red;}'+'\n'+
'.txtyellow {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[1]+'; color:yellow;}'+'\n'+
'.txtgreen {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[1]+'; color:green;}'+'\n'+
'.txtcyan {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[1]+'; color:cyan;}'+'\n'+
'.txtnavy {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[1]+'; color:navy;}'+'\n'+
'.date {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[1]+'; color:navy;}'+'\n'+
'input {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[1]+'; color:navy; background-color:red; border:solid 1px red;}'+'\n'+
'textarea {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[1]+'; color:white; background-color:navy; border:solid 1px white;}'+'\n'+
'a {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[0]+'; color:red; text-decoration:none;}'+'\n'+
'a:hover {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[0]+'; color:blue; text-decoration:underline;}'+'\n'+
'a.etuvente {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[1]+'; color:blue; text-decoration:none;}'+'\n'+
'a.etuvente:hover {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[0]+'; color:red; text-decoration:underline overline; background:yellow;}'+'\n'+
'table.titre {border:solid 2px green}'+'\n'+
'ul {color:blue; font-family: Arial, Helvetica; font-size: 12px;}'+'\n'+
//'.'+'\n'+
'</style>'
}
// Explorer 5 MAC
else if(brows_vers.indexOf("MSIE 5") > 0)
{
ref_style = '<style type="text/css">'+'\n'+
'body {scrollbar-face-color:blue; scrollbar-3dlight-color:white; scrollbar-shadow-color:navy; scrollbar-track-color:navy; scrollbar-highlight-color:cyan; scrollbar-base-color:red; scrollbar-darkshadow-color:white; scrollbar-arrow-color:red;}'+'\n'+
'.titre {font-family:'+police[0]+'; font-size:14px; font-weight:'+weight[1]+'; color:green;}'+'\n'+
'.txtblanc {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[0]+'; color:white;}'+'\n'+
'.txtblancG {font-family:'+police[0]+'; font-size:14px; font-weight:'+weight[0]+'; color:white;}'+'\n'+
'.txtbleuN {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[0]+'; color:blue;}'+'\n'+
'.txtbleuB {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[1]+'; color:blue;}'+'\n'+
'.txtred {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[1]+'; color:red;}'+'\n'+
'.txtyellow {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[1]+'; color:yellow;}'+'\n'+
'.txtgreen {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[1]+'; color:green;}'+'\n'+
'.txtcyan {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[1]+'; color:cyan;}'+'\n'+
'.txtnavy {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[1]+'; color:navy;}'+'\n'+
'.date {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[1]+'; color:navy;}'+'\n'+
'input {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[1]+'; color:navy; background-color:red; border:solid 1px red;}'+'\n'+
'textarea {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[1]+'; color:white; background-color:navy; border:solid 1px white;}'+'\n'+
'a {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[0]+'; color:red; text-decoration:none;}'+'\n'+
'a:hover {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[0]+'; color:blue; text-decoration:underline overline;}'+'\n'+
'a.etuvente {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[1]+'; color:blue; text-decoration:none;}'+'\n'+
'a.etuvente:hover {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[0]+'; color:red; text-decoration:underline overline; background:yellow;}'+'\n'+
'table.titre {border:solid 2px green}'+'\n'+
'ul {color:blue; font-family: Arial, Helvetica; font-size: 12px;}'+'\n'+
//'.'+'\n'+
'</style>'
}
// Netscape MAC
else if(brows_name.indexOf("Netscape") != -1)
{
ref_style = '<style type="text/css">'+'\n'+
'.txtc0t6 {font-family:arial; font-size:12pt; color:red; font-weight:'+weight[1]+';}'+'\n'+
'.txtblanc {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[0]+'; color:white;}'+'\n'+
'.txtblancG {font-family:'+police[0]+'; font-size:14px; font-weight:'+weight[0]+'; color:white;}'+'\n'+
'.txtbleuN {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[0]+'; color:blue;}'+'\n'+
'.txtbleuB {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[1]+'; color:blue;}'+'\n'+
'.txtred {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[1]+'; color:red;}'+'\n'+
'.txtyellow {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[1]+'; color:yellow;}'+'\n'+
'.txtgreen {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[1]+'; color:green;}'+'\n'+
'.txtcyan {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[1]+'; color:cyan;}'+'\n'+
'.txtnavy {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[1]+'; color:navy;}'+'\n'+
'.date {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[1]+'; color:navy;}'+'\n'+
'input {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[1]+'; color:navy; background-color:red; border:solid 1px red;}'+'\n'+
'a {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[0]+'; color:red; text-decoration:none;}'+'\n'+
'a:hover {font-family:'+police[0]+'; font-size:'+taille[12]+'; font-weight:'+weight[0]+'; color:blue; text-decoration:underline;}'+'\n'+
'ul {color:blue; font-family: Arial, Helvetica; font-size: 14px;}'+'\n'+
//'.'+'\n'+
'</style>'
}
}
/* **************** ***************** ********** Fin *********** ********************* ********************/
document.write(ref_style);
Conclusion :
Pour tester ce code, créer une page html (ex : css.htm) et copier le code suivant :
<html>
<head>
<title>CSS</title>
<script language="JavaScript" type="text/javascript" src="css.js"></script>
</head>
<body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">
<span class='txtc0t6'>Text</span>
<hr>
<span class='txtc0t8'>Text</span>
<hr>
<span class='txtc2t10'>Text</span>
<ul>
<li>Text</li>
</ul>
<hr class="test">
<span class='txtc10t10'>Text</span>
<p>
<a href="#">Lien</a>
</body>
</html>
Vous n'êtes pas encore membre ?
inscrivez-vous, c'est gratuit et ça prend moins d'une minute !
Les membres obtiennent plus de réponses que les utilisateurs anonymes.
Le fait d'être membre vous permet d'avoir un suivi détaillé de vos demandes et codes sources.
Le fait d'être membre vous permet d'avoir des options supplémentaires.