swf 100%: Html optimizado          

Clasificado bajo: Html — drus @ 3:48 am

Esta forma de embeber un swf al 100% de alto y ancho sigue el método usado por group94 que aporta además que las barras de dezplazamiento del navegador se muestran cuando el tamaño de la ventana es menor que el definido en la tabla. Investigado por Eliseo y publicado generosamente en After-Hours.

Las etiquetas usadas para embeber el swf son una alternativa al método tradicional, como la capa oculta cuya finalidad es insertar contenido textual para la correcta indexación del flash por los buscadores.

HTML:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Titulo de la página</title>
<meta name="description" content="descripción">
<meta name="keywords" content="palabras clave">
<style  type="text/css">
<!--
         body,html {
            margin: 0px 0px 0px 0px;
            width:100%;
            height:100%;
         }
         td {
            valign: middle;
            width:100%;
            height:100%;
         }
-->

</style>
</head>
    <body>
        <table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0">
            <tr>
                <td align="center">
                    <object type="application/x-shockwave-flash" data="main.swf" width="100%" height="100%" title="main" standby="main">
                     <param name="movie" value="main.swf" />
                    <param name="scale" value="noscale" />
                    <param name="quality" value="best" />
                    <param name="menu" value="false" />
                    </object>
                    <div id="Layer1" style="position:absolute; left:177px; top:47px; width:445px; height:43px; z-index:1; visibility: hidden;">
  Contenido textual para indexación en buscadores
</div>
                </td>
                <td>
                    <img src="" width="0" height="600" alt=""/>
                </td>
            </tr>
            <tr>
                <td><img src="" width="800" height="0" alt=""/></td>
                <td><a href="#"></a></td>
            </tr>
        </table>
    </body>
</html>

Enlaces relacionados: No related posts, | Tags: , ,



popUp MovieClip prototype          

Clasificado bajo: AS2 (deprecated), Prototipos, Navegador — drus @ 8:58 pm

Este prototipo abre enlaces en una nueva ventana de navegador, de tipo popup.
Usar con precaución, los actuales popup stopper de los navegadores pueden bloquear su funcionamiento.

Actionscript:
MovieClip.prototype.popUp = function(url, title, features) {
    getURL("javascript:void(window.open('"+url+"','"+title+"','"+features+"'));");
};
//Uso:
this.popUp("http://drusunlimited.com","popUp name", "width=200, height=150");

Enlaces relacionados: No related posts, | Tags: , , , , , ,



shakeWin MovieClip prototype          

Clasificado bajo: AS2 (deprecated), Prototipos, Navegador — drus @ 8:29 pm

Este prototipo produce un temblor en la ventana del navegador, la cantidad de veces indicadas en el parámetro amount

Actionscript:
MovieClip.prototype.shakeWin = function(amount:Number):Void  {
    getURL("javascript:function shakewin(n){if(parent.moveBy){for(i = 10;i> 0;i--){for(j = n;j> 0;j--){parent.moveBy(0,i);parent.moveBy(i,0);parent.moveBy(0,-i);parent.moveBy(-i,0);}}}};shakewin("+amount+");void(0)");
};
//Uso
this.shakeWin(5);

Enlaces relacionados: No related posts, | Tags: , , , , ,



Siguiente página »

AS_toolKit | Powered by WordPress | Skinned by Drus Unlimited | RSS Feed | Copyleft