Ver Mensaje Individual
  #5 (permalink)  
Antiguo 22/10/2008, 12:37
worldPeace_Plis
Usuario no validado
 
Fecha de Ingreso: marzo-2007
Mensajes: 238
Antigüedad: 17 años, 1 mes
Puntos: 5
Respuesta: como hacer el efecto de estos botones

addenda, este sitio esta MMMUUUUUYYYYY Bien!... a ver, curioseando por el script(que al parecer esta en AS3), le he querido adaptar un par de funciones para escribir el texto, se los dejo? me pueden ayudar para hacer que funcione mejor?
Código PHP:
var pruebas:Array = new Array ();
pruebas[0] = "Este es de prueba";
pruebas[1] = "Qué es Lorem Ipsum?";
pruebas[2] = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.";
pruebas[3] = "It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.";
mitexto pruebas[0];
//
function escribeBasura() {
    
basuraTmp "";
    for (
p=0p<motor.contp++) {
        
basuraTmp basuraTmp+frase.charAt(random(frase.length));
        
trace ('p:'+p+' < q:'+q+'-motor.cont:'+motor.cont);
    }    
    
parrafo "<font color=\'#999999\'>"+basuraTmp+"</font>";
    
//
    
motor.cont++;
    
trace (motor.cont);

function 
escribeBasuraFinal() {
    
motor.cont 0;
    
//caurina.transitions.Tweener.addTween
    //(motor, {cont:q, time:0.600000, transition:"easeOutCubic", onUpdate:escribeFrase, onComplete:escribeFraseFinal});
    
escribeFrase();
// End of the function
function escribeFrase() {
    
basuraTmp "";
    for (
p=0p<q-motor.contp++) {
        
basuraTmp basuraTmp+frase.charAt(random(frase.length));
        
trace ('p:'+p+' < q:'+q+'-motor.cont:'+motor.cont);
    }    
    
basuraTmp "<font color=\'#999999\'>"+basuraTmp+"</font>";
    
fraseSlice frase.slice(0Math.ceil(motor.cont));
    
caracter caracteres.charAt(random(caracteres.length));
    
parrafo fraseSlice+basuraTmp;

function 
escribeFraseFinal() {
    
parrafo frase;
}
stop();
c1.autoSize "left";
var 
motor = new Object();
motor.cont 0;
var 
frase mitexto != "" && mitexto != undefined ? (mitexto) : ("Demo");
var 
frase.length;
parrafo "";
var 
basuraTmp "";
//caurina.transitions.Tweener.addTween(motor, 
//{cont:q, time:0.400000, transition:"easeInCubic", onUpdate:escribeBasura, onComplete:escribeBasuraFinal});
//
this.onEnterFrame = function () {
    
//escribeBasuraFinal();
    
if (motor.cont<q) {
    
escribeBasura();
    } else {
    
escribeFraseFinal();
    }
}
//
//
var foo:Number 0;
function 
callback() {
 
trace("interval called: "+getTimer()+" ms. -->mitexto = " mitexto ', ' foo+'/'+pruebas.length);
// clearInterval( intervalID );
 
foo++;
 if (
foo>pruebas.length-1) {
     
foo 0;
 }
 
mitexto pruebas[foo];
 
motor.cont 0;
 
frase mitexto != "" && mitexto != undefined ? (mitexto) : ("Demo");
 
frase.length;
 
parrafo "";
 
basuraTmp "";
}

var 
intervalID:Number setInterval(callback5000); 
en los frames solamente uso un textField con variable parrafo para desplegar el texto
en el sitio:
http://www.el-laboratorio.es/dev/

en la seccion central: El Laboratirio/Gente, cuando pasas rollOver sobre c/thumb de las personas cambia el contenido txt con este script, algo asi....