- How the Rotating Images Code Works
- The Coding Plan
- Detecting the Load Event
- Triggering the Function from the Load Event
- Generating Random Numbers
- Creating the Image Path
- DOM Scripting
- Assembling the Image Element
- Adding the Image Element to the Page
- Reviewing the Working Page
I hope that you find this scriptto which you're entirely welcometo be useful and inspiring in your work. Drop me an email message with any comments or ideas for future articles.
You can download a zip file of this example complete with images at http://www.stylinwithcss.com.