H I O X INDIA
FREE Javascript
 HOME  ||  Scripts  ||  Purchase  ||  Tutorials  ||  Images  ||  Tools  ||  Directories 
  :-)  Send Page   :-)   Feedback   :-)   Register   :-)   Links   :-)   Support   :-)   Bookmarks :-)  
Español  Français  中文  Deutsch 
 Forums   Hosting   Internet Stats   Easy Calculation   FUN Games 

Java Script Source
List All
Date & Time
Calendar
Stop Watch script
Slide Show
Ad Display
Animated Image Effects
Image Effect
Mouse Effects
Color Picker Tool
Dynamic Color
Random Generator
Select All
Form Validation
Formatting Forms
Textbox Counter
Dynamic Form select
Bookmark
Window / User Info
Pagination
Security / Authenticate
Status Bar
Title Bar
Cursor Position
Country List
Calculators
Delete Repeated Values
Alphanumeric
Free Games




Random Quote Generator Script


About
  This javascript quote generator is used to view the message randomly. This java script helps you to generate random quote or random message.


Features
 a) You can randomly view the message using this random quote generator.
 b) Javascript quote generator can also be used as random number
    generator if we give numbers instead of text in array.
 c) You can generate random quotes using this random quote generator.
 d) Just copy the code and use it.


Preview

Random Quote Generator
Click Next to Display Random message



Code
 CSS Code
<style>
  .row
   { 
     padding-left:10px;background-color:white;
     font-family: verdana, san-serif;font-size: 13px
   }
</style>

 Javascript Code
< !-- Script by hscripts.com -->
<script language=javascript> var arr= new Array(); arr.push("Javascript is a client-side scripting language"); arr.push("Javascript is different from Java"); arr.push("CSS - Cascading Style Sheet"); arr.push("HTML is a platform independent language"); function rotate() { var num= Math.round(Math.random()*3); add(num); } function add(i) { var chi = document.createTextNode(arr[i]); var tab1 = document.getElementById("add1"); while(tab1.hasChildNodes()) { tab1.removeChild(tab1.firstChild); } tab1.appendChild(chi); } </script>
< !-- Script by hscripts.com -->

 HTML Code
<table align=center style="background-color:#C0C0C0";>
   <tr><td background-color:#C0C0C0 align=center width=300 style="font-family:Times New Roman;"><b>Random Quote Generator</td></tr>
   <tr><td id=add1 class=row width=300 align=center>Click Next to Display Random message</td></tr>
   <tr><td align=center><input type=button value="Next" border=0 onclick="rotate()"></td></tr>
</table>

Release Date - 04-01-2008

Get free version without ©copyright link for just 5



Usage

 a) Copy the codes given in the textarea and use it.
 b) Here (Math.random()*3) is used inorder to get the message from the array of zeroth position to fourth position.
 c) CSS code is used to design the page with some styles as background-color, font-color etc.
 d) Array values are randomly generated using arr.push()method.




License
- This javascript (misspelled as java script)/HTML code is given under GPL License
- i.e. Free use for those who use it as it is.
- Free, if your modification does not remove our copyright information and links.
- Detailed License information can be found here
- You can purchase the script if your requirements does not meet GPL License terms.


privacy policy     license     sitemap
© 2004-2005 HIOX INDIA - hioxindia.com

Others