|
Webmaster Tips, Tricks & Utilities JavaScripts & CSS Styling
More CSS Styling Tricks Add a Random Quote to your Webpage Here is a simple Javascript code snippet that you can add to your webpage that will produce a random quote every time the page loads. You can add the quotes that you would like to have displayed to the new array area and the script will call as needed.
This part of the script goes between the <head>and </head>tags of your webpage.
This line of code replaces your <body>tag on your webpage.
<BODY onLoad="randQuote()">
Place this part of the script on your page where you would like the quotes to appear. Feel free to modify this to suit your website.
example: |
| |