Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Website Design (https://www.warriorforum.com/website-design/)
-   -   HTML Code Rotation Script (https://www.warriorforum.com/website-design/600817-html-code-rotation-script.html)

RayW 16th May 2012 12:34 PM

HTML Code Rotation Script
 
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.

randomsoftwaregroup 29th May 2012 03:53 PM

Re: HTML Code 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.

crams 29th May 2012 04:50 PM

Re: HTML Code Rotation Script
 
this was asked already
http://www.warriorforum.com/programm...or-script.html

peter786110 31st May 2012 05:41 AM

Re: HTML Code Rotation Script
 
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.

RayW 31st May 2012 07:13 AM

Re: HTML Code Rotation Script
 
Thanks guys, figured it out.

vipanil 3rd February 2013 08:02 AM

Re: HTML Code Rotation Script
 
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

Michael71 4th February 2013 09:40 AM

Re: HTML Code Rotation Script
 
jquery innerfade, just an example

Istvan Horvath 8th February 2013 07:34 PM

Re: HTML Code Rotation Script
 
If you post anything in this thread, you risk your post getting deleted. Here is why...


All times are GMT -6. The time now is 08:57 PM.