| | #1 |
| Advanced Warrior War Room Member Join Date: 2011
Posts: 587
Thanks: 107
Thanked 93 Times in 51 Posts
|
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.
|
| |
| | #2 |
| HyperActive Warrior War Room Member |
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.
|
| |
| | #3 |
| Advanced Warrior Join Date: 2007 Location: , , Canada.
Posts: 563
Thanks: 2
Thanked 101 Times in 88 Posts
|
this was asked already http://www.warriorforum.com/programm...or-script.html |
| |
| | #4 |
| Warrior Member Join Date: 2012
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
|
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. |
|
WebIntel provides its services to develop a unique web sites and perth web design globally.
| |
| |
| | #5 |
| Advanced Warrior War Room Member Join Date: 2011
Posts: 587
Thanks: 107
Thanked 93 Times in 51 Posts
|
Thanks guys, figured it out.
|
| |
| | #6 |
| Warrior Member Join Date: 2012
Posts: 7
Thanks: 0
Thanked 1 Time in 1 Post
|
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 |
| |
| | #7 |
| ResponsiveDesignTest.Net Registered Member Join Date: 2011 Location: Rostock, Germany
Posts: 829
Thanks: 106
Thanked 225 Times in 194 Posts
|
jquery innerfade, just an example
|
|
HTML/CSS/jQuery/ZURB Foundation/Twitter Bootstrap/Wordpress/Frontend Performance Optimizing --- Need HTML/CSS help? Skype: microcosmic - Test Your Responsive Design - InternetCookies.eu | |
| |
|
| Bookmarks |
| Tags |
| code, html, rotation, script |
| |