Avatar Image
@man / @woman
@man / @woman
http://miarroba.com/foros/post.php?foroid=134432#

me da error en la pagina y no se abre la tabla con los emoticones


ehhhh genios!! ayuda!!
Avatar Image
Moderador
Moderador

debes "jugar" con la variable poscartel te paso el code que uso yo tu foro tiene la misma configuración que el mio

Codigo:
<style>
<!--
.texto {font-family: Verdana; font-size: 11px; font-weight: bold; color: #386898; background-color:#FFFFFF}
a:link.texto {text-decoration:none;}
a:hover.texto {text-decoration:underline}
-->
</style>

<script>
//ESTE ARREGLO VA A TENER LOS NOMBRES DE TODOS LOS CARETOS QUE DESEO PONER
var careto = new Array ("emoticons002.gif", "emoticons015.gif", "emoticons016.gif",
"emoticons001.gif", "emoticons014.gif", "emoticons003.gif", "emoticons004.gif",
"emoticons005.gif", "emoticons006.gif", "emoticons007.gif", "emoticons008.gif",
"emoticons009.gif", "emoticons010.gif", "emoticons011.gif", "emoticons012.gif",
"emoticons013.gif") //este es mi arreglo

//ESTA VARIABLE VA A TENER LA UBICACION DONDE SE ENCUENTRAN LOS CARETOS
//SI FUERAN DE VARIAS CARPETAS, CONVENDRIA PONER LAS DIRECCIONES COMPLETAS EN EL ARREGLO
//Y DEJAR ESTA VARIABLE COMO ARREGLO VACIO ""
var carpeta = "http://www.gaf.cl/caretos/" //esta es mi carpeta

//TOMO LA DIRECCION ACTUAL DE LA PAGINA Y COMPARO LA PRIMERA PARTE PARA VER SI ES UN POST
//SI LO ES, PUBLICO UN CARTEL QUE POSICIONANDOME SOBRE EL ME DESPLEGARA UN MENU CON TODOS LOS CARETOS
var ubicacion = document.location.toString()
var post = "http://miarroba.com/foros/post.php"
var cartel = "Mas Caretos" //este es el cartel que publicara
var posCartelTop = 500 //Esta es la posicion donde ubicare
var posCartelLeft = 20 //el cartel. Depende de cada foro.
if (ubicacion.substring(0, post.length) == post)
{
document.write("<div style='position:absolute; z-index:0; left: "+ posCartelLeft +"; top: "+ posCartelTop +"'><a class=texto href=# onMouseOver=MM_showHideLayers('Caretos','','show') onMouseOut=MM_showHideLayers('Caretos','','hide')><img border=0 src="+carpeta+careto[0]+"><b>"+cartel+"</b></a></div>")
}

//ESTAS TRES SON FUNCIONES ESTANDARES, NO MODIFICAR!
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
obj.visibility=v; }
}

//LO QUE SIGUE A CONTINAUCION ES LA CREACION DE UN DIV QUE ENCIERRA UNA TABLA.
//AL PRINCIPIO LA TABLA ESTA INVISIBLE (visibility: hidden) Y LA POSICION ESTA DADA POR left:20
// Y top: 556. ES IMPORTANTE QUE LA TABLA QUEDE A CONTINUACION DEL CARTEL. DEBE PERMITIR EL PASO
//aca asnkldhalsdasldDE UNO A OTRO
</script>

<div id=Caretos style='position:absolute; width:150; z-index:1; visibility: hidden; left: 20 ; top: 525;' onMouseOver=MM_showHideLayers('Caretos','','show') onMouseOut=MM_showHideLayers('Caretos','','hide')>
<table width="160" border=2 bordercolor=#009800 cellspacing="0" align="left">
<script>
//ESTE CICLO CREA LAS CELDAS DE LA TABLA INTERACCIONANDO CON EL ARREGLO QUE PUSIMOS ANTES
//LA FUNCION A LA QUE LLAMA ES UNA PROPIA DE MI@
var inicio='[img]'+carpeta
var fin='[/img]'
for (var nro=0; nro < careto.length; nro++)
{
document.write("<tr>")
for (var i=0; i<4 && nro<careto.length; i++, nro++)
{
document.write("<td class=texto height=40 width=40 align=center><a href=javascript:AnadeTexto('"+inicio+careto[nro]+fin+"')><img border=0 src=http://www.gaf.cl/caretos/"+careto[nro]+"></a></td>")
}
nro--
document.write("</tr>")
}
</SCRIPT>
</table>
</div>


Hay variables que debes cambiar una de ellas es poscartel y la otra creo que es top
De interés Público
NO AGREGARME COMO AMIGO, gracias
Asuntos claros en los temas
Consultas en temas no afines serán borradas
Tratemos de expresarnos bien, que así da gusto leer


ATENCIÓN: Este tema no tiene actividad desde hace más de 6 MESES,
te recomendamos abrir un nuevo tema en lugar de responder al actual
Opciones:
Ir al subforo:
Permisos:
TU NO PUEDES Escribir nuevos temas
TU NO PUEDES Responder a los temas
TU NO PUEDES Editar tus propios mensajes
TU NO PUEDES Borrar tus propios mensajes
Temas similares
TemaUsuariosRespuestasVisitasActividad
Por: , el 14/Ene/2005, 00:42
Odin2010 shaki6661725Jan/05
Por: , el 02/Nov/2007, 23:23
ALESAIM NoSetup.org demoniodehiel4662Nov/07
Por: , el 14/Nov/2003, 14:21
chavp 1K3R RraS BabeloN -BigHead-563kNov/03
Por: , el 21/Oct/2005, 14:16
virus.DJ thegreat19804656Oct/05
Por: , el 18/Ene/2005, 21:15
astut chavp3747Jan/05