Tengo una duda
Estoy tratando de generar un comportamiento en Dreamweaver en el que al pasar el mouse sobre una opción del menú... el tamaño de la letra aumenta..
Lo he logrado con este código:
<script type="text/JavaScript">
<!--
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[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_changeProp(objName,x,theProp,theValue) { //v6.0
var obj = MM_findObj(objName);
if (obj && (theProp.indexOf("style.")==-1 || obj.style)){
if (theValue == true || theValue == false)
eval("obj."+theProp+"="+theValue);
else eval("obj."+theProp+"='"+theValue+"'");
}
}
//-->
</script>
Y luego en la capa:
<div id="Layer1" onmouseover="MM_changeProp('Layer1','','style.fontSize','20','DIV')
"onmouseout="MM_changeProp('Layer1','','style.fontSize','14','DIV')"><a href="#" style="text-decoration:none">INICIO</a></div>
Y me va perfecto con IEx ... pero no con Firefox alguien sabe porque...? me he fijado que en el editor de comportamientos solo trae las opciones de IE3, IE4, y los NS... no veo FF será por eso?
Estoy usando Dw8...
Alguien le ha pasado esto con comportamientos?
