Banner Flotante cada 24 horas

imported_kaizerbacter Seguir

Beta
¡Usuario con pocos negocios! ¡Utiliza siempre saldo de Forobeta!
Desde
22 Oct 2009
Mensajes
45
Buenas a toda la comunidad de vbhispano, recurro a su ayuda nuevamente porque quisiera que me ayuden con la modificacion de este codigo q es basicamente para hacer una invitacion a registrarse a los invitados, bueno e decidido usarlo para hacer una invitacion a votacion de la web, el codigo verdadero es el siguiente, quisiera implementar una modificion q permita que se muestre el banner flotante pero cada "X" Tiempo despues de haber hecho click en el banner en mi caso 24 horas, estoy seguro que se puede hacer.. gracias por ayudar amigos =)

Insertar CODE, HTML o PHP:
[COLOR=#000000][COLOR=#007700]<if [/COLOR][COLOR=#0000bb]condition[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"$show[guest]"[/COLOR][COLOR=#007700]>
<!-- [/COLOR][COLOR=#0000bb]Improve registration Rates [/COLOR][COLOR=#007700]-->
<[/COLOR][COLOR=#0000bb]style type[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"text/css"[/COLOR][COLOR=#007700]>
[/COLOR][COLOR=#ff8000]#topbar{
    [/COLOR][COLOR=#0000bb]position[/COLOR][COLOR=#007700]:[/COLOR][COLOR=#0000bb]absolute[/COLOR][COLOR=#007700];
    [/COLOR][COLOR=#0000bb]border[/COLOR][COLOR=#007700]: [/COLOR][COLOR=#0000bb]0px solid black[/COLOR][COLOR=#007700];
    [/COLOR][COLOR=#0000bb]padding[/COLOR][COLOR=#007700]: [/COLOR][COLOR=#0000bb]5px[/COLOR][COLOR=#007700];
    [/COLOR][COLOR=#0000bb]background[/COLOR][COLOR=#007700]-[/COLOR][COLOR=#0000bb]color[/COLOR][COLOR=#007700]: ;
    [/COLOR][COLOR=#0000bb]width[/COLOR][COLOR=#007700]: [/COLOR][COLOR=#0000bb]300px[/COLOR][COLOR=#007700];
    [/COLOR][COLOR=#0000bb]visibility[/COLOR][COLOR=#007700]: [/COLOR][COLOR=#0000bb]hidden[/COLOR][COLOR=#007700];
    [/COLOR][COLOR=#0000bb]z[/COLOR][COLOR=#007700]-[/COLOR][COLOR=#0000bb]index[/COLOR][COLOR=#007700]: [/COLOR][COLOR=#0000bb]200[/COLOR][COLOR=#007700];
    [/COLOR][COLOR=#0000bb]top[/COLOR][COLOR=#007700]: [/COLOR][COLOR=#0000bb]27px[/COLOR][COLOR=#007700];
    [/COLOR][COLOR=#0000bb]height[/COLOR][COLOR=#007700]: [/COLOR][COLOR=#0000bb]134px[/COLOR][COLOR=#007700];
    [/COLOR][COLOR=#0000bb]left[/COLOR][COLOR=#007700]: [/COLOR][COLOR=#0000bb]13px[/COLOR][COLOR=#007700];
}
</[/COLOR][COLOR=#0000bb]style[/COLOR][COLOR=#007700]>
<[/COLOR][COLOR=#0000bb]script type[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"text/javascript"[/COLOR][COLOR=#007700]>
var [/COLOR][COLOR=#0000bb]persistclose[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]0 [/COLOR][COLOR=#ff8000]//set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser session
[/COLOR][COLOR=#007700]var [/COLOR][COLOR=#0000bb]startX [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]30 [/COLOR][COLOR=#ff8000]//set x offset of bar in pixels
[/COLOR][COLOR=#007700]var [/COLOR][COLOR=#0000bb]startY [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]5 [/COLOR][COLOR=#ff8000]//set y offset of bar in pixels
[/COLOR][COLOR=#007700]var [/COLOR][COLOR=#0000bb]verticalpos[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"fromtop" [/COLOR][COLOR=#ff8000]//enter "fromtop" or "frombottom"
[/COLOR][COLOR=#007700]function [/COLOR][COLOR=#0000bb]iecompattest[/COLOR][COLOR=#007700](){
return ([/COLOR][COLOR=#0000bb]document[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]compatMode [/COLOR][COLOR=#007700]&& [/COLOR][COLOR=#0000bb]document[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]compatMode[/COLOR][COLOR=#007700]!=[/COLOR][COLOR=#dd0000]"BackCompat"[/COLOR][COLOR=#007700])? [/COLOR][COLOR=#0000bb]document[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]documentElement [/COLOR][COLOR=#007700]: [/COLOR][COLOR=#0000bb]document[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]body
[/COLOR][COLOR=#007700]}
function [/COLOR][COLOR=#0000bb]get_cookie[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]Name[/COLOR][COLOR=#007700]) {
var [/COLOR][COLOR=#0000bb]search [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]Name [/COLOR][COLOR=#007700]+ [/COLOR][COLOR=#dd0000]"="
[/COLOR][COLOR=#007700]var [/COLOR][COLOR=#0000bb]returnvalue [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#dd0000]""[/COLOR][COLOR=#007700];
if ([/COLOR][COLOR=#0000bb]document[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]cookie[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]length [/COLOR][COLOR=#007700]> [/COLOR][COLOR=#0000bb]0[/COLOR][COLOR=#007700]) {
[/COLOR][COLOR=#0000bb]offset [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]document[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]cookie[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]indexOf[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]search[/COLOR][COLOR=#007700])
if ([/COLOR][COLOR=#0000bb]offset [/COLOR][COLOR=#007700]!= -[/COLOR][COLOR=#0000bb]1[/COLOR][COLOR=#007700]) {
[/COLOR][COLOR=#0000bb]offset [/COLOR][COLOR=#007700]+= [/COLOR][COLOR=#0000bb]search[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]length
end [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]document[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]cookie[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]indexOf[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]";"[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]offset[/COLOR][COLOR=#007700]);
if ([/COLOR][COLOR=#0000bb]end [/COLOR][COLOR=#007700]== -[/COLOR][COLOR=#0000bb]1[/COLOR][COLOR=#007700]) [/COLOR][COLOR=#0000bb]end [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]document[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]cookie[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]length[/COLOR][COLOR=#007700];
[/COLOR][COLOR=#0000bb]returnvalue[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]unescape[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]document[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]cookie[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]substring[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]offset[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]end[/COLOR][COLOR=#007700]))
}
}
return [/COLOR][COLOR=#0000bb]returnvalue[/COLOR][COLOR=#007700];
}
function [/COLOR][COLOR=#0000bb]closebar[/COLOR][COLOR=#007700](){
if ([/COLOR][COLOR=#0000bb]persistclose[/COLOR][COLOR=#007700])
[/COLOR][COLOR=#0000bb]document[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]cookie[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"remainclosed=1"
[/COLOR][COLOR=#0000bb]document[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]getElementById[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]"topbar"[/COLOR][COLOR=#007700]).[/COLOR][COLOR=#0000bb]style[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]visibility[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"hidden"
[/COLOR][COLOR=#007700]}
function [/COLOR][COLOR=#0000bb]staticbar[/COLOR][COLOR=#007700](){
[/COLOR][COLOR=#0000bb]barheight[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]document[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]getElementById[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]"topbar"[/COLOR][COLOR=#007700]).[/COLOR][COLOR=#0000bb]offsetHeight
[/COLOR][COLOR=#007700]var [/COLOR][COLOR=#0000bb]ns [/COLOR][COLOR=#007700]= ([/COLOR][COLOR=#0000bb]navigator[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]appName[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]indexOf[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]"Netscape"[/COLOR][COLOR=#007700]) != -[/COLOR][COLOR=#0000bb]1[/COLOR][COLOR=#007700]) || [/COLOR][COLOR=#0000bb]window[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]opera[/COLOR][COLOR=#007700];
var [/COLOR][COLOR=#0000bb]d [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]document[/COLOR][COLOR=#007700];
function [/COLOR][COLOR=#0000bb]ml[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]id[/COLOR][COLOR=#007700]){
var [/COLOR][COLOR=#0000bb]el[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]d[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]getElementById[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]id[/COLOR][COLOR=#007700]);
if (![/COLOR][COLOR=#0000bb]persistclose [/COLOR][COLOR=#007700]|| [/COLOR][COLOR=#0000bb]persistclose [/COLOR][COLOR=#007700]&& [/COLOR][COLOR=#0000bb]get_cookie[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]"remainclosed"[/COLOR][COLOR=#007700])==[/COLOR][COLOR=#dd0000]""[/COLOR][COLOR=#007700])
[/COLOR][COLOR=#0000bb]el[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]style[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]visibility[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"visible"
[/COLOR][COLOR=#007700]if([/COLOR][COLOR=#0000bb]d[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]layers[/COLOR][COLOR=#007700])[/COLOR][COLOR=#0000bb]el[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]style[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]el[/COLOR][COLOR=#007700];
[/COLOR][COLOR=#0000bb]el[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]sP[/COLOR][COLOR=#007700]=function([/COLOR][COLOR=#0000bb]x[/COLOR][COLOR=#007700],[/COLOR][COLOR=#0000bb]y[/COLOR][COLOR=#007700]){[/COLOR][COLOR=#0000bb]this[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]style[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]left[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]x[/COLOR][COLOR=#007700]+[/COLOR][COLOR=#dd0000]"px"[/COLOR][COLOR=#007700];[/COLOR][COLOR=#0000bb]this[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]style[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]top[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]y[/COLOR][COLOR=#007700]+[/COLOR][COLOR=#dd0000]"px"[/COLOR][COLOR=#007700];};
[/COLOR][COLOR=#0000bb]el[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]x [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]startX[/COLOR][COLOR=#007700];
if ([/COLOR][COLOR=#0000bb]verticalpos[/COLOR][COLOR=#007700]==[/COLOR][COLOR=#dd0000]"fromtop"[/COLOR][COLOR=#007700])
[/COLOR][COLOR=#0000bb]el[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]y [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]startY[/COLOR][COLOR=#007700];
else{
[/COLOR][COLOR=#0000bb]el[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]y [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]ns [/COLOR][COLOR=#007700]? [/COLOR][COLOR=#0000bb]pageYOffset [/COLOR][COLOR=#007700]+ [/COLOR][COLOR=#0000bb]innerHeight [/COLOR][COLOR=#007700]: [/COLOR][COLOR=#0000bb]iecompattest[/COLOR][COLOR=#007700]().[/COLOR][COLOR=#0000bb]scrollTop [/COLOR][COLOR=#007700]+ [/COLOR][COLOR=#0000bb]iecompattest[/COLOR][COLOR=#007700]().[/COLOR][COLOR=#0000bb]clientHeight[/COLOR][COLOR=#007700];
[/COLOR][COLOR=#0000bb]el[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]y [/COLOR][COLOR=#007700]-= [/COLOR][COLOR=#0000bb]startY[/COLOR][COLOR=#007700];
}
return [/COLOR][COLOR=#0000bb]el[/COLOR][COLOR=#007700];
}
[/COLOR][COLOR=#0000bb]window[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]stayTopLeft[/COLOR][COLOR=#007700]=function(){
if ([/COLOR][COLOR=#0000bb]verticalpos[/COLOR][COLOR=#007700]==[/COLOR][COLOR=#dd0000]"fromtop"[/COLOR][COLOR=#007700]){
var [/COLOR][COLOR=#0000bb]pY [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]ns [/COLOR][COLOR=#007700]? [/COLOR][COLOR=#0000bb]pageYOffset [/COLOR][COLOR=#007700]: [/COLOR][COLOR=#0000bb]iecompattest[/COLOR][COLOR=#007700]().[/COLOR][COLOR=#0000bb]scrollTop[/COLOR][COLOR=#007700];
[/COLOR][COLOR=#0000bb]ftlObj[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]y [/COLOR][COLOR=#007700]+= ([/COLOR][COLOR=#0000bb]pY [/COLOR][COLOR=#007700]+ [/COLOR][COLOR=#0000bb]startY [/COLOR][COLOR=#007700]- [/COLOR][COLOR=#0000bb]ftlObj[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]y[/COLOR][COLOR=#007700])/[/COLOR][COLOR=#0000bb]8[/COLOR][COLOR=#007700];
}
else{
var [/COLOR][COLOR=#0000bb]pY [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]ns [/COLOR][COLOR=#007700]? [/COLOR][COLOR=#0000bb]pageYOffset [/COLOR][COLOR=#007700]+ [/COLOR][COLOR=#0000bb]innerHeight [/COLOR][COLOR=#007700]- [/COLOR][COLOR=#0000bb]barheight[/COLOR][COLOR=#007700]: [/COLOR][COLOR=#0000bb]iecompattest[/COLOR][COLOR=#007700]().[/COLOR][COLOR=#0000bb]scrollTop [/COLOR][COLOR=#007700]+ [/COLOR][COLOR=#0000bb]iecompattest[/COLOR][COLOR=#007700]().[/COLOR][COLOR=#0000bb]clientHeight [/COLOR][COLOR=#007700]- [/COLOR][COLOR=#0000bb]barheight[/COLOR][COLOR=#007700];
[/COLOR][COLOR=#0000bb]ftlObj[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]y [/COLOR][COLOR=#007700]+= ([/COLOR][COLOR=#0000bb]pY [/COLOR][COLOR=#007700]- [/COLOR][COLOR=#0000bb]startY [/COLOR][COLOR=#007700]- [/COLOR][COLOR=#0000bb]ftlObj[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]y[/COLOR][COLOR=#007700])/[/COLOR][COLOR=#0000bb]8[/COLOR][COLOR=#007700];
}
[/COLOR][COLOR=#0000bb]ftlObj[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]sP[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]ftlObj[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]x[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]ftlObj[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]y[/COLOR][COLOR=#007700]);
[/COLOR][COLOR=#0000bb]setTimeout[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]"stayTopLeft()"[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]10[/COLOR][COLOR=#007700]);
}
[/COLOR][COLOR=#0000bb]ftlObj [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]ml[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]"topbar"[/COLOR][COLOR=#007700]);
[/COLOR][COLOR=#0000bb]stayTopLeft[/COLOR][COLOR=#007700]();
}
if ([/COLOR][COLOR=#0000bb]window[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]addEventListener[/COLOR][COLOR=#007700])
[/COLOR][COLOR=#0000bb]window[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]addEventListener[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]"load"[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]staticbar[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]false[/COLOR][COLOR=#007700])
else if ([/COLOR][COLOR=#0000bb]window[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]attachEvent[/COLOR][COLOR=#007700])
[/COLOR][COLOR=#0000bb]window[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]attachEvent[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]"onload"[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]staticbar[/COLOR][COLOR=#007700])
else if ([/COLOR][COLOR=#0000bb]document[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]getElementById[/COLOR][COLOR=#007700])
[/COLOR][COLOR=#0000bb]window[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]onload[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]staticbar
</script>
[/COLOR] 
 
<div id="topbar">
<p align="right"><a href="" onClick="closebar(); return false"><img src="RUTA DEL ICONO PARA CERRAR LA VENTANA" border="0" /></a>
  </align>
<a href="http://www.tudominio.com/foro/register.php"><img src="RUTA DE LA IMAGEN DEL REGISTRO"></a></td>
</div>
<!-- End Improve Registration -->
 </if>  [/COLOR]
Estuve investigando y lei que se podia hacer a travez de los cookies, alguna idea?
 
Arriba