The JavaScript Goodies Book
Text-Based Scripts
These scripts all have one thing in common: They produce text on the HTML document.
- Random Up To 50
This script produces a random number between 1 and 50, but you can set it to any upper limit you'd like.
- Netscape Low Version
If your user is running Navigator version 2.0 or less, this script pops up text that offers a link to upgrade.
- Status Scroll Count
The length of time you've been in a page just scrolls right by.
- Add From Prompt
This script calls for information through a prompt then enables you to post it in a text box through the use of a button.
- Post Next Holiday
This script does what it says.
- Hello in Bar
This throws up a prompt for the user's name then offers a greeting in the status bar.
- New Array Text Pages
This is a series of five different scripts that create "...of the Day" events, wherein something happens each day or at a specific time of day. This script is different in that it uses a new type of array programming to get the effect in a simpler fashion.
- Fun Text
It's like a Mad Lib game that plays for you.
- Meta Tags
This script uses a prompt command to gather information in order to create your page's meta tags.
- Headline Linker Script
This script is a little hard to explain. The idea is that you can get three headlines in a text box. Each is its own location, too. You click the box to make it work. Go see it -- it'll be easier than me explaining it.
- Text Fader 1.3
This script is sooooo cool.
- Transfer Data
Use this script to transfer data across pages. It's currently set up to transfer data from a form from one page to another.
- Superscript Date
This script posts the date, but also adds either "st" or "th" after the day number.
- Message Plus Date
Two in one. This script is offered in two formats.
- Remind Me
This script sits quietly in your browser until a specific date. Then it pops up telling you the time has come.
- Tip Box
This script pops up a Tool Tip-style box when the mouse passes over text (requires MSIE 4.0; contents in Zip file).
- Make Me A Password
Great script. Need a password? This script generates a random letter and number password at whatever length you require.
- Mad Libber
This is a basic Mad Lib game.
- Full Text Date
Just copy and paste and it's all yours.
- Just the Date
This script posts the month (in text form) and the day.
- Color Gradient Text
This is a great script that "rainbows" your text.
- Highlighter
This script enables an onMouseOver to highlight a link (requires MSIE 4.0).
- Text Fader
This script is great. You'll have to see it to get the full effect.
- You Came In...
This script tells the user something they already knew -- when they came into the page. But it does so in such grand fashion that I had to post it (requires MSIE 4.0).
- The Updater
This script posts the date the page was last updated.
- Pop-Up Tables
As your mouse passes over text, a table pops up to tell more. It's DHTML and has to be seen to be believed (requires MSIE 4.0).
- Flashing Warning
Just what it says (requires NN 4.0).
- Proclaim It!
This script posts two large lines of text to tell the world... something (requires NN 4.0).
- Personal Title Bar
This script prompts the user for a name then uses that to post the title command for the page.
- Date and Time in Status Bar
This script posts the date and time in the status bar.
- Quote in New Window
Just what it says.
- Follow the Moving Mouse
This script creates a block of color and text that follows your mouse around the screen. Think of it as a pet (requires NN 4.0).
- Hello in the Status Bar
This script asks for the user's name and then posts it in the status bar.
- Layer Click
Click and the text follows you. Great effect (requires NN 4.0).
- Place the Message
This is a great script for developers to have around. It enables you to put in coordinates and then see where they fall on the page (requires NN 4.0).
- Moving Block of Text
This script will give you a colored block of text that flies around your screen. And who wouldn't want that? (requires NN 4.0).
- Count the Seconds
This script counts the seconds a user has been in your page. It also posts alerts at certain times.
- Random Link Script
This script posts a random link to follow.
- Age Update Script
This script posts an age and automatically updates it when the birthday passes.
- Status Bar Clock
Tell them what time it is in the status bar.
- Link Change
Run your mouse over the link and it changes (requires MSIE 4.0).
- Get Back to Frames
This script displays a message that the page the viewer is looking at should be in a frame setting and will not run by itself.
- Bigger Text
Make text jump out when the mouse moves over (requires MSIE 4.0).
- Flipping Burst
The text will become much more brilliant when your mouse moves over (requires MSIE 4.0).
- Multicolored Text
Every letter is a different color. It's very Saturday morning.
- Copyright and Last Updated
This is a good, quick script that you can paste onto your documents to give a bit of good information.
- Fade Out
This script fades text in and out. You have to see this (requires MSIE 4.0).
- Many, Many Quotes
160 sayings to get you started on your day.
- Random Fact
Useless knowledge finally has a home.
- Everyday Script
You get a different color scheme and message every day of the week.
- All About
This script tells the user all about his or her machine and browser.
- Goodbye Window
This script posts a goodbye window with links when your user leaves the page.
- Sesame Street
This script will make your page Brought To You By a random letter and a random number.
- Which President?
You need this script for high school. Pick a number between 1 and 42 and this script tells you which president it was.
- World Time
This script displays the current time for multiple locations around the world.
- Time Stamp
This time stamp is an update of earlier versions. Here you'll get a 12 at midnight instead of a zero.
- How Many Days Until Christmas?
This script will tell you. Keep in mind that this page is static and you might have to change the year. If the result is more than 365 days...you'll have to change the year.
- Browser and More
This script posts your browser and operating system and tells you if there is an update available. If there is, you get a link to go get it.
- Tips For the Day
This is a script that offers your viewers some tips. You choose the topic.
- Lots of Stuff Script
Take a look at this one. It posts all kind of stuff about your visit.
- Pass the Text
This script is really silly, but you can't seem to stop doing it.
- Date/Time in Spanish
This script posts the correct time and date in Spanish.
- Rainbow Text
Enter your text. This script makes it a rainbow color.
- James Bond
Use this script, answer the questions, and you'll get the famous James Bond line.
- Update Message
This script displays the last time the page was updated, then a message to the viewer.
- Day-to-Day Message
This script displays a different message depending on the day of the week.
- Java or Not?
This script displays whether the browser is JavaScript-enabled or not.
- Microsoft Explorer 4.0 Link Color
This script will change the link color onMouseOver (requires MSIE 4.0).
- Post the Date in Numbers
That's what it does.
- Coming From Display
This script displays the page that referred the user to your page.
- Who Came and When?
This script prompts the viewer then tells her how many times she has been to the page before.
- Text in Status Bar Delay
This script enables the text in the status bar to stay for a short time -- about a second -- then go away.
- Lose Text in Status Bar
This script makes status bar text go away quickly.
- Text in Status Bar
This script puts text in the status bar whether the mouse goes over a link or not. Use it to announce your home page.
- Displays Date and Time of Arrival
Enough said.
- Displays Family
This script is good for small children. It enables them to answer questions about their family and then posts their answers equaling a happy family.
- A Mad Lib Game
Try playing!
- Stops onMouseOver Text from Hanging Around
Use this script to make it so that the onMouseOver text you use doesn't stay on the status bar after the user has moved on.
- Last Modification
This script posts when the page was last modified.
- Date Page
This is a great script that creates a link to a page depending on the date. You could write pages forever... but don't.
- Blinking Greetings
This script posts a greeting depending on the time of day. Plus it blinks! Woo hoo!
- Display a Message Depending on the Time
That says it all. You can change the messages you will display.
- Displays the Browser Version
Post this script and the reader will see what type of browser (Netscape or Explorer) he is using.
- Displays More Browser Info
This script does the same as above, but also displays browser type, version, and a few other items.
- Get Name, Post Name
This script asks for the viewer's name then posts it anywhere you want throughout the document.
- Get Name, Post Name, 2
This is a different look than the one above.
- Date Stamp
This script posts the date on the page showing the last time the page was modified.
- New Message at Bottom
This script displays a new message along the bottom of the browser.
- Cleans Up URL
This script breaks the URL reading along the bottom of the page into Domain: and Page:.
- Message Depending on Date
You set the messages and, depending on the date, one pops up.
- Animated Text on Status Bar
What more can I say?
- Mouse Produces Words
You can set the words that appear when the mouse moves over a link on your page.
- First/Last Name Post
This script asks for the viewer's first and last name and then posts them anywhere in the document.
- Do You Have JavaScript Capabilities?
This script will post a message to the page whether the browser has JavaScript capabilities or not.
- Random Sentence Generator
More like a random story generator. This script creates a new story every time someone logs in to the page.
- New Greeting
Depending on time of day, this produces a new greeting.
[Back to the JavaScript Goodies Page]