Quantcast
Channel: Javascript slideshow | WPDFD.com Forums
Viewing all articles
Browse latest Browse all 11

Joe Gillespie said:

$
0
0
You have the right idea about removing the bullet-specific code except that you removed too much. Just remove this section...


       // slide 6 is a special case with timed bullets
       // so we call the bullets() function
       // to display them sequentially
       if(n==6)
           {
           bullets(true);
           }
           else
           {
           bullets(false);
           }

but leave...

}
   else // its an old browsers
       {
       return false;
       }
   }

See if that fixes your problems. By the way, if you are debugging JavaScript, you really should (if you haven't already) get hold of Mozilla, the JavaScript debugger in Mozilla can help pinpoint such problems.

And you can delete the bullets() function as it is no longer called.

// if t is true, a delay is introduced between
// each visible bullet point
// if false, there is no delaty and the bullets are hidden  
function bullets(t) // runs through lines 1 to max
   {
   index=1;
   s=t;
   if(t)
       {
       delay=secs*1000;
       }
   else
       {
       delay=0;
       }
   for (i=0;i<=max;i++)
           {
           time=setTimeout('showit(s)',delay*i);
           }
           clearTimeout(time);
           
    }

Viewing all articles
Browse latest Browse all 11

Trending Articles