Tú Carrito esta vacío
Resultados 1 al 6 de 6

Temas similares

  1. Por gariko en el foro vBulletin 3 - Preguntas, Problemas y Soluciones
  2. Por hacktek en el foro vBulletin 3 - Preguntas, Problemas y Soluciones
  3. Por RadamantiS en el foro vBulletin 3 - Preguntas, Problemas y Soluciones
  4. Mensaje flotante Respuestas: 4
    Por pepe martin en el foro vBulletin 3 - Preguntas, Problemas y Soluciones
  1. #1
    Miembro especial Array
    Fecha de ingreso
    01 jul, 08
    Mensajes
    40
    Gustado
    0 Veces
    Me Gustan
    0 Veces

    Predeterminado Problemas con el baner flotante

    holas miren
    tengo un baner flotante en el portal

    que esta puesto en el header

    y el problema es que aparece bien y lo demas

    pero cuando se registran sigue apareciendo

    abre puesto algo mal :s

    aki les dejo el codigo

    Código:
    <style type="text/css">
    
    #topbar{
        position:absolute;
        border: 0px solid black;
        padding: 0px;
        background-color: ;
        width: 500px;
        visibility: hidden;
        z-index: 200;
        top: 18px;
        height: 134px;
        left: 44px;
    }
    .Estilo2 {
        color: #FFFFFF;
        font-size: 9px;
    }
    .Estilo3 {font-size: 8px}
    </style>
    
    <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 = 5 //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>
    
    
    
    
    <div style="visibility: visible; left: 30px; top: 176px;" id="topbar">
    <p align="right"><a href="" onclick="closebar(); return false"><img src=" AKI PONGO EL LINK DE LA IMAGEN PARA CERRA" border="0"></a>
      
    <a href="/foro/register.php"><img src="AKI EL LINK DE LA IMAGEN DEL BANER" border="0"></a>
    </p></div>

    algo de ahi ta mal ??

  2. #2
    Miembro especial Miembro de diamante Array Avatar de Gasper
    Fecha de ingreso
    01 mar, 08
    Ubicación
    Argentina
    Mensajes
    1,510
    Gustado
    7 Veces
    Me Gustan
    0 Veces

    Predeterminado Respuesta: Problemas con el baner flotante

    Si queres que solo lo vean los no registrados, te falto la condicion:
    Código PHP:
    <if condition="$show['guest']">
    <
    style type="text/css">

    #topbar{
        
    position:absolute;
        
    border0px solid black;
        
    padding0px;
        
    background-color: ;
        
    width500px;
        
    visibilityhidden;
        
    z-index200;
        
    top18px;
        
    height134px;
        
    left44px;
    }
    .
    Estilo2 {
        
    color#FFFFFF;
        
    font-size9px;
    }
    .
    Estilo3 {font-size8px}
    </
    style>

    <
    script type="text/javascript">
    var 
    persistclose=//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 //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 == -1end document.cookie.length;
    returnvalue=unescape(document.cookie.substring(offsetend))
    }
    }
    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 
    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.startX;
    if (
    verticalpos=="fromtop")
    el.startY;
    else{
    el.ns pageYOffset innerHeight iecompattest().scrollTop iecompattest().clientHeight;
    el.-= startY;
    }
    return 
    el;
    }
    window.stayTopLeft=function(){
    if (
    verticalpos=="fromtop"){
    var 
    pY ns pageYOffset iecompattest().scrollTop;
    ftlObj.+= (pY startY ftlObj.y)/8;
    }
    else{
    var 
    pY ns pageYOffset innerHeight barheightiecompattest().scrollTop iecompattest().clientHeight barheight;
    ftlObj.+= (pY startY ftlObj.y)/8;
    }
    ftlObj.sP(ftlObj.xftlObj.y);
    setTimeout("stayTopLeft()"10);
    }
    ftlObj ml("topbar");
    stayTopLeft();
    }

    if (
    window.addEventListener)
    window.addEventListener("load"staticbarfalse)
    else if (
    window.attachEvent)
    window.attachEvent("onload"staticbar)
    else if (
    document.getElementById)
    window.onload=staticbar
    </script>




    <div style="visibility: visible; left: 30px; top: 176px;" id="topbar">
    <p align="right"><a href="" onclick="closebar(); return false"><img src=" AKI PONGO EL LINK DE LA IMAGEN PARA CERRA" border="0"></a>
      
    <a href="/foro/register.php"><img src="AKI EL LINK DE LA IMAGEN DEL BANER" border="0"></a>
    </p></div>
    <if/> 

  3. #3
    Miembro especial Miembro de diamante Array Avatar de Das Underground
    Fecha de ingreso
    16 ene, 08
    Ubicación
    Arica - Chile
    Mensajes
    886
    Gustado
    14 Veces
    Me Gustan
    9 Veces

    Predeterminado Re: Problemas con el baner flotante

    Coloca eso antes de ese codigo:

    Código PHP:
    <if condition="$show[guest]"
    y al final del codigo

    Código PHP:
    </if> 
    EDITO: jeje me gano gasper...

  4. #4
    Miembro especial Array
    Fecha de ingreso
    01 jul, 08
    Mensajes
    40
    Gustado
    0 Veces
    Me Gustan
    0 Veces

    Predeterminado Re: Problemas con el baner flotante

    muchas gracias alos dos por la ayuda rapida

    os lo agradesco

    y si eso era lo que faltaba


    gracias de nuevo


    saludos....

  5. #5
    Miembro especial Miembro de diamante Array Avatar de Das Underground
    Fecha de ingreso
    16 ene, 08
    Ubicación
    Arica - Chile
    Mensajes
    886
    Gustado
    14 Veces
    Me Gustan
    9 Veces

    Predeterminado Re: Problemas con el baner flotante

    De nada amigo, se hace lo que se puede...

  6. #6
    Miembro Array
    Fecha de ingreso
    24 sep, 09
    Mensajes
    18
    Gustado
    1 Veces
    Me Gustan
    3 Veces

    Predeterminado Re: Problemas con el baner flotante

    No me funciona , tambien sale a los usuarios registrados .