It is currently Mon 26 Sep 2016 - 15:54 - créer un forum

[Tuto] POPUP persistante de notification en DHTML

Skip to content

Post new topic Reply to topic Goto page: <  1, 2, 35, 6, 723, 24, 25  >

[Tuto] POPUP persistante de notification en DHTML
Author Message
themalin


Joined: 19 Apr 2006
Posts: 8,897

PostPosted: Fri 24 Oct 2008 - 16:09    Post subject: [Tuto] POPUP persistante de notification en DHTML Reply with quote

PublicitéSupprimer les publicités ?
Previous post review:

bonjour

mets le code après la balise


 
Code: Sélectionner - Agrandir
<head> 
Forum
Author Message
nordine29200


Offline
Guest




PostPosted: Fri 24 Oct 2008 - 16:21    Post subject: [Tuto] POPUP persistante de notification en DHTML Reply with quote

ok j'essaie ça de suite mais en principe c'est pas la balise </head> ??

Author Message
themalin
Membre


Offline
Membre

Joined: 19 Apr 2006
Posts: 8,897
Point(s): 9,101
Moyenne: 1.02
Mac Firefox (ou l'un de ses dérivés : Minefield/Pale Moon/...)

PostPosted: Fri 24 Oct 2008 - 16:22    Post subject: [Tuto] POPUP persistante de notification en DHTML Reply with quote

tu mets soit

après


 
Code: Sélectionner - Agrandir
<head> 



soit avant


 
Code: Sélectionner - Agrandir
</head> 

ce qui revient à mettre comme ça


 
Code: Sélectionner - Agrandir
<head>

ton code

</head> 

_______________________


Forum
Author Message
nordine29200


Offline
Guest




PostPosted: Fri 24 Oct 2008 - 16:23    Post subject: [Tuto] POPUP persistante de notification en DHTML Reply with quote

ok donc j'essaie ça de suite
merci themalin


Author Message
nordine29200


Offline
Guest




PostPosted: Fri 24 Oct 2008 - 16:25    Post subject: [Tuto] POPUP persistante de notification en DHTML Reply with quote

ici l'endroit ou je le place au niveau du body c'est bon ??

<body background="http://img.xooimage.com/files3/b/a/background-36671.gif" bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}">
    <!-- BEGIN switch_user_logged_out -->

   

    <span><a href="" onclick="closebar(); return false">
   

    [/url]</span>
    <span style="color:#3253A4;"> Bienvenue humble visiteur

    Veuillez vous inscrire
     ou vous connecter
</span>


    
    <!-- END switch_user_logged_out -->


Author Message
themalin
Membre


Offline
Membre

Joined: 19 Apr 2006
Posts: 8,897
Point(s): 9,101
Moyenne: 1.02
Mac Firefox (ou l'un de ses dérivés : Minefield/Pale Moon/...)

PostPosted: Fri 24 Oct 2008 - 16:29    Post subject: [Tuto] POPUP persistante de notification en DHTML Reply with quote

oui tu mets bien le code indiqué après le body

chez toi c'est tout ça


 
Code: Sélectionner - Agrandir
<body background="http://img3.xooimage.com/files/b/a/background-36671.gif" bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}">  

_______________________


Forum
Author Message
nordine29200


Offline
Guest




PostPosted: Fri 24 Oct 2008 - 16:34    Post subject: [Tuto] POPUP persistante de notification en DHTML Reply with quote

arrf thémalin ça ne fonctionne toujours pas et pourtant je viens de refaire l'opération tout est bien en place

<!-- DEBUT DU SCRIPT -->
<STYLE TYPE="text/css">
<!--  
#cache {
    position:absolute; top:200px; z-index:20; visibility:hidden;
}
-->
</STYLE>

<TABLE WIDTH=450 BGCOLOR=#FFFFFF BORDER=0 CELLPADDING=2 CELLSPACING=0><TR><TD ALIGN=center VALIGN=middle><TABLE WIDTH=100% BGCOLOR=#FF9900 BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD ALIGN=center VALIGN=middle><FONT FACE="Verdana" SIZE=2 COLOR=#FFFFFF><BR>e forum infos détente subi des transformations excusez nous pour la gêne occasionné
<font color=red>La Team F.I.D</font><BR><BR></FONT></TD>  </TR></TABLE></TD>  </TR></TABLE>


<SCRIPT LANGUAGE="JavaScript">
/*
SCRIPT EDITE SUR L'EDITEUR JAVASCRIPT
http://www.editeurjavascript.com
*/
var nava = (document.layers);
var dom = (document.getElementById);
var iex = (document.all);
if (nava) { cach = document.cache }
else if (dom) { cach = document.getElementById("cache").style }
else if (iex) { cach = cache.style }
largeur = screen.width;
cach.left = Math.round((largeur/2)-200);
cach.visibility = "visible";

function cacheOff()
   {
   cach.visibility = "hidden";
   }
