www.webdeveloper.com

Search:

Type: Posts; User: boris90

Search: Search took 0.01 seconds.

  1. The to; part was supposed to execute the function...

    The to; part was supposed to execute the function stored in the to variable, but I removed it.

    I did as you said:

    function rotate() {
    //Get the first image
    var current = ($('div.rotator ul...
  2. Also, if I put clearTimeout(to) after the var to...

    Also, if I put clearTimeout(to) after the var to = setTimeout(rotate, time);, the image changing doesn't seem to occur. The first image just stands still. Looks like the clearTimout function clears...
  3. OK, now my rotate function looks like this. ...

    OK, now my rotate function looks like this.

    function rotate() {
    //Get the first image
    var current = ($('div.rotator ul li.show')? $('div.rotator ul li.show') : $('div.rotator ul li:first'));...
  4. Yeah, I forgot. It doesn't work. And I added the...

    Yeah, I forgot. It doesn't work.
    And I added the onClick attribute in the <a> tags (which make the images into links) which calls the imageClick() function on the image click.
  5. Hey, I've tried your method, though I'm not...

    Hey,

    I've tried your method, though I'm not sure I did it right.
    I wrote a complete new function like this:

    function imageClick()
    {
    clearTimeout();
    rotate();
    }
  6. I'll try clearing the setTimout() function, and...

    I'll try clearing the setTimout() function, and I'll post back.
    On the other side, I assure you the file is, not 100%, but 200% safe. Who'd even want to infect other people's PC's when he needs...
  7. You can download the code from here:...

    You can download the code from here: http://www.mediafire.com/?9wnb9gv97cgat79
  8. Random-timed image changer with the possibility of changing them manually

    Hi,

    this is my first post here. Hope I'll get some help here.
    I need someone to look at my code and tell me where I'm wrong. I just started learning JavaScript and I need someone to tell me how...
  9. Random-timed image changer with the possibility of changing them manually

    Hi,

    this is my first post here. Hope I'll get some help here.
    I need someone to look at my code and tell me where I'm wrong. I just started learning JavaScript and I need someone to tell me how...
Results 1 to 9 of 9
HTML5 Development Center



Recent Articles