| Autor |
Mensaje |
xagus
Homo Erectus

Registrado: Julio 2007
Mensajes: 243
|
 Imagen De Registro Flotante
Saludos,
Ultimamente y tras algunos "engaños" de la mayoria de hostings gratuitos... Me he visto obligado a cojer uno de esos que regalan por ahi.
La verdad es que el servicio que ofrecen esta muy bien, y como soy bastante conocido en el foro de soporte ... pues eso.
Necesitaría saber cual es el codigo que puedo utilizar para mantener una imagen flotante con el link a la url de registro, como en esta web.
Pero además que solamente funcionara cuando los usuarios estan no-conectados.
A ver si alguien me ayuda, un saludo.
EDITO:
Consegui el codigo para la imagen flotante. ver
Pero aún no sé como consiguio poner el dueño de la web antesmencionada que solo aparezca para los no-conectados. Alguna idea?
_________________________________
|
|
|
|
 |
Sponsor

|
|
 |
Manolo
Enganchado

Registrado: Julio 2006
Mensajes: 3650
Ubicación: Olesa
|
 Re: Imagen De Registro Flotante
Xagus y tus datos? Encontre los que pusiste en un tema y dirigen a un host
Cuando tengas la pag en orden ponlos ok.
Tu problema se soluciona colocando el codigo entre esto:
<!-- BEGIN switch_user_logged_in -->
<!-- END switch_user_logged_in -->
Saludos!
_________________________________ No nos atrevemos a muchas cosas porque son difíciles, pero son difíciles porque no nos atrevemos a hacerlas. (Séneca)
|
|
|
|
 |
xagus
Homo Erectus

Registrado: Julio 2007
Mensajes: 243
|
 Re: Imagen De Registro Flotante
