ghiano
Usuario Novato
Usuario Novato

No sé si estoy va en HTLM básico, pero lo pongo aca porque soy principiante :5):5)

Tengo un problema, edite el menu que queria poner en mi foro con el dream... todo lindo todo bien, cuando ya puse los codigos y voy a mi foro para verificar si anda todo ok, veo q al abrirse el menu me lo hace mas abajo, puede ser que no me explique bien... por eso pongo una foto:

Los codigos son estos:

Spoiler:

<style type="text/css">

#dropmenudiv{
position:absolute;
border: 1px solid #006091
;
border-bottom: none;
background-color: #003E5E;
font:normal 10px Verdana;
line-height:18px;
z-index:100px;
}

#dropmenudiv a{
width: 165px;
display: block;
padding: 1px;
border-bottom: 1px solid #000000;
text-decoration: none;
color:#006699
}

#dropmenudiv a:hover{ /*hover background color*/
background-color: #99CCFF;
}

.Estilo1 {color: #FF0000}
</style>

<script type="text/javascript">

//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="http://infernal-kombat.mforos.com/1908588-presentate/"> Preséntate </a>'
menu1[1]='<a href="http://infernal-kombat.mforos.com/1908586/9498111-reglas-del-foro/"> Reglas del foro </a>'
menu1[2]='<a href="http://infernal-kombat.mforos.com/1908586/9502934-guia-para-principia tes/"> Guia para principianes </a>'
menu1[3]='<a href="http://infernal-kombat.mforos.com/1908587-quejas-dudas-y-sugerencias/ "> ¿Quejas dudas o sugerencias? </a>'
menu1[4]='<a href="http://infernal-kombat.mforos.com/1908586/9515330-reglas-para-fanfic- s/"> Reglas Fan Fics </a>'
menu1[5]='<a href="http://infernal-kombat.mforos.com/1908586-noticias-del-foro-y-la-comu nidad/"> Noticias del foro </a>'


//Contents for menu 2, and so on
var menu2=new Array()
menu2[0]='<a href="http://infernal-kombat.mforos.com/?cat=381859">Anime y manga</a>'
menu2[1]='<a href="http://infernal-kombat.mforos.com/?cat=381882">Game Zone</a>'
menu2[2]='<a href="http://infernal-kombat.mforos.com/?cat=381903">Otros temas</a>'
menu2[3]='<a href="http://foreverfriends.foro.st">Forever Friends</a>'

//Contents for menu 3, and so on
var menu3=new Array()
menu3[0]='<a href="http://infernal-kombat.mforos.com/login/">Conectar</a>'
menu3[1]='<a href="http://infernal-kombat.mforos.com/logout/">Desconestar</a>'
menu3[2]='<a href="http://infernal-kombat.mforos.com/register/">Registrate</a>'

var menuwidth='' //default menu width
var menubgcolor='bgcolor="#D3F6A2"' //menu bgcolor
var disappeardelay=250 //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all


if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:\'+menuwidth+\';background-color:\'+menubgco lor+\'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu

</script>









<div align="center">
  <table width='64%' height="61" border='0' cellpadding='5' cellspacing='1' bordercolor="#006091" bgcolor="#003e5e" TEXT-DECORATION: none;>
    <tr>
      <td height="29" colspan="3" class='tabla_titulo' id='tabla_titulo_obj'><div align="center" class="Estilo1">Menu</div></td>
    </tr>
    <tr>
      <td width="34%" height="29" align="center" bordercolor="#006091" class="navtd"><blockquote>
        <p><font class="navtd"><span class="Estilo1"><img src="https://espacioforos.miarroba.st/71878/F/dedo_pic.gif" width="16" height="13"> </span></font><span class="Estilo1"><font class="navtd"><a href="15" onClick="return clickreturnvalue()" onMouseOver="dropdownmenu(this, event, menu1, '')" onMouseOut="delayhidemenu()"><font class="navtd Estilo1">Principiantes</font></a></font></span></p>
      </blockquote></td>
      <td width="29%" align="center" bordercolor="#006091" bgcolor="#003E5E" class="navtd"><font class="navtd"><span class="Estilo1"><img src="https://espacioforos.miarroba.st/71878/F/dedo_pic.gif" width="16" height="13"> </span></font><span class="Estilo1"><font class="navtd"><a href="#" onClick="return clickreturnvalue()" onMouseOver="dropdownmenu(this, event, menu2, '')" onMouseOut="delayhidemenu()"><font class="navtd Estilo1">Foro </font></a></font></span></td>
      <td width="37%" align="center" bordercolor="#006091" class="navtd"> <font class="navtd"><span class="Estilo1"><img src="https://espacioforos.miarroba.st/71878/F/dedo_pic.gif" width="16" height="13"></span></font><span class="Estilo1"><font class="navtd"><a href="#" onClick="return clickreturnvalue()" onMouseOver="dropdownmenu(this, event, menu3, '')" onMouseOut="delayhidemenu()"><font class="navtd Estilo1">Opciones de Usuarios</font></a></font><font class="navtd"><a href="#" onClick="return clickreturnvalue()" onMouseOver="dropdownmenu(this, event, menu3, '')" onMouseOut="delayhidemenu()"><font class="navtd Estilo1"></font></a></font></span></td>
    </tr>
  </table>
  </td>
  </tr>
</div>
<tr>
  <td class="navtd" style="padding: 5px 0pt;"><div align="center">
    <table align="center" cellpadding="1" cellspacing="0" width="100%">
      </table>
  </div>

Por las dudas mi foro es :

Spoiler:

Ojala que al menos el codigo ayude a algunos... y algunos me ayuden a mi :):D

Avatar Image
Come y duerme en el foro
Come y duerme en el foro

la propiedad top de css es muy alta, rebisa eso eh intenta disminuirla

ghiano
Usuario Novato
Usuario Novato

Tú dices esta parte?

dropmenuobj.style.left=dropmenuobj.style.top="-500px"
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 06/Sep/2009, 02:30
Bolde Toei NoSetup.org93kOct/09
Por: , el 09/Ene/2009, 01:20
virusx_06 GestionXls Centurienne andres-elek chavp103kAug/09
Por: , el 11/Ago/2008, 23:04
siriguilla140 NoSetup.org1888Aug/08
Por: , el 16/Sep/2006, 01:11
jessica_nenika chavp22kSep/06
Por: , el 30/May/2013, 01:08
TheMunSession NoSetup.org22kMay/13