HTML code to rotate images

  • Author
    Posts
  • #299494

    nerdygrrl
    Member

    Hey does anyone know any HTML code to rotate images? I just want to put some photos of some of my tee shirt design up on my blog and I would like to be able to rotate them.

    #299725

    vivianpaige
    Member

    Please provide a link to your blog and to consider linking it in your user name as explained in the sticky, 8 Things, at the top of the forum.

    In the meantime – you may want to search Google for this as it really is not a wordpress.COM question.

    #299789

    nerdygrrl
    Member

    OK Thanks. I am sorry about not linking the blog, just started.

    #299799

    talk2kapil
    Member

    It is not possible to rotate images using only HTML.

    For this scripting is required. You can do this using Javascript or Ajax.

    In javascript:

    1. Asign an unique id to image tag.
    2. Create an array which contain URL’s for images.
    3. Get some knowlege on timer in javascript.
    4. Create a function which rotate images src property after a specific interval using timer object.
    5. Call this funciton on document.ready() in your header.
    6. If you have knowlege of random number in javascript, change the images randomly.

    Ajax is much longer proccess…will explain if required.

    Let me know if you have any problem in this.

    #299800

    talk2kapil
    Member

    It is not possible to rotate images using only HTML.

    For this scripting is required. You can do this using JavaScript or Ajax.

    In JavaScript:

    1. Assign an unique id to image tag.
    2. Create an array which contain URL’s for images.
    3. Get some knowledge on timer in JavaScript.
    4. Create a function which rotates images SRC property after a specific interval using timer object.
    5. Call this function on document.ready() in your header.
    6. If you have knowledge of random number in JavaScript, change the images randomly.

    Ajax is much longer process…will explain if required.

    Let me know if you have any problem in this.

    #299802

    vivianpaige
    Member

    WRONG answer. We cannot use javascript or Ajax here.

    #299807

    It’s not difficult to rotate an image using MS Paint. Just save the rotated version and upload it to your post. If you want to show several rotated versions, go through that several times and upload each new version. Each image will be a “still,” and the images won’t rotate.

    #299808

    nerdygrrl
    Member

    Thanks everyone. It seems the best way to add rotating images is to save me elsewhere in the format desired an upload. You guys are great!

The topic ‘HTML code to rotate images’ is closed to new replies.