Old school Easter eggs.
Eaglenet logo
24/7 updates on happenings in africa
»Random Item JavaScript
This is a simple Javascript tutorial on random items. Copy/paste this script and save as .js file to your site, example "random.js". . .

The Script:


Edit this lines and insert your desired content (image, html, quotes, links, banners, partners, featured files, etc.):

quotes[0]='Your first content here.'

quotes[1]='Your second content here.'

quotes[2]='Your third content here.'

You can add random content as many as you want just keep quotes[number] in order.

Note: Make sure to add one content per one line, do not leave empty line between same content use
instead, a single unwanted whitespace can make the whole script invalid.

Implementing The Script:
To display random content script to your site, copy/paste this code in to your page where you want the random content to keep moving. They make mistakes, but they don\'t quit. - Conrad Hilton' quotes[3]='Whether you think you can or whether you think you can\'t, you\'re right! - Henry Ford' quotes[4]='Never use failure as an excuse for not trying again. We may not able to undo the damage or reverse the consequences but we can always make a new start. !' quotes[5]='A great character will always make you more attractive than someone who only has a great face but no substances. Thus, beauty catches the attention but character catches the heart. !' quotes[6]='Apologizing doesn\'t always mean that you\'re wrong & the other is right. !' quotes[7]='The first step towards getting somewhere, is to decide that you are not going to stay where you are. Keep moving foward. !' var whichquote=Math.floor(Math.random()*(quotes.length)) document.write(quotes[whichquote])

Note: If you're using a quotes/text with apostrophe ('), always put a backslash (\) in front of it (e.g. You can\'t and not You can't) or else the whole script will become invalid, backslash will become invisible if displayed in an actual text. . .
appear.



Change site and script url (src) to your own.
Random Logo Sample :

Random Links/Banner Sample :
Random Quotes Sample :


Note: If you're using a quotes/text with apostrophe ('), always put a backslash (\) in front of it (e.g. You can\'t and not You can't) or else the whole script will become invalid, backslash will become invisible if displayed in an actual text. . .