XtGem Forum catalog
Welcome to SamzyNet
SamzyNet Logo
time07:34 am16/07/2018
HOME | MUSICS | LYRICS | LATEST GISTS | FUNNY POSTS | MUSIC GISTS | SPORTS | STORIES

FORUM | GUESTBOOK | GAMES | APPS | MENU

SamzyNet On Facebook SamzyNet On Twitter SamzyNet On Google  SamzyNet Rss Feed

Looking For Something? Search below
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 <br/> 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 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. . .
Looking For Something? Search below
More Pages
Wapmaster
File Handlers
Online Dictionary
Free Themes
Online Services
Translate

1 Online Guest(s) , Today: 1 views, Total: 76 views
Last modified: 18-01-2018 12:43 pm
Copyright © 2017 - 2018 SamzyNet
SamzyNet On Facebook SamzyNet On Twitter SamzyNet On Google + SamzyNet Rss Feed
Home | About Us | Contact Us | Promote | Advertise | Blog | Privacy Policy | F.A.Q
Powered By:  SamzyNet

 top