HTML Code Rotation Script

by RayW
7 replies
  • WEB DESIGN
  • |
Anyone know where I can find some javascript code to rotate blocks of HTML on my site? I found scripts to rotate banners and images but I need to rotate HTML code.
#code #html #rotation #script
  • Ray, it is a simple adjustment to get the html's codes to rotate. Shoot me the example html codes you want rotated and I will adjust the code, send it to you, and let you know how to make adjustments.
    {{ DiscussionBoard.errors[6334009].message }}
  • {{ DiscussionBoard.errors[6334268].message }}
  • Profile picture of the author peter786110
    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.
    Signature

    WebIntel provides its services to develop a unique web sites and perth web design globally.

    {{ DiscussionBoard.errors[6344101].message }}
  • Profile picture of the author RayW
    Thanks guys, figured it out.
    {{ DiscussionBoard.errors[6344542].message }}
  • Profile picture of the author vipanil
    Hello RayW can u just make a HTMl page html with example ..i am also tryiing to do same thing but can"t .

    it will very help Full if u .just reply Help me out ..


    thank you

    regands
    Anil verma
    {{ DiscussionBoard.errors[7691012].message }}
  • Profile picture of the author Michael71
    jquery innerfade, just an example
    Signature

    HTML/CSS/jQuery/ZURB Foundation/Twitter Bootstrap/Wordpress/Frontend Performance Optimizing
    ---
    Need HTML/CSS help? Skype: microcosmic - Test Your Responsive Design - InternetCookies.eu

    {{ DiscussionBoard.errors[7694938].message }}
  • Profile picture of the author Istvan Horvath
    If you post anything in this thread, you risk your post getting deleted. Here is why...
    Signature

    {{ DiscussionBoard.errors[7716520].message }}

Trending Topics