- Desde
- 6 Mar 2008
- Mensajes
- 63
Es que no doy con ella y tengo que meter un script, dentro de la etiqueta body y no se donde narices está, ya revolvi todas las plantilas y nada, si alguien fuera tan amable de decirmelo, Gracias.
<script src="ustopocio.js" type="text/javascript" language="javascript"></script>
perdon por el doble post pero no te habia leido, voy a intentarlo ahora.inserta el codigo que dejaste arriba en la plantilla headinclude
// 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>');
// 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>');