#1 [AYUDA] CSS y Active X
Como va gente, les cuento que tengo un problema que segun lei por algun lado es bastante comun. Antes que nda les digo que lei algunos post viejos con respecto al tema y no escontre solucion. Por un lado, tengo un header hecho en flash, y cuando lo pongo en el sitio con dreamweaver me dice que todo esta ok al verlo con el Firefox, y cuando lo abro con el maldito IE se me bloque este por el maldito control Active X, busque por aqui y por la red y dicen que tengo que poner un codigo el cual puse pero no paso nda. Por otro lado No entiendo bien el codigo que me aparece cuando inserto el swf. aparecen como 10 lineas incluidas algunas que nombran java y la verdad solo inserte un swf. Aca les dejo el codigo para que lo vean.
TODO ESTO ME APARECE Y LO UNICO QUE HICE FUE PONER 1 O 2 TABLAS Y UN SWF ADENTRO.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>MundoRuedas - Service Integral del Neumatico</title>
<style type="text/css">
<!--
body,td,th {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #FFFFFF;
}
body {
background-image: url(imagenes/archivos_jpg/background.jpg);
background-repeat: repeat;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
-->
</style>
<script type="text/javascript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
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_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<link href="estilos.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style11 {
font-size: 10;
color: #FFFFFF;
}
.style12 {
font-size: 10px
}
-->
</style>
</head>
<body onload="MM_preloadImages('imagenes/botones/inicio_roll.png','imagenes/botones/laempresa_roll.png','imagenes/botones/servicios_roll.png',
'imagenes/botones/neumaticos_roll.png','imagenes/botones/llantas_roll.png',
'imagenes/botones/varios_roll.png','imagenes/botones/comollegar_roll.png','imagenes/botones/contacto_roll.png')">
<table width="758" height="703" align="center">
<tr>
<td width="766" height="606"><table width="758" height="604" align="center" bgcolor="#000000">
<tr>
<td colspan="2"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','758','heigh t','220','title','head','src',
'animaciones/head','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movi e',
'animaciones/head' ); //end AC code
</script><noscript><object classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="758" height="220" title="head">
<param name="movie" value="animaciones/head.swf" />
<param name="quality" value="high" />
<embed src="animaciones/head.swf" width="758" height="220" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"></embed>
</object></noscript></td>
</tr>
<tr> </tr>
<tr>
El segundo problema y mas estupio es con las hojas de estilos (CSS). LO mismo me pasa cuando abro el fox y cuando abro el IE, tengo una botonera muy simple hecha con imagenes .png y tienen un rollover con otra imagen .png y en el IE me aparece el fondo de la imagen gris, como si no tomara que son transparentes o noc. Lo mismo me pasa con los links se me cambian los colores etc. Lei que esto se debe a que el fox no toma ningun CSS por default cuando no encuentra uno, en cambio el IE cuando no encuentra el CSS pone el que este por default. Ahora si es asi, no encuentro una solucion, osea tengo el sitio casi terminado, no me digan que tengo que cambiar todo porque no hice nda de esto, porque me muero.
SAludos y gracias.
TODO ESTO ME APARECE Y LO UNICO QUE HICE FUE PONER 1 O 2 TABLAS Y UN SWF ADENTRO.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>MundoRuedas - Service Integral del Neumatico</title>
<style type="text/css">
<!--
body,td,th {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #FFFFFF;
}
body {
background-image: url(imagenes/archivos_jpg/background.jpg);
background-repeat: repeat;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
-->
</style>
<script type="text/javascript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
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_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<link href="estilos.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style11 {
font-size: 10;
color: #FFFFFF;
}
.style12 {
font-size: 10px
}
-->
</style>
</head>
<body onload="MM_preloadImages('imagenes/botones/inicio_roll.png','imagenes/botones/laempresa_roll.png','imagenes/botones/servicios_roll.png',
'imagenes/botones/neumaticos_roll.png','imagenes/botones/llantas_roll.png',
'imagenes/botones/varios_roll.png','imagenes/botones/comollegar_roll.png','imagenes/botones/contacto_roll.png')">
<table width="758" height="703" align="center">
<tr>
<td width="766" height="606"><table width="758" height="604" align="center" bgcolor="#000000">
<tr>
<td colspan="2"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','758','heigh t','220','title','head','src',
'animaciones/head','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movi e',
'animaciones/head' ); //end AC code
</script><noscript><object classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="758" height="220" title="head">
<param name="movie" value="animaciones/head.swf" />
<param name="quality" value="high" />
<embed src="animaciones/head.swf" width="758" height="220" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"></embed>
</object></noscript></td>
</tr>
<tr> </tr>
<tr>
El segundo problema y mas estupio es con las hojas de estilos (CSS). LO mismo me pasa cuando abro el fox y cuando abro el IE, tengo una botonera muy simple hecha con imagenes .png y tienen un rollover con otra imagen .png y en el IE me aparece el fondo de la imagen gris, como si no tomara que son transparentes o noc. Lo mismo me pasa con los links se me cambian los colores etc. Lei que esto se debe a que el fox no toma ningun CSS por default cuando no encuentra uno, en cambio el IE cuando no encuentra el CSS pone el que este por default. Ahora si es asi, no encuentro una solucion, osea tengo el sitio casi terminado, no me digan que tengo que cambiar todo porque no hice nda de esto, porque me muero.
SAludos y gracias.
0