Foros del Web » Programando para Internet » Javascript »

vincular con javascript

Estas en el tema de vincular con javascript en el foro de Javascript en Foros del Web. Hola, tengo una animacion hecha en flash, y quiero por medio de javascript hacerle un evento para que me dirija a otra pagina. Hice lo ...
  #1 (permalink)  
Antiguo 01/11/2011, 12:36
 
Fecha de Ingreso: mayo-2010
Mensajes: 414
Antigüedad: 14 años
Puntos: 2
vincular con javascript

Hola, tengo una animacion hecha en flash, y quiero por medio de javascript hacerle un evento para que me dirija a otra pagina.
Hice lo siguiente pero nada:

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <script type="text/javascript">
  4.  
  5. function abrirpagina(){
  6.  
  7.     document.getElementById(b).location.href='banner-grande.html';
  8.  
  9. }
  10.  
  11.  
  12. <link type="text/css" href="css/estilo.css" rel="stylesheet" />
  13. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  14. <title>Documento sin t&iacute;tulo</title>
  15.  
  16. </head>
  17.  
  18.  
  19.  
  20.    
  21.       <div><object onclick="abrirpagina()" id="b" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="186" height="97">
  22.         <param name="movie" value="animacion.swf" />
  23.         <param name="quality" value="high" />
  24.         <embed src="animacion.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="186" height="97"></embed>
  25.       </object>
  26.    
  27. </div>
  28.  
  29. </body>
  30. </html>

Etiquetas: html, vincular
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 13:24.