Esque ahora estoy con un servicio de foros gratuitos basados en phpbb... hacen falta los datos?
La web: http://leembo.foros.ws - Lo unico que se es que es un phpbb2
Probe lo que dijiste y aparece tanto a loggeados, como a no loggeados.
Este es el codigo que tengo en el footer (porque es el unico sitio donde nos dejan poner html):
<style type="text/css">
#topbar{
position:absolute;
border: 1px solid black;
padding: 2px;
background-color: lightyellow;
width: 620px;
visibility: hidden;
z-index: 100;
}
</style>
<script type="text/javascript">
/***********************************************
* Floating Top Bar script- © Dynamic Drive (www.dynamicdrive.com)
* Sliding routine by Roy Whittle (http://www.javascript-fx.com/)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
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>
<!-- BEGIN switch_user_logged_in -->
<div id="topbar">
<a href="" onClick="closebar(); return false"><img src="close.gif" border="0" /></a>
Your content here.
</div>
<!-- END switch_user_logged_in -->
_________________________________
|
|
|
|
 |
Manolo
Enganchado

Registrado: Julio 2006
Mensajes: 3650
Ubicación: Olesa
|
 Re: Imagen De Registro Flotante
 Te lo puse al reves, prueba estos:
<!-- BEGIN switch_user_logged_out -->
<!-- END switch_user_logged_out -->
_________________________________ No nos atrevemos a muchas cosas porque son difíciles, pero son difíciles porque no nos atrevemos a hacerlas. (Séneca)
|
|
|
|
 |
xagus
Homo Erectus

Registrado: Julio 2007
Mensajes: 243
|
 Re: Imagen De Registro Flotante
Sigue sin ir
Os paso el codigo que tengo en el footer por si escaso...
<!-- BEGIN switch_user_logged_out -->
<style type="text/css">
#topbar{
position:absolute;
border: 1px solid black;
padding: 2px;
background-color: lightyellow;
width: 620px;
visibility: hidden;
z-index: 100;
}
</style>
<script type="text/javascript">
/***********************************************
* Floating Top Bar script- © Dynamic Drive (www.dynamicdrive.com)
* Sliding routine by Roy Whittle (http://www.javascript-fx.com/)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
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>
<!-- END switch_user_logged_out -->
<!-- BEGIN switch_user_logged_out -->
<div id="topbar">
<a href="" onClick="closebar(); return false"><img src="close.gif" border="0" /></a>
Your content here.
</div>
<!-- END switch_user_logged_out -->
_________________________________
|
|
|
|
 |
Manolo
Enganchado

Registrado: Julio 2006
Mensajes: 3650
Ubicación: Olesa
|
 Re: Imagen De Registro Flotante
Creo que te estas liando, con ponerlo asi ya basta:
<!-- BEGIN switch_user_logged_out -->
<div id="topbar">
<a href="" onClick="closebar(); return false"><img src="close.gif" border="0" /></a>
Your content here.
</div>
<!-- END switch_user_logged_out -->
Puedes quitar los otros <!-- BEGIN switch_user_logged_out --><!-- END switch_user_logged_out --> no son necesarios, lo probe y si funciona, te en cuenta que debes poner el codigo del registro asi:
FIND
REPLACE WITH
EL CODIGO QUE QUIERES QUE SALGA
Saludos!
_________________________________ No nos atrevemos a muchas cosas porque son difíciles, pero son difíciles porque no nos atrevemos a hacerlas. (Séneca)
|
|
|
|
 |
xagus
Homo Erectus

Registrado: Julio 2007
Mensajes: 243
|
 Re: Imagen De Registro Flotante
xDD no cacho... perdona mi ignorancia... vamos a ver... ahora mismo tengo este codigo:
<style type="text/css">
#topbar{
position:absolute;
border: 1px solid black;
padding: 2px;
background-color: lightyellow;
width: 620px;
visibility: hidden;
z-index: 100;
}
</style>
<script type="text/javascript">
/***********************************************
* Floating Top Bar script- © Dynamic Drive (www.dynamicdrive.com)
* Sliding routine by Roy Whittle (http://www.javascript-fx.com/)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
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>
<!-- BEGIN switch_user_logged_out -->
<div id="topbar">
<a href="" onClick="closebar(); return false"><img src="close.gif" border="0" /></a>
Your content here.
</div>
<!-- END switch_user_logged_out -->
y en la web sale la ventanita esa siempre... lo que queria hacer es que saliese solo a los users conectados.
_________________________________
|
|
|
|
 |
Manolo
Enganchado

Registrado: Julio 2006
Mensajes: 3650
Ubicación: Olesa
|
 Re: Imagen De Registro Flotante
Saludos,
Ultimamente y tras algunos "engaños" de la mayoria de hostings gratuitos... Me he visto obligado a cojer uno de esos que regalan por ahi.
La verdad es que el servicio que ofrecen esta muy bien, y como soy bastante conocido en el foro de soporte ... pues eso.
Necesitaría saber cual es el codigo que puedo utilizar para mantener una imagen flotante con el link a la url de registro, como en esta web.
Pero además que solamente funcionara cuando los usuarios estan no-conectados.
A ver si alguien me ayuda, un saludo.
EDITO:
Consegui el codigo para la imagen flotante. ver
Pero aún no sé como consiguio poner el dueño de la web antesmencionada que solo aparezca para los no-conectados. Alguna idea?
Aclarate porfavor, si es solo para conectados es el codigo 1º que te di con in y si es al reves con el out y no pongas mas el codigo, con una vez era suficiente creo yo.
Saludos!
_________________________________ No nos atrevemos a muchas cosas porque son difíciles, pero son difíciles porque no nos atrevemos a hacerlas. (Séneca)
|
|
|
|
 |
xagus
Homo Erectus

Registrado: Julio 2007
Mensajes: 243
|
 Re: Imagen De Registro Flotante
Ok... en el anterior post me equiboque... perdon...
Pues puse todo el codigo necesario entre eses codigos y sigue sin ir... solo aparece la ventanita.
_________________________________
|
|
|
|
 |
xagus
Homo Erectus

Registrado: Julio 2007
Mensajes: 243
|
 Re: Imagen De Registro Flotante
Toc,Toc... Perdon por el doble post.
_________________________________
|
|
|
|
 |
ruben
Homo Erectus

Registrado: Septiembre 2007
Mensajes: 200
Ubicación: Argentina
|
 Re: Imagen De Registro Flotante
Muchas gracias xagus, me gusto esto en cuanto me haga un poco de tiempo seguro lo probare, felicitaciones por la página muy lindos colores y muy completa, guardare esta direccion para volver a encontrarla rapido un abrazo
_________________________________
La pesca siempre da revancha
http://www.pesquemosjuntos.com.ar
|
|
|
|
 |
xagus
Homo Erectus

Registrado: Julio 2007
Mensajes: 243
|
 Re: Imagen De Registro Flotante
Muchas gracias xagus, me gusto esto en cuanto me haga un poco de tiempo seguro lo probare
lol creo que hubo un error ahi
_________________________________
|
|
|
|
 |
ruben
Homo Erectus

Registrado: Septiembre 2007
Mensajes: 200
Ubicación: Argentina
|
 Re: Imagen De Registro Flotante
Muchas gracias xagus, me gusto esto en cuanto me haga un poco de tiempo seguro lo probare
lol creo que hubo un error ahi 
Porque decis que hubo un error contamne por favor
_________________________________
La pesca siempre da revancha
http://www.pesquemosjuntos.com.ar
|
|
|
|
 |
xagus
Homo Erectus

Registrado: Julio 2007
Mensajes: 243
|
 Re: Imagen De Registro Flotante
Porque en este post intento que alguien me ayude a conseguir que un codigo me funcione... no intento promocionar mi web ^^
_________________________________
|
|
|
|
 |
ruben
Homo Erectus

Registrado: Septiembre 2007
Mensajes: 200
Ubicación: Argentina
|
 Re: Imagen De Registro Flotante
Porque en este post intento que alguien me ayude a conseguir que un codigo me funcione... no intento promocionar mi web ^^
Amigo Xagus en ningún momento pensé en que podes promocionar tu pagina solo que cuando veo una linda pagina me es imposible no expresar mi sentimiento por ver un lindo lugar creado por uno, al igual que cuando me alagan por la mía, si bien no son muchas pero uno siempre se siente motivado y con ganas de seguir adelante en la creación, además estamos entre gente que perseguimos el mismo objetivo, brindar a nuestros visitantes lo mejor, así que reitero mis felicitaciones como también a otras paginas que visite por intermedio de los link que dejan en el foro y me siento muy orgulloso de pertenecer a este magnifico grupo un abrazo a todos
_________________________________
La pesca siempre da revancha
http://www.pesquemosjuntos.com.ar
|
|
|
|
 |
|
|