css selecteur h1.htm
À propos du fichier
- Type de fichier
- Fichier HTM de 2 Ko (text/plain)
- Confidentialité
- Fichier public, envoyé le 10 novembre 2010 à 12:42, depuis l'adresse IP 77.203.x.x (France)
- Sécurité
- Ne contient aucun Virus ou Malware connus - Dernière vérification: 3 jours
- Statistiques
- La présente page de téléchargement a été vue 1074 fois depuis l'envoi du fichier
- Page de téléchargement
-
Aperçu du fichier
var type = getCookie('template1');
var temsel = document.getElementById('temsel');
temsel.innerHTML ='<select onchange="changeskin(this.options[this.selectedIndex].value);window.location.reload();"><option> Changer le style </option><option value="valeur1"> Orange </option><option value="valeur2"> Black is black </option><option value="valeur3"> Red Clan </option><option value="valeur4"> Karakorum </option><option value="valeur5"> Tasmanie </option></select>';
if (type == 'valeur1')
{
document.write('<link rel="stylesheet" type="text/css" href="http://www.archive-host.com/files/656842/c6677786becf8b2aea6b584730389628927253e6/orange.css">');
}
else if (type == 'valeur2')
{
document.write('<link rel="stylesheet" type="text/css" href="http://www.archive-host.com/files/656844/c6677786becf8b2aea6b584730389628927253e6/gris_fonce.css">');
}
else if (type == 'valeur3')
{
document.write('<link rel="stylesheet" type="text/css" href="http://www.archive-host.com/files/656847/c6677786becf8b2aea6b584730389628927253e6/rouge.css">');
}
else if (type == 'valeur4')
{
document.write('<link rel="stylesheet" type="text/css" href="http://www.archive-host.com/files/656848/c6677786becf8b2aea6b584730389628927253e6/gris_clair.css">');
}
else if (type == 'valeur5')
{
document.write('<link rel="stylesheet" type="text/css" href="http://www.archive-host.com/files/656849/c6677786becf8b2aea6b584730389628927253e6/vert.css">');
}
function changeskin(change) {
var scheme = change;
var name = 'template1';
var pathname = location.pathname;
//var myDomain = pathname.substring(0,pathname.lastIndexOf('/')) +'/';
var ExpDate = new Date ();
ExpDate.setTime(ExpDate.getTime() + (180 * 24 * 3600 * 1000));
setCookie(name,scheme,ExpDate,'/');
}
function getCookie(name){
var cname = name + "=";
var dc = document.cookie;
if (dc.length > 0) {
begin = dc.indexOf(cname);
if (begin != -1) {
begin += cname.length;
end = dc.indexOf(";", begin);
if (end == -1) end = dc.length;
return unescape(dc.substring(begin, end));
}
}
return null;
}
function setCookie(name, value, expires, path, domain, secure) {
document.cookie = name + "=" + escape(value) +
((expires == null) ? "" : "; expires=" + expires.toGMTString()) +
((path == null) ? "" : "; path=" + path) +
((domain == null) ? "" : "; domain=" + domain) +
((secure == null) ? "" : "; secure");
}
Partager le fichier css-selecteur-h1.htm sur le Web et les réseaux sociaux:
Télécharger le fichier css-selecteur-h1.htm
Télécharger css-selecteur-h1.htm