window.onload = cacheOff
</SCRIPT>
<!-- FIN DU SCRIPT -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{S_CONTENT_DIRECTION}">
    <script type="text/javascript">
    var PreloadFlag = false;
    var expDays = 90;
    var exp = new Date();
    var tmp = '';
    var tmp_counter = 0;
    var tmp_open = 0;

    exp.setTime(exp.getTime() + (expDays*24*60*60*1000));

    function SetCookie(name, value)
    {
       var argv = SetCookie.arguments;
       var argc = SetCookie.arguments.length;
       var expires = (argc > 2) ? argv[2] : null;
       var path = (argc > 3) ? argv[3] : null;
       var domain = (argc > 4) ? argv[4] : null;
       var secure = (argc > 5) ? argv[5] : false;
       document.cookie = name + "=" + escape(value) +
          ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
          ((path == null) ? "" : ("; path=" + path)) +
          ((domain == null) ? "" : ("; domain=" + domain)) +
          ((secure == true) ? "; secure" : "");
    }

    function getCookieVal(offset)
    {
       var endstr = document.cookie.indexOf(";",offset);
       if (endstr == -1)
       {
          endstr = document.cookie.length;
       }
       return unescape(document.cookie.substring(offset, endstr));
    }

    function GetCookie(name)
    {
       var arg = name + "=";
       var alen = arg.length;
       var clen = document.cookie.length;
       var i = 0;
       while (i < clen)
       {
          var j = i + alen;
          if (document.cookie.substring(i, j) == arg)
          {
             return getCookieVal(j);
          }
          i = document.cookie.indexOf(" ", i) + 1;
          if (i == 0)
          {
             break;
          }
       }
       return null;
    }

    function ShowHide(id1, id2, id3)
    {
       var res = expMenu(id1);
       if (id2 != '')
       {
          expMenu(id2);
       }
       if (id3 != '')
       {
          SetCookie(id3, res, exp);
       }
    }

    function expMenu(id)
    {
       var itm = null;
       if (document.getElementById)
       {
          itm = document.getElementById(id);
       }
       else if (document.all)
       {
          itm = document.all[id];
       }
       else if (document.layers)
       {
          itm = document.layers[id];
       }
       if (!itm)
       {
          // do nothing
       }
       else if (itm.style)
       {
          if (itm.style.display == "none")
          {
             itm.style.display = "";
             return 1;
          }
          else
          {
             itm.style.display = "none";
             return 2;
          }
       }
       else
       {
          itm.visibility = "show";
          return 1;
       }
    }
    </script><head>    <script type="text/javascript">
    var persistclose=0 //set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser session
    var startX = 30 //set x offset of bar in pixels
    var startY = 4 //set y offset of bar in pixels
    var verticalpos="fromtop" //enter "fromtop" or "frombottom"

    function iecompattest(){
    return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
    }

    function get_cookie(Name) {
    var search = Name + "="
    var returnvalue = "";

    if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search)
    if (offset != -1) {
    offset += search.length
    end = document.cookie.indexOf(";", offset);
    if (end == -1) end = document.cookie.length;
    returnvalue=unescape(document.cookie.substring(offset, end))
    }
    }
    return returnvalue;
    }

    function closebar(){
    if (persistclose)
    document.cookie="remainclosed=1"
    document.getElementById("topbar").style.visibility="hidden"
    }

    function staticbar(){
    barheight=document.getElementById("topbar").offsetHeight
    var ns = (navigator.appName.indexOf("Netscape") != -1) || window.opera;
    var d = document;
    function ml(id){
    var el=d.getElementById(id);
    if (!persistclose || persistclose && get_cookie("remainclosed")=="")
    el.style.visibility="visible"
    if(d.layers)el.style=el;
    el.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px";};
    el.x = startX;
    if (verticalpos=="fromtop")
    el.y = startY;
    else{
    el.y = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight;
    el.y -= startY;
    }
    return el;
    }
    window.stayTopLeft=function(){
    if (verticalpos=="fromtop"){
    var pY = ns ? pageYOffset : iecompattest().scrollTop;
    ftlObj.y += (pY + startY - ftlObj.y)/8;
    }
    else{
    var pY = ns ? pageYOffset + innerHeight - barheight: iecompattest().scrollTop + iecompattest().clientHeight - barheight;
    ftlObj.y += (pY - startY - ftlObj.y)/8;
    }
    ftlObj.sP(ftlObj.x, ftlObj.y);
    setTimeout("stayTopLeft()", 10);
    }
    ftlObj = ml("topbar");
    stayTopLeft();
    }

    if (window.addEventListener)
    window.addEventListener("load", staticbar, false)
    else if (window.attachEvent)
    window.attachEvent("onload", staticbar)
    else if (document.getElementById)
    window.onload=staticbar
    </script>
    <style type="text/css">
    #topbar{
    position:absolute;
    background-color : #eaedf4;
    border : 1px solid #9893C6;
    -moz-border-radius: 12px;
    padding: 4px 0px 14px 0px;
    width: 360px;
    visibility: hidden;
    z-index: 0;
    }
    </style>
