oui HTMl + CSS + Javascriptok merci.
donc il suffit de faire un bandeau en php avec une feuille de style css et le tour est joué?
Même pour le scroll? si je bouge ma page le texte passera bien en dessous? est-ce que l'internaute pourra s'il le souhaite fermer ce bandeau?
Merci
Code : Tout sélectionner
#pied_de_page {positon: fixed;}
ou le choix entre 2 skins differents, qui peut se faire en css je crois.
<!-- DEBUT DU SCRIPT -->
<SCRIPT LANGUAGE="JavaScript">
ejs_logo_url = "monimage.png";
ejs_logo_redir = "redirection vers une page de mon site";
if (document.getElementById)
{
var staticlogo=new Image;
staticlogo.src=ejs_logo_url;
document.write('<div id="ejs_logo" style="z-index:200;position:absolute;width:'+staticlogo.width+';height:'+staticlogo.height+'"><a href="'+ejs_logo_redir+'" target=_blank><img src="'+staticlogo.src+'" border=0 /></a></div><div id="ejs_logo2" style="z-index:100;position:absolute;width:'+staticlogo.width+';height:'+staticlogo.height+';background:transparent;filter:alpha(opacity=40); -moz-opacity: .4;"></a></div>')
ejs_scx = document.body.clientWidth;
ejs_scy = document.body.clientHeight;
document.getElementById("ejs_logo").style.top=(ejs_scy-staticlogo.height-30);
document.getElementById("ejs_logo").style.left=(ejs_scx-staticlogo.width-30);
document.getElementById("ejs_logo2").style.top=(ejs_scy-staticlogo.height-25);
document.getElementById("ejs_logo2").style.left=(ejs_scx-staticlogo.width-25);
}
function logoit()
{
if (document.getElementById)
{
w2=document.body.scrollTop;
document.getElementById("ejs_logo").style.top=(w2+ejs_scy-staticlogo.height-30);
document.getElementById("ejs_logo2").style.top=(w2+ejs_scy-staticlogo.height-25);
setTimeout("logoit()",1);
}
}
window.onload=logoit
</SCRIPT>
<!-- FIN DU SCRIPT -->
Pour que ce script fonctionne je l'ai inséré dans l'entête de ma page index.php à l'aide de include-once ("monfichier.html");