rotate images automatically when page loads

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • marcolee
    New Member
    • Jul 2009
    • 7

    #16
    I want it to rotate automatically. What do I need to change?
    When the mouse is over of the picture, the pictures stop rotating.
    When the mouse is out of the picture, the pictures continue rotating.
    And the coding is too long. Can I take out some of coding?
    Thank you!

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #17
      One thing at a time.
      Originally posted by marcolee
      I want it to rotate automatically. What do I need to change?
      Can you see the code for the buttons:
      Code:
      <div id="controale" style="position:absolute"><button type="" onclick="eye.a2+=eye.pas;eye.muta()" onfocus="this.blur()"><<</button> <button type="" onclick="eye.a2-=eye.pas;eye.muta()" onfocus="this.blur()">>></button></div>
      To make it automatically rotate, add one of the onclick (whichever way you want it to rotate) onload.

      Comment

      • marcolee
        New Member
        • Jul 2009
        • 7

        #18
        How can I find which image is at the middle?
        1.jpg, 2.jpg, or......
        when the page loads, 1.jpg is at the middle.
        So how can I keep tracking which image is at the middle?

        Comment

        Working...