<meta name="verify-v1" content="c3Jy1AOl+4aujoV5BlUmb3SSEmv60xCpuuWKlXLZZlI=" />
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}" />
<meta http-equiv="Content-Style-Type" content="text/css" />
{META}
<title>{SITENAME} :: {PAGE_TITLE}</title>
<link rel="stylesheet" href="http://img.xooimage.com/files9/5/c/7/zonecopper-57b028.css" type="text/css" />
<style type="text/css">
<!--
td.cat,td.cathead,td.catsides,td.catleft,td.catright,td.catbottom { background-image: url(http://img.xooimage.com/files10/c/e/cellpic1-3667e.gif) }
th { background-image: url(http://img.xooimage.com/files10/c/e/cellpic3-3667d.gif) }
td.rowpic { background-image: url(http://img.xooimage.com/files4/c/e/cellpic2-36672.jpg); background-repeat: repeat-y }
-->
</style>
<!-- BEGIN switch_enable_pm_popup -->
<script language="Javascript" type="text/javascript">
<!--
    if ({PRIVATE_MESSAGE_NEW_FLAG})
    {
        window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
    }
//-->
</script>
<!-- END switch_enable_pm_popup -->
<link rel="shortcut icon" href="http://www.icone-gif.com/gif/insolite/insolite-gif-099.gif">
</head><a name="top">[/url]
<body background="http://img.xooimage.com/files3/b/a/background-36671.gif" bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}">
    <!-- BEGIN switch_user_logged_out -->

   

    <span><a href="" onclick="closebar(); return false">
   

    [/url]</span>
    <span style="color:#3253A4;"> Bienvenue humble visiteur

    Veuillez vous inscrire
     ou vous connecter
</span>


    
    <!-- END switch_user_logged_out -->
<a name="top">[/url]


<table width="90%" cellpadding="0" cellspacing="0"><tr><td width="100%">

  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>


Author Message
themalin
Membre


Offline
Membre

Joined: 19 Apr 2006
Posts: 8,897
Point(s): 9,101
Moyenne: 1.02
Mac Firefox (ou l'un de ses dérivés : Minefield/Pale Moon/...)

PostPosted: Fri 24 Oct 2008 - 16:49    Post subject: [Tuto] POPUP persistante de notification en DHTML Reply with quote

ok et si tu mets le premier code juste avant

 
Code: Sélectionner - Agrandir
</head> 


tu penses aussi à mettre le deuxième code donné dans le tuto qui doit aussi ce placer là
_______________________


Forum
Author Message
nordine29200


Offline
Guest




PostPosted: Fri 24 Oct 2008 - 16:56    Post subject: [Tuto] POPUP persistante de notification en DHTML Reply with quote

oui j'avais deja fait comme ça mais toujours rien 
je m'aperçois que pas mal de code ne fonctionne pas avec le thème zone cooper Crying or Very sad Crying or Very sad Crying or Very sad
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{S_CONTENT_DIRECTION}">
    <script type="text/javascript">
    var PreloadFlag = false;
    var expDays = 90;
    var exp = new Date();
    var tmp = '';
    var tmp_counter = 0;
    var tmp_open = 0;

    exp.setTime(exp.getTime() + (expDays*24*60*60*1000));

    function SetCookie(name, value)
    {
       var argv = SetCookie.arguments;
       var argc = SetCookie.arguments.length;
       var expires = (argc > 2) ? argv[2] : null;
       var path = (argc > 3) ? argv[3] : null;
       var domain = (argc > 4) ? argv[4] : null;
       var secure = (argc > 5) ? argv[5] : false;
       document.cookie = name + "=" + escape(value) +
          ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
          ((path == null) ? "" : ("; path=" + path)) +
          ((domain == null) ? "" : ("; domain=" + domain)) +
          ((secure == true) ? "; secure" : "");
    }

    function getCookieVal(offset)
    {
       var endstr = document.cookie.indexOf(";",offset);
       if (endstr == -1)
       {
          endstr = document.cookie.length;
       }
       return unescape(document.cookie.substring(offset, endstr));
    }

    function GetCookie(name)
    {
       var arg = name + "=";
       var alen = arg.length;
       var clen = document.cookie.length;
       var i = 0;
       while (i < clen)
       {
          var j = i + alen;
          if (document.cookie.substring(i, j) == arg)
          {
             return getCookieVal(j);
          }
          i = document.cookie.indexOf(" ", i) + 1;
          if (i == 0)
          {
             break;
          }
       }
       return null;
    }

    function ShowHide(id1, id2, id3)
    {
       var res = expMenu(id1);
       if (id2 != '')
       {
          expMenu(id2);
       }
       if (id3 != '')
       {
          SetCookie(id3, res, exp);
       }
    }

    function expMenu(id)
    {
       var itm = null;
       if (document.getElementById)
       {
          itm = document.getElementById(id);
       }
       else if (document.all)
       {
          itm = document.all[id];
       }
       else if (document.layers)
       {
          itm = document.layers[id];
       }
       if (!itm)
       {
          // do nothing
       }
       else if (itm.style)
       {
          if (itm.style.display == "none")
          {
             itm.style.display = "";
             return 1;
          }
          else
          {
             itm.style.display = "none";
             return 2;
          }
       }
       else
       {
          itm.visibility = "show";
          return 1;
       }
    }
    </script><head>    <script type="text/javascript">
    var persistclose=0 //set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser session
    var startX = 30 //set x offset of bar in pixels
    var startY = 4 //set y offset of bar in pixels
    var verticalpos="fromtop" //enter "fromtop" or "frombottom"

    function iecompattest(){
    return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
    }

    function get_cookie(Name) {
    var search = Name + "="
    var returnvalue = "";

    if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search)
    if (offset != -1) {
    offset += search.length
    end = document.cookie.indexOf(";", offset);
    if (end == -1) end = document.cookie.length;
    returnvalue=unescape(document.cookie.substring(offset, end))
    }
    }
    return returnvalue;
    }

    function closebar(){
    if (persistclose)
    document.cookie="remainclosed=1"
    document.getElementById("topbar").style.visibility="hidden"
    }

    function staticbar(){
    barheight=document.getElementById("topbar").offsetHeight
    var ns = (navigator.appName.indexOf("Netscape") != -1) || window.opera;
    var d = document;
    function ml(id){
    var el=d.getElementById(id);
    if (!persistclose || persistclose && get_cookie("remainclosed")=="")
    el.style.visibility="visible"
    if(d.layers)el.style=el;
    el.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px";};
    el.x = startX;
    if (verticalpos=="fromtop")
    el.y = startY;
    else{
    el.y = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight;
    el.y -= startY;
    }
    return el;
    }
    window.stayTopLeft=function(){
    if (verticalpos=="fromtop"){
    var pY = ns ? pageYOffset : iecompattest().scrollTop;
    ftlObj.y += (pY + startY - ftlObj.y)/8;
    }
    else{
    var pY = ns ? pageYOffset + innerHeight - barheight: iecompattest().scrollTop + iecompattest().clientHeight - barheight;
    ftlObj.y += (pY - startY - ftlObj.y)/8;
    }
    ftlObj.sP(ftlObj.x, ftlObj.y);
    setTimeout("stayTopLeft()", 10);
    }
    ftlObj = ml("topbar");
    stayTopLeft();
    }

    if (window.addEventListener)
    window.addEventListener("load", staticbar, false)
    else if (window.attachEvent)
    window.attachEvent("onload", staticbar)
    else if (document.getElementById)
    window.onload=staticbar
    </script><meta name="verify-v1" content="c3Jy1AOl+4aujoV5BlUmb3SSEmv60xCpuuWKlXLZZlI=" />
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}" />
<meta http-equiv="Content-Style-Type" content="text/css" />
{META}
<title>{SITENAME} :: {PAGE_TITLE}</title>
<link rel="stylesheet" href="http://img.xooimage.com/files9/5/c/7/zonecopper-57b028.css" type="text/css" />
<style type="text/css">
<!--
td.cat,td.cathead,td.catsides,td.catleft,td.catright,td.catbottom { background-image: url(http://img.xooimage.com/files10/c/e/cellpic1-3667e.gif) }
th { background-image: url(http://img.xooimage.com/files10/c/e/cellpic3-3667d.gif) }
td.rowpic { background-image: url(http://img.xooimage.com/files4/c/e/cellpic2-36672.jpg); background-repeat: repeat-y }
-->
</style>
<!-- BEGIN switch_enable_pm_popup -->
<script language="Javascript" type="text/javascript">
<!--
    if ({PRIVATE_MESSAGE_NEW_FLAG})
    {
        window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
    }
//-->
</script>
<!-- END switch_enable_pm_popup -->
<link rel="shortcut icon" href="http://www.icone-gif.com/gif/insolite/insolite-gif-099.gif">
    <style type="text/css">
    #topbar{
    position:absolute;
    background-color : #eaedf4;
    border : 1px solid #9893C6;
    -moz-border-radius: 12px;
    padding: 4px 0px 14px 0px;
    width: 360px;
    visibility: hidden;
    z-index: 0;
    }
    </style></head><a name="top">[/url]
<body background="http://img.xooimage.com/files3/b/a/background-36671.gif" bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}">
    <!-- BEGIN switch_user_logged_out -->

   

    <span><a href="" onclick="closebar(); return false">
   

    [/url]</span>
    <span style="color:#3253A4;"> Bienvenue humble visiteur

    Veuillez vous inscrire
     ou vous connecter
</span>


    
    <!-- END switch_user_logged_out -->


Author Message
themalin
Membre


Offline
Membre

Joined: 19 Apr 2006
Posts: 8,897
Point(s): 9,101
Moyenne: 1.02
Mac Firefox (ou l'un de ses dérivés : Minefield/Pale Moon/...)

PostPosted: Fri 24 Oct 2008 - 19:18    Post subject: [Tuto] POPUP persistante de notification en DHTML Reply with quote

tu as installé un autre thème en test pour tester??
_______________________


Forum
Author Message
Sploutch
Membre


Offline
Membre

Joined: 02 Jan 2006
Posts: 584
Niveau:
Point(s): 632
Moyenne: 1.08
Masculin

PostPosted: Fri 24 Oct 2008 - 19:25    Post subject: [Tuto] POPUP persistante de notification en DHTML Reply with quote

nordine29200 wrote:
oui j'avais deja fait comme ça mais toujours rien 
je m'aperçois que pas mal de code ne fonctionne pas avec le thème zone cooper Crying or Very sad Crying or Very sad Crying or Very sad
{{{Spoiler}}}


Salutations,
utilise les balises quand tu mets un code(s)/script(s).
Code: Sélectionner - Agrandir
[code]code(s)/script(s)[/code]

_______________________
1 tour pour la forme.1 tour pour l'esprit.

| Le site pour les Filles | Me Soutenir | Smileys Fun | Mes Tutoriels | Mon formulaire D'aide | No Support MP |


Forum
Author Message
zarkaos


Offline
Guest




PostPosted: Sat 25 Oct 2008 - 15:18    Post subject: [Tuto] POPUP persistante de notification en DHTML Reply with quote

Dsl pour le retard mais c'est tout bonnement super!

Je l'ai installé sans trop d'encombres et ça marche impec, ça s'intègre parfaitement au forum en plus!


Author Message
Julianinho


Offline
Guest




PostPosted: Sun 26 Oct 2008 - 09:41    Post subject: [Tuto] POPUP persistante de notification en DHTML Reply with quote

Bonjour tout le monde, et pour mon problème personne ne sait ?

Quote:
bonjour, merci altair, c'est exactement ça que je voulais, par contre meme quand on a pas de message il y a quand meme la boite flottante qui apparait pour afficher " vous n'avez pas de nouveaux messages" , moi je voudrais qu'elle apparaisse seulement quand on a un nouveau message, c'est se type d'affichage que j'ai pris : " popup coulissante de notification d'MP "

mercii


Author Message
altair


Offline
Guest




PostPosted: Sun 26 Oct 2008 - 10:44    Post subject: [Tuto] POPUP persistante de notification en DHTML Reply with quote

Bonjour Julianinho


il faut retirer les autres codes précédents s'il y en a

ressaies avec celui là

avant </head>

Code: Sélectionner - Agrandir


<script type="text/javascript">

var persistclose=0 //set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser session
var startX = 30 //set x offset of bar in pixels
var startY = 10 //set y offset of bar in pixels
var verticalpos="fromtop" //enter "fromtop" or "frombottom"

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}

function closebar2(){
if (persistclose)
document.cookie="remainclosed=1"
document.getElementById("topbar2").style.visibility="hidden"
}

function staticbar2(){
barheight=document.getElementById("topbar2").offsetHeight
var ns = (navigator.appName.indexOf("Netscape") != -1) || window.opera;
var d = document;
function ml(id){
var el=d.getElementById(id);
if (!persistclose || persistclose && get_cookie("remainclosed")=="")
el.style.visibility="visible"
if(d.layers)el.style=el;
el.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px";};
el.x = startX;
if (verticalpos=="fromtop")
el.y = startY;
else{
el.y = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight;
el.y -= startY;
}
return el;
}
window.stayTopLeft=function(){
if (verticalpos=="fromtop"){
var pY = ns ? pageYOffset : iecompattest().scrollTop;
ftlObj.y += (pY + startY - ftlObj.y)/8;
}
else{
var pY = ns ? pageYOffset + innerHeight - barheight: iecompattest().scrollTop + iecompattest().clientHeight - barheight;
ftlObj.y += (pY - startY - ftlObj.y)/8;
}
ftlObj.sP(ftlObj.x, ftlObj.y);
setTimeout("stayTopLeft()", 10);
}
ftlObj = ml("topbar2");
stayTopLeft();
}

for (i=1; i<100; i++) {
var alerte = "{PRIVATE_MESSAGE_INFO}";
if (( alerte == "Vous avez "+i+" nouveaux messages" || alerte == "Vous avez 1 nouveau message"))
{
if (window.addEventListener)
window.addEventListener("load", staticbar2, false)
else if (window.attachEvent)
window.attachEvent("onload", staticbar2)
else if (document.getElementById)
window.onload=staticbar2
}
}
</script> 




 

avant </head>

Code: Sélectionner - Agrandir


<style type="text/css">
#topbar2 {
position:absolute;
background-color : #eaedf4;
border : 1px solid #9893C6;
-moz-border-radius: 12px; 
padding: 4px;
width: 300px;
visibility: hidden;
z-index: 11;
opacity:.80; filter:alpha(opacity=80); -moz-opacity:0.8; -khtml-opacity:0.8; 
}
</style>
 







après <body>

Code: Sélectionner - Agrandir


<!-- BEGIN switch_user_logged_in --> 

<div align="center" id="topbar2">
<a href="" onclick="closebar2(); return false;">
<img src="http://img44.xooimage.com/files/5/0/9/button-close-focused-676560.png" align="right" border="0">
</a>
<span style="color:#3253A4;"><b><a href="{U_PRIVATEMSGS}" class="gen" align="center">
<img src="http://img5.xooimage.com/files/f/1/e/email2-1ca94a.png" alt="{PRIVATE_MESSAGE_INFO}" border="0" align="bottom">
 {PRIVATE_MESSAGE_INFO}</a></b></span><br /></div>

<!-- END switch_user_logged_in --> 




Author Message
Julianinho


Offline
Guest




PostPosted: Sun 26 Oct 2008 - 23:02    Post subject: [Tuto] POPUP persistante de notification en DHTML Reply with quote

ça marche nickel, merci Wink

Author Message
ozmagoray
Membre


Offline
Membre

Joined: 05 Jan 2008
Posts: 59
Point(s): 59
Moyenne: 1.00
Windows XP (ou plus ancien) Firefox (ou l'un de ses dérivés : Minefield/Pale Moon/...) Féminin Sagittaire (22nov-21déc) 猪 Cochon

PostPosted: Tue 28 Oct 2008 - 19:43    Post subject: [Tuto] POPUP persistante de notification en DHTML Reply with quote

Bonsoir, j'ai un petit soucis, j'ai l'ancienne boite d'information plus la nouvelle qui s'affiche:

Code: Sélectionner - Agrandir
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html dir="{S_CONTENT_DIRECTION}">
    <link rel="shortcut icon" href=" http://img40.xooimage.com/files/3/5/f/poolball-5fdbc0.ico ">
   

 <script type="text/javascript">
// <![CDATA[
var colour="#f0f";
var sparkles=50;
/****************************
*  Tinkerbell Magic Sparkle *
* (c) 2005 mf2fm web-design *
* http://www.mf2fm.co.uk/rv *
* DON'T EDIT BELOW THIS BOX *
* topcode adapté *
****************************/
var x=ox=400;
var y=oy=300;
var swide=800;
var shigh=600;
var sleft=sdown=0;
var tiny=new Array();
var star=new Array();
var starv=new Array();
var starx=new Array();
var stary=new Array();
var tinyx=new Array();
var tinyy=new Array();
var tinyv=new Array();
window.onload=function() { if (document.getElementById) {
  var i, rats, rlef, rdow;
  for (var i=0; i<sparkles; i++) {
    var rats=createDiv(3, 3);
    rats.style.visibility="hidden";
    document.body.appendChild(tiny[i]=rats);
    starv[i]=0;
    tinyv[i]=0;
    var rats=createDiv(5, 5);
    rats.style.backgroundColor="transparent";
    rats.style.visibility="hidden";
    var rlef=createDiv(1, 5);
    var rdow=createDiv(5, 1);
    rats.appendChild(rlef);
    rats.appendChild(rdow);
    rlef.style.top="2px";
    rlef.style.left="0px";
    rdow.style.top="0px";
    rdow.style.left="2px";
    document.body.appendChild(star[i]=rats);
  }
  set_width();
  sparkle();
}}
function sparkle() {
  var c;
  if (x!=ox || y!=oy) {
    ox=x;
    oy=y;
    for (c=0; c<sparkles; c++) if (!starv[c]) {
      star[c].style.left=(starx[c]=x)+"px";
      star[c].style.top=(stary[c]=y)+"px";
      star[c].style.clip="rect(0px, 5px, 5px, 0px)";
      star[c].style.visibility="visible";
      starv[c]=50;
      break;
    }
  }
  for (c=0; c<sparkles; c++) {
    if (starv[c]) update_star(c);
    if (tinyv[c]) update_tiny(c);
  }
  setTimeout("sparkle()", 40);
}
function update_star(i) {
  if (--starv[i]==25) star[i].style.clip="rect(1px, 4px, 4px, 1px)";
  if (starv[i]) {
    stary[i]+=1+Math.random()*3;
    if (stary[i]<shigh+sdown) {
      star[i].style.top=stary[i]+"px";
      starx[i]+=(i%5-2)/5;
      star[i].style.left=starx[i]+"px";
    }
    else {
      star[i].style.visibility="hidden";
      starv[i]=0;
      return;
    }
  }
  else {
    tinyv[i]=50;
    tiny[i].style.top=(tinyy[i]=stary[i])+"px";
    tiny[i].style.left=(tinyx[i]=starx[i])+"px";
    tiny[i].style.width="2px";
    tiny[i].style.height="2px";
    star[i].style.visibility="hidden";
    tiny[i].style.visibility="visible"
  }
}
function update_tiny(i) {
  if (--tinyv[i]==25) {
    tiny[i].style.width="1px";
    tiny[i].style.height="1px";
  }
  if (tinyv[i]) {
    tinyy[i]+=1+Math.random()*3;
    if (tinyy[i]<shigh+sdown) {
      tiny[i].style.top=tinyy[i]+"px";
      tinyx[i]+=(i%5-2)/5;
      tiny[i].style.left=tinyx[i]+"px";
    }
    else {
      tiny[i].style.visibility="hidden";
      tinyv[i]=0;
      return;
    }
  }
  else tiny[i].style.visibility="hidden";
}
document.onmousemove=mouse;
function mouse(e) {
  set_scroll();
  y=(e)?e.pageY:event.y+sdown;
  x=(e)?e.pageX:event.x+sleft;
}
function set_scroll() {
  if (typeof(self.pageYOffset)=="number") {
    sdown=self.pageYOffset;
    sleft=self.pageXOffset;
  }
  else if (document.body.scrollTop || document.body.scrollLeft) {
    sdown=document.body.scrollTop;
    sleft=document.body.scrollLeft;
  }
  else if (document.documentElement && (document.documentElement.scrollTop || document.documentElement.scrollLeft)) {
    sleft=document.documentElement.scrollLeft;
   sdown=document.documentElement.scrollTop;
  }
  else {
    sdown=0;
    sleft=0;
  }
}
window.onresize=set_width;
function set_width() {
  if (typeof(self.innerWidth)=="number") {
    swide=self.innerWidth;
    shigh=self.innerHeight;
  }
  else if (document.documentElement && document.documentElement.clientWidth) {
    swide=document.documentElement.clientWidth;
    shigh=document.documentElement.clientHeight;
  }
  else if (document.body.clientWidth) {
    swide=document.body.clientWidth;
    shigh=document.body.clientHeight;
  }
}
function createDiv(height, width) {
  var div=document.createElement("div");
  div.style.position="absolute";
  div.style.height=height+"px";
  div.style.width=width+"px";
  div.style.overflow="hidden";
  div.style.backgroundColor=colour;
  return (div);
}
// ]]>
</script>
 





<head>
 <meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}">
    <meta http-equiv="Content-Style-Type" content="text/css">
    {META}
    {NAV_LINKS}
    <title>{SITENAME} :: {PAGE_TITLE}</title>
    <!-- link rel="stylesheet" href="http://img2.xooimage.com/files/c/5/8/zengarden-782cbb.css" type="text/css" -->
    <style type="text/css">
    <!--
    /*
      zenGarden Theme for phpBB version 2+
      Created by larme d'ange
      http://lda-creation.conceptbb.com

      NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2
      theme administration centre. When you have finalised your style you could cut the final CSS code
      and place it in an external file, deleting this section to save bandwidth.
    */

    /* General page style. The scroll bar colours only visible in IE5.5+ */
    body {
       background-image: url(http://img2.xooimage.com/files/b/e/8/fondbleu-4d8e36.png);
       background-color: {T_BODY_BGCOLOR};
       scrollbar-face-color: {T_TR_COLOR2};
       scrollbar-highlight-color: {T_TD_COLOR2};
       scrollbar-shadow-color: {T_TR_COLOR2};
       scrollbar-3dlight-color: {T_TR_COLOR3};
       scrollbar-arrow-color:  {T_BODY_LINK};
       scrollbar-track-color: {T_TR_COLOR1};
       scrollbar-darkshadow-color: {T_TH_COLOR1};
    }

    /* General font families for common tags */
    font,th,td,p { font-family: {T_FONTFACE1} }
    a:link,a:active,a:visited {text-decoration: none; color : {T_BODY_LINK}; }
    a:hover      { text-decoration: none; color : {T_BODY_HLINK}; }
    hr   { height: 0px; border: solid {T_TR_COLOR3} 0px; border-top-width: 1px;}

    /* This is the border line & background colour round the entire page */
    .bodyline   { background-image: url(http://img10.xooimage.com/files/a/8/0/fond2-5803a8.png);
                  background-color: {T_TD_COLOR2};solid;  border: 1px {T_TH_COLOR1}solid;   }



    /* This is the outline round the main forum tables */
    .forumline   { background-color: {T_TD_COLOR2}; border: 2px {T_TH_COLOR2} solid; }

    /* Main table cell colours and backgrounds */
    td.row1        { background-image: url(http://img9.xooimage.com/files/f/d/5/jaune_017-faaa1.jpg);
    background-repeat:repeat;
    background-color: {T_TR_COLOR1}; }
    td.row2        { background-image: url(http://img1.xooimage.com/files/d/9/c/jaune.-4d8abc.jpg);
    background-repeat:repeat;
    background-color: {T_TR_COLOR2}; }
    td.row3        { background-image:url(http://img120.imageshack.us/img120/9369/jaunegw4.jpg); }

    /*
      This is for the table cell above the Topics, Post & Last posts on the index.php page
      By default this is the fading out gradiated silver background.
      However, you could replace this with a bitmap specific for each forum
    */
    td.rowpic {
          background-color: {T_TD_COLOR2};
          background-image: url(http://img4.xooimage.com/files/9/9/4/cellpic3-31905.gif);
    }

    /* Header cells - the blue and silver gradient backgrounds */
    th   {
       color: {T_TD_COLOR2}; font-size: {T_FONTSIZE2}px; font-weight : bold;
       background-color: {T_BODY_LINK}; height: 25px;
       background-image: url(http://img4.xooimage.com/files/3/a/b/cellpic1-355ee.gif);
    }

    td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom {
             background-image: url(http://img4.xooimage.com/files/9/9/4/cellpic3-31905.gif);
             background-color:{T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid; height: 28px;
    }

    /*
      Setting additional nice inner borders for the main table cells.
      The names indicate which sides the border will be on.
      Don't worry if you don't understand this, just ignore it :-)
    */
    td.cat,td.catHead,td.catBottom {
       height: 29px;
       border-width: 0px 0px 0px 0px;
    }
    th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR {
       font-weight: bold; border: {T_TD_COLOR2}; border-style: solid; height: 28px;
    }
    td.row3Right,td.spaceRow {
        background-image:url(http://img120.imageshack.us/img120/9369/jaunegw4.jpg); border: {T_TH_COLOR3}; border-style: solid;
    }

    th.thHead,td.catHead { font-size: {T_FONTSIZE3}px; border-width: 1px 1px 0px 1px; }
    th.thSides,td.catSides,td.spaceRow    { border-width: 0px 1px 0px 1px; }
    th.thRight,td.catRight,td.row3Right    { border-width: 0px 1px 0px 0px; }
    th.thLeft,td.catLeft     { border-width: 0px 0px 0px 1px; }
    th.thBottom,td.catBottom  { border-width: 0px 1px 1px 1px; }
    th.thTop    { border-width: 1px 0px 0px 0px; }
    th.thCornerL { border-width: 1px 0px 0px 1px; }
    th.thCornerR { border-width: 1px 1px 0px 0px; }

    /* The largest text used in the index page title and toptic title etc. */
    .maintitle   {
       font-weight: bold; font-size: 22px; font-family: "{T_FONTFACE2}",{T_FONTFACE1};
       text-decoration: none; line-height : 120%; color : {T_BODY_TEXT};
    }

    /* General text */
    .gen { font-size : {T_FONTSIZE3}px; }
    .genmed { font-size : {T_FONTSIZE2}px; }
    .gensmall { font-size : {T_FONTSIZE1}px; }
    .gen,.genmed,.gensmall { color : {T_BODY_TEXT}; }
    a.gen,a.genmed,a.gensmall { color: {T_BODY_LINK}; text-decoration: none; }
    a.gen:hover,a.genmed:hover,a.gensmall:hover   { color: {T_BODY_HLINK}; text-decoration: none; }

    /* The register, login, search etc links at the top of the page */
    .mainmenu      { font-size : {T_FONTSIZE2}px; color : {T_BODY_TEXT} }
    a.mainmenu      { text-decoration: none; color : {T_BODY_LINK};  }
    a.mainmenu:hover{ text-decoration: none; color : {T_BODY_HLINK}; }

    /* Forum category titles */
    .cattitle      { font-weight: bold; font-size: {T_FONTSIZE3}px ; letter-spacing: 1px; color : {T_BODY_LINK}}
    a.cattitle      { text-decoration: none; color : {T_BODY_LINK}; }
    a.cattitle:hover{ text-decoration: none; }

    /* Forum title: Text and link to the forums used in: index.php */
    .forumlink      { font-weight: bold; font-size: {T_FONTSIZE3}px; color : {T_BODY_LINK}; }
    a.forumlink    { text-decoration: none; color : {T_BODY_LINK}; }
    a.forumlink:hover{ text-decoration: none; color : {T_BODY_HLINK}; }

    /* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */
    .nav         { font-weight: bold; font-size: {T_FONTSIZE2}px; color : {T_BODY_TEXT};}
    a.nav         { text-decoration: none; color : {T_BODY_LINK}; }
    a.nav:hover      { text-decoration: none; }

    /* titles for the topics: could specify viewed link colour too */
    .topictitle,h1,h2   { font-weight: bold; font-size: {T_FONTSIZE2}px; color : {T_BODY_TEXT}; }
    a.topictitle:link   { text-decoration: none; color : {T_BODY_LINK}; }
    a.topictitle:visited { text-decoration: none; color : {T_BODY_VLINK}; }
    a.topictitle:hover   { text-decoration: none; color : {T_BODY_HLINK}; }

    /* Name of poster in viewmsg.php and viewtopic.php and other places */
    .name         { font-size : {T_FONTSIZE2}px; color : {T_BODY_TEXT};}

    /* Location, number of posts, post date etc */
    .postdetails      { font-size : {T_FONTSIZE1}px; color : {T_BODY_TEXT}; }

    /* The content of the posts (body of text) */
    .postbody { font-size : {T_FONTSIZE3}px; line-height: 18px}
    a.postlink:link   { text-decoration: none; color : {T_BODY_LINK} }
    a.postlink:visited { text-decoration: none; color : {T_BODY_VLINK}; }
    a.postlink:hover { text-decoration: none; color : {T_BODY_HLINK}}

    /* Quote & Code blocks */
    .code {
       font-family: {T_FONTFACE3}; font-size: {T_FONTSIZE2}px; color: {T_FONTCOLOR2};
       background-color: {T_TD_COLOR1}; border: {T_TR_COLOR3}; border-style: solid;
       border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
    }

    .quote {
       font-family: {T_FONTFACE1}; font-size: {T_FONTSIZE2}px; color: {T_FONTCOLOR1}; line-height: 125%;
       background-color: {T_TD_COLOR1}; border: {T_TR_COLOR3}; border-style: solid;
       border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
    }

    /* Copyright and bottom info */
    .copyright      { font-size: {T_FONTSIZE1}px; font-family: {T_FONTFACE1}; color: {T_FONTCOLOR1}; letter-spacing: -1px;}
    a.copyright      { color: {T_FONTCOLOR1}; text-decoration: none;}
    a.copyright:hover { color: {T_BODY_TEXT}; text-decoration: none;}

    /* Form elements */
    input,textarea, select {
       color : {T_BODY_TEXT};
       font: normal {T_FONTSIZE2}px {T_FONTFACE1};
       border-color : {T_BODY_TEXT};
    }

    /* The text input fields background colour */
    input.post, textarea.post, select {
       background-color : {T_TD_COLOR2};
    }

    input { text-indent : 2px; }

    /* The buttons used for bbCode styling in message post */
    input.button {
       background-color : {T_TR_COLOR1};
       color : {T_BODY_TEXT};
       font-size: {T_FONTSIZE2}px; font-family: {T_FONTFACE1};
    }

    /* The main submit button option */
    input.mainoption {
       background-color : {T_TD_COLOR1};
       font-weight : bold;
    }

    /* None-bold submit button */
    input.liteoption {
       background-color : {T_TD_COLOR1};
       font-weight : normal;
    }

    /* This is the line in the posting page which shows the rollover
      help line. This is actually a text box, but if set to be the same
      colour as the background no one will know ;)
    */
    .helpline { background-color: {T_TR_COLOR2}; border-style: none; }

    /* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */
    @import url("http://img10.xooimage.com/files/f/o/formie-30d7c.css");
    -->
    </style>
    <!-- BEGIN switch_enable_pm_popup -->
    <script language="Javascript" type="text/javascript">
    <!--
       if ( {PRIVATE_MESSAGE_NEW_FLAG} )
       {
          window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
       }
    //-->
    </script>
    <!-- END switch_enable_pm_popup -->



    <script type="text/javascript">
    var persistclose=0 //set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser session
    var startX = 30 //set x offset of bar in pixels
    var startY = 4 //set y offset of bar in pixels
    var verticalpos="fromtop" //enter "fromtop" or "frombottom"

    function iecompattest(){
    return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
    }

    function get_cookie(Name) {
    var search = Name + "="
    var returnvalue = "";
    if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search)
    if (offset != -1) {
    offset += search.length
    end = document.cookie.indexOf(";", offset);
    if (end == -1) end = document.cookie.length;
    returnvalue=unescape(document.cookie.substring(offset, end))
    }
    }
    return returnvalue;
    }

    function closebar(){
    if (persistclose)
    document.cookie="remainclosed=1"
    document.getElementById("topbar").style.visibility="hidden"
    }

    function staticbar(){
    barheight=document.getElementById("topbar").offsetHeight
    var ns = (navigator.appName.indexOf("Netscape") != -1) || window.opera;
    var d = document;
    function ml(id){
    var el=d.getElementById(id);
    if (!persistclose || persistclose && get_cookie("remainclosed")=="")
    el.style.visibility="visible"
    if(d.layers)el.style=el;
    el.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px";};
    el.x = startX;
    if (verticalpos=="fromtop")
    el.y = startY;
    else{
    el.y = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight;
    el.y -= startY;
    }
    return el;
    }
    window.stayTopLeft=function(){
    if (verticalpos=="fromtop"){
    var pY = ns ? pageYOffset : iecompattest().scrollTop;
    ftlObj.y += (pY + startY - ftlObj.y)/8;
    }
    else{
    var pY = ns ? pageYOffset + innerHeight - barheight: iecompattest().scrollTop + iecompattest().clientHeight - barheight;
    ftlObj.y += (pY - startY - ftlObj.y)/8;
    }
    ftlObj.sP(ftlObj.x, ftlObj.y);
    setTimeout("stayTopLeft()", 10);
    }
    ftlObj = ml("topbar");
    stayTopLeft();
    }

    for (i=1; i<100; i++) {
    var alerte = "{PRIVATE_MESSAGE_INFO}";
    if ( alerte == "Vous avez "+i+" nouveaux messages" || alerte == "Vous avez 1 nouveau message" || alerte == "You have "+i+" new messages" || alerte == "You have 1 new message" )
    {
    if (window.addEventListener)
    window.addEventListener("load", staticbar, false);
    else if (window.attachEvent)
    window.attachEvent("onload", staticbar);
    else if (document.getElementById)
    (window.onload=staticbar);
    }
    }
    </script>

    <style type="text/css">
    #topbar{
    position:absolute;
    visibility: hidden;
    width: 300px;
    z-index: 20;
    padding: 4px 4px 4px 4px;
    background-color : #eaedf4;
    border : 1px solid #9893C6;
    -moz-border-radius: 12px;
    }
    </style>

    </head>
    <body bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}">
    <a name="top"></a>

    <!-- BEGIN switch_user_logged_in -->
    <div align="center" id="topbar" style="opacity:.80; filter:alpha(opacity=80); -moz-opacity:0.8;">
    <span><a href="" onclick="closebar(); return false">
    <img src="http://img44.xooimage.com/files/5/0/9/button-close-focused-676560.png" align="right" border="0">
    </a></span>
    <span style="color:#3253A4;"><b><a href="{U_PRIVATEMSGS}" class="gen" align="center"><img src="http://img5.xooimage.com/files/f/1/e/email2-1ca94a.png" alt="{PRIVATE_MESSAGE_INFO}" border="0" align="bottom">
     {PRIVATE_MESSAGE_INFO}</a></b></span><br /></div>
    <!-- END switch_user_logged_in -->


    <table width="92%" cellspacing="0" cellpadding="10" border="0" align="center">
       <tr>
          <td class="bodyline"><table width="100%" cellspacing="0" cellpadding="0" border="0">
             <tr>
                <td align="center"><a href="{U_INDEX}"><img src="http://img2.xooimage.com/files/9/0/8/bannai-re-4d888e.jpg" border="0" alt="{L_INDEX}" vspace="1" /></a></td></tr>
                <td align="center" width="100%" valign="middle"><table cellspacing="0" cellpadding="2" border="0">
                   <tr>
                   <td align="center" valign="top" nowrap="nowrap"><span class="mainmenu">
                                    <!-- BEGIN switch_user_logged_out -->
<br>       <a href="{U_PORTAL}"><font color=#006699><b>Portail</b></font></a><img src="http://img41.xooimage.com/files/c/a/e/1-7830ed.gif"><a href="{U_INDEX}" class="mainmenu"> <font color=#0066CC><b>{L_Forum}</b></font> </a><img src="http://img41.xooimage.com/files/c/a/e/1-7830ed.gif"><a href="{U_FAQ}" class="mainmenu"target="_blank"><font color=#0066FF><b>{L_FAQ}</font></b></a><img src="http://img41.xooimage.com/files/c/a/e/1-7830ed.gif"><a href="{U_SEARCH}" class="mainmenu"target="_blank"><font color=#0033FF><b>{L_SEARCH}</b></font></a><img src="http://img41.xooimage.com/files/c/a/e/1-7830ed.gif"><a href="{U_REGISTER}" class="mainmenu"target="_blank"><blink><font color=#0033CC><b>{L_REGISTER}</b></font></blink></a><img src="http://img41.xooimage.com/files/c/a/e/1-7830ed.gif"><a href="{U_LOGIN_LOGOUT}" class="mainmenu"target="_blank"><font color=#003399><b>{L_LOGIN_LOGOUT}</b></font></a>
                                                <!-- END switch_user_logged_out -->
                                    <!-- BEGIN switch_user_logged_in -->
<br>   <a href=" {U_PORTAL}"><font color=#006699><b>Portail</b></font></a><img src="http://img47.xooimage.com/files/c/7/6/poolball2-78b09b.png"><a href="{U_INDEX}" class="mainmenu"><font color=#0066CC><b>{L_Forum}</b></font></a> <img src="http://img47.xooimage.com/files/c/7/6/poolball2-78b09b.png"><a href="{U_FAQ}" class="mainmenu"target="_blank"><font color=#0066FF><b>{L_FAQ}</font></b></a> <img src="http://img41.xooimage.com/files/c/a/e/1-7830ed.gif"><a href="{U_SEARCH}" class="mainmenu"target="_blank"><font color=#0033FF><b>{L_SEARCH}</font></b><font color=#3333FF><b></a><img src="http://img41.xooimage.com/files/c/a/e/1-7830ed.gif"><a href="{U_MEMBERLIST}" class="mainmenu"target="_blank"><font color=#0033CC><b>{L_MEMBERLIST}</b></font></a><img src="http://img41.xooimage.com/files/c/a/e/1-7830ed.gif"><a href="{U_GROUP_CP}" class="mainmenu"target="_blank"><font color=#003399><b>{L_USERGROUPS}</b></font></a><img src="http://img41.xooimage.com/files/c/a/e/1-7830ed.gif"><a href="{U_PROFILE}" class="mainmenu"target="_blank"><font color=#003366><b>{L_PROFILE}</b></font></a><img src="http://img41.xooimage.com/files/c/a/e/1-7830ed.gif"><a href="{U_PRIVATEMSGS}"target="_blank"><font color=#0000FF><b>{L_PRIVATEMSGS}</b></font></a><img src="http://img41.xooimage.com/files/c/a/e/1-7830ed.gif"><a href="{U_LOGIN_LOGOUT}" class="mainmenu"target="_blank"><font color=#0000CC><b>{L_LOGIN_LOGOUT}</b></font></a>

                     
   
 <div align="center"> <a href="http://passionsetloisirs.xooit.fr/chat2.php"target="_blank"><font color=#006699><b>Chat</b></font></a><img src="http://img41.xooimage.com/files/c/a/e/1-7830ed.gif"></a> <a href="http://passionsetloisirs.xooit.fr/portal.php?pid=11"target="_blank"><font color=#0066CC><b>Poème</b></font></a><img src="http://img41.xooimage.com/files/c/a/e/1-7830ed.gif"></a><a href="http://passionsetloisirs.xooit.fr/portal.php?pid=6"target="_blank"><font color=#0066FF><b>Gadgets</b></font></a><img src="http://img41.xooimage.com/files/c/a/e/1-7830ed.gif"> <a href="http://passionsetloisirs.xooit.fr/portal.php?pid=9"target="_blank"><font color=#0033FF><b>Partenaires</b></font></a><img src="http://img41.xooimage.com/files/c/a/e/1-7830ed.gif"><a href="http://passionsetloisirs.xooit.fr/portal.php?pid=7"target="_blank"><font color=#0033CC><b>Sports</b></font></a><img src="http://img41.xooimage.com/files/c/a/e/1-7830ed.gif"><a href="http://passionsetloisirs.xooit.fr/portal.php?pid=10"target="_blank"><font color=#003399><b>Bannières</b></font></a><img src="http://img41.xooimage.com/files/c/a/e/1-7830ed.gif"><a href="{U_SEARCH_NEW}"target="_blank"><font color=#003366><b>Nouveaux posts</b></font></a>


     <div align="right"><a href="#top1" class="postlink"><img
    src="http://img44.xooimage.com/files/3/c/3/fl-chebdescendre-69613b.png" border="0"></a> </div>
 


                                                    <!-- END switch_user_logged_in -->
                                            </span></td></tr>
                </table></td>
             </tr>
          </table>

          <br />


        </div>




est-ce que je dois supprimer cette partie:
Code: Sélectionner - Agrandir
   <!-- BEGIN switch_user_logged_in -->
    <div align="center" id="topbar" style="opacity:.80; filter:alpha(opacity=80); -moz-opacity:0.8;">
    <span><a href="" onclick="closebar(); return false">
    <img src="http://img44.xooimage.com/files/5/0/9/button-close-focused-676560.png" align="right" border="0">
    </a></span>
    <span style="color:#3253A4;"><b><a href="{U_PRIVATEMSGS}" class="gen" align="center"><img src="http://img5.xooimage.com/files/f/1/e/email2-1ca94a.png" alt="{PRIVATE_MESSAGE_INFO}" border="0" align="bottom">
     {PRIVATE_MESSAGE_INFO}</a></b></span><br /></div>
    <!-- END switch_user_logged_in -->

celui-qui est après </head>
ou alors celle-là:
Code: Sélectionner - Agrandir
<!-- BEGIN switch_enable_pm_popup -->
    <script language="Javascript" type="text/javascript">
    <!--
       if ( {PRIVATE_MESSAGE_NEW_FLAG} )
       {
          window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
       }
    //-->
    </script>
    <!-- END switch_enable_pm_popup -->


qui se trouve après </style>

j'ai pas envie de faire des bétises.

merci
_______________________


Nous recherchons des animateurs....


Forum
Author Message
Contenu Sponsorisé





PostPosted: Today at 15:54    Post subject: [Tuto] POPUP persistante de notification en DHTML

Display posts from previous:   
Reply to topic Page 6 of 25 Goto page: <  1, 2, 35, 6, 723, 24, 25  >




Portal | Index | Administration Panel | Create a forum | Free support forum | Free forums directory | Report a violation | Conditions générales d'utilisation
Propulsé par p h p B B © 2016 p h p B B Group |
 
© 2003-2013 Xooit.com - Contact - Mentions légales - CGU - Charte - CNIL : 1381401