I'm trying to do an system that show an movie for left side while on
the right side I've pictures changing from time to time.
My friend do an javascript program to do this and is working., however
we need to convert this program to php. When my user make his
presentation, he start to see the movie, but the images can't change.
I'm passing this variables to my presentation view:
/views/presentations/view.thtml:

<?php echo $javascript->codeBlock("
    var arrTempo = '".$javascript->object($jssignstimes,false, '', '',
array()).";';
    var arrImagens = '".$javascript->object($jssignsfiles,false, '',
'', array()).";';
    n = '".$rows.";';
    ");
        echo $javascript->link('grandejs'); ?>

With this values:
 arrTempo: [1000, 2000, 3000];, arrImagens: [ "img/files/Slide10.GIF",
"img/files/Slide12.GIF", "img/files/Slide13.GIF"]; , n:4;

Parts of ower javascript:

var imgSeguinte = new Image();
var imgSlide = new Image();
var indice = 0;

function trocaImgSlide() {
moviestate = document.video1.GetPlayState();
  if (moviestate == 3) {
    indice = pegaIndiceImg();
          if (imgSeguinte.src == arrImagens[indice]) {
            imgSlide.src = imgSeguinte.src;
          } else {
            imgSlide.src == arrImagens[indice];
          }
          imgSeguinte.src == arrImagens[indice + 1];
        }
}
function pegaIndiceImg() {
var tempo;
var ind = 0;
tempo = document.video1.GetPosition();

while (n>ind) {
        if (tempo < arrTempo[ind]){
                return ind;
        }
        ind++;
 }
return 0;
}

What I'm missing ?
Thanks, Alexandre


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to