D
dino
Gamma
¡Usuario con pocos negocios! ¡Utiliza siempre saldo de Forobeta!
<script src="popupociotop.js" type="text/javascript" language="javascript"></script>
// Popupvotar
var persistclose=1;
var startX = 10;
var startY = 100;
var verticalpos="frombottom"; //Posibles valores: "fromtop", "frombottom"
function iecompattest()
{
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body;
}
function set_cookie(name, value, expires)
{
document.cookie = name + "=" + escape(value) + "; path=/" + ((expires == null) ? "" : "; expires=" + expires.toGMTString());
}
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()
{
var expirebar = new Date();
expirebar.setTime(expirebar.getTime() + (1000 * 60 * 60 * 24)); // 24 horas
set_cookie("l2votebar", "1", expirebar);
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")=="")
if (get_cookie("l2votebar")=="")
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;
var widthvote = 280
var heightvote = 260
var bgcolorvote = "#869BBF"
var fontcolor = "#FFFFFF"
var urlvote = "[URL]http://www.ociotop.com/vota.php?id=1097[/URL]"
var imgvote = "[URL]http://www.universosymbian.es/Images/Ociotop.gif[/URL]"
var imgwidthvote = 119
var imgheightvote = 90
var altimgvote = "Universo Symbian"
var messagevote1 = "Universo symbian"
var messagevote2 = " ¡¡¡Vótanos!!! <br><br><div align='justify'>Tu Ayuda es necesaria, Gracias.<br><br>Solamente son dos Cliks y podremos traerte siempre lo mejor."
var messagevote3 = "<a href='' onclick='closebar()';>Salir sin votar</a><br><br>Al votar se ocultara la ventana"
document.write('<div id="topbar"><table width="'+widthvote+'px" height="'+heightvote+'px" cellspacing=6 cellpadding=2 border=0 bgcolor="'+bgcolorvote+'"><tr><td align="center" valign="top"><b><font color="'+fontcolor+'" size="+1">'+messagevote1+'</font><br><font color="'+fontcolor+'">'+messagevote2+'</font></b></td></tr><tr><td align="center" valign="middle"><a onClick="closebar();" href="'+urlvote+'" target="_blank"><img src="'+imgvote+'" border="0" width="'+imgwidthvote+'" height="'+imgheightvote+'" alt="'+altimgvote+'"></a></td></tr><tr><td align="center" valign="bottom"><b><font color="'+fontcolor+'">'+messagevote3+'</font></b></td></tr></table></div>');
<if condition="$show[guest]">
<!-- Improve registration Rates -->
<style type="text/css">
#topbar{
position:absolute;
border: 0px solid black;
padding: 5px;
background-color: ;
width: 500px;
visibility: hidden;
z-index: 200;
top: 27px;
height: 134px;
left: 13px;
}
</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 id="topbar">
<p align="right"><a href="" onClick="closebar(); return false"><img src="AQUI LA RUTA PARA LA IMAGEN QUE CIERRA EL POP UP" border="0" /></a>
</align>
<a href="WWW.TUFORO/FORO/REGISTER.PHP"><img src=" AQUI LA IMAGEN DEL POPUP"></a></td>
</div>
<!-- End Improve Registration -->
</if>
<script type="text/javascript">
var persistclose=1 //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>
<div id="topbar">
<a href="" onClick="closebar(close.gif); return false"></a>
<tr><td align="center" valign="middle"><a onClick="closebar(close.gif);" href="[URL="http://www.sitio.com/votar.php"][COLOR=red][B]http://www.sitio.com/votar.php[/B][/COLOR][/URL]" target="_blank"><img src="/[COLOR=red][B]foro/imagen.jpg[/B][/COLOR]" alt="" width="255" height="128" align="center" /></a></a></td></tr>
<a href='[URL="http://www.sitio.com/votar.php"][COLOR=red][B]http://www.sitio.com/votar.php[/B][/COLOR][/URL]' onclick='closebar()';>Vota para apoyar a [B][COLOR=red]Tu sitio[/COLOR][/B]</a><br><br>Al votar se ocultara la ventana</font></b></td></tr></table></div>
</div>
<!-- End Improve Registration -->
</if>
teniendo el codigo que hace que el aviso se mueva, el resto se puede adaptarpero esto es para que la peña se registre, esta bien pero no es lo que yo quiero
[COLOR=blue]<style type="text/css">[/COLOR]
[COLOR=blue]#topbar{[/COLOR]
[COLOR=blue]position:absolute;[/COLOR]
[COLOR=blue]border: 1px solid black;[/COLOR]
[COLOR=blue]padding: 5px;[/COLOR]
[COLOR=blue]background-color: green;[/COLOR]
[COLOR=blue]width: 255px;[/COLOR]
[COLOR=blue]visibility: hidden;[/COLOR]
[COLOR=blue]z-index: 400;[/COLOR]
[COLOR=blue]}[/COLOR]
[COLOR=blue]</style>[/COLOR]
es posible q el error este en otra parte, de todas formas lo probaremos y te comentamos, muchas gracias amigo x toda tu ayuda, se agradece de corazon.Es raro que no te funcione, ya que todas las pruebas que hice con ese código, funcionaba.
A ver, escribe este trozo de código antes de <script type="text/javascript">
Si sigue sin funcionarte, te envio un html para que veas que si funciona. Quizás el error esté en otra parte.Insertar CODE, HTML o PHP:[COLOR=blue]<style type="text/css">[/COLOR] [COLOR=blue]#topbar{[/COLOR] [COLOR=blue]position:absolute;[/COLOR] [COLOR=blue]border: 1px solid black;[/COLOR] [COLOR=blue]padding: 5px;[/COLOR] [COLOR=blue]background-color: green;[/COLOR] [COLOR=blue]width: 255px;[/COLOR] [COLOR=blue]visibility: hidden;[/COLOR] [COLOR=blue]z-index: 400;[/COLOR] [COLOR=blue]}[/COLOR] [COLOR=blue]</style>[/COLOR]
Saludos
<!-- Inicio PopUp de votación -->
<style type="text/css">
#topbar{
position:absolute;
border: 1px solid black;
padding: 5px;
background-color: green; //Aquí cambias el color del fondo de la ventanita
width: 255px;
visibility: hidden;
z-index: 400;
}
</style>
<script type="text/javascript">
var persistclose=1 //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>
<!-- Fin PopUp de votación -->
<div id="topbar">
<a href="" onClick="closebar(); return false"></a>
<tr><td align="center" valign="middle"><a onClick="closebar();" href="[URL]http://www.ociotop.com/vota.php?id=1097[/URL]" target="_blank"><img src="[URL]http://www.universosymbian.es/Images/Ociotop.gif[/URL]" alt="" width="134" height="147" align="center" /></a></a></td></tr>
<a href='http://www.ociotop.com/vota.php?id=1097' onclick='closebar()';>¡¡¡Vótanos!!! <br><br><div align='justify'>Tu Ayuda es necesaria, Gracias</a><br><br>Al votar se ocultara la ventana</font></b></td></tr></table></div>
</div>
lo puedes editar a tu propia imagen, flash, gif, etcpero esto es para que la peña se registre, esta bien pero no es lo que yo quiero
teniendo el codigo que hace que el aviso se mueva, el resto se puede adaptar
Cuando solucioneis en problema, avisadnos y hacednos participes de vuestra alegría. Es una buena manera de agradecer. 😛gracias a todos, estoy muy contento de todos vosotros xq nos estáis ayudando mucho y no se como agradecerlo, mil gracias fierasssssssssssssss!!!!!!!!!!!!!!
Utilizamos cookies y tecnologías similares para los siguientes fines:
¿Aceptas las cookies y estas tecnologías?
Utilizamos cookies y tecnologías similares para los siguientes fines:
¿Aceptas las cookies y estas tecnologías?