HTML Goodies: Script Tip: Week 20
Desktop-as-a-Service Designed for Any Cloud ? Nutanix Frame
Once again, the looks like this (although I've put things on different lines to keep this page format correct, remember that everything must be on one line):
var color = prompt
("What color would you like the page background to be","")
var txtcolor = prompt
("What color would you like the text to be?","")
("<BODY BGCOLOR=" +color+ " TEXT=" +txtcolor+ ">")
defaultStatus="Here's your " +color+ " background and "
+txtcolor+ " text"
The text that showed up in the status bar was placed there by this line:
defaultStatus="Here's your " +color+ " background and " +txtcolor+ " text"
That little number can be plopped basically anywhere and whatever follows it shows up in the status bar. Super cool, huh?
You can see that I'm using a few returns, the things inside of the plus signs, to get the prompt variables in the mix. It just looks good to personalize the text.
Use it in good health!
Next Week: New Script! A Fancy Guestbook
Do YOU have a Script Tip you'd like to share? How about suggesting a Script Tip to write about? I'd love to hear it. Write me at: email@example.com.
HTML Goodies 30-Step Primer Series
and take the knowledge home with you in
on your Web pages here!
IT Solutions Builder TOP IT RESOURCES TO MOVE YOUR BUSINESS FORWARD
Which topic are you interested in?
What is your company size?
What is your job title?
What is your job function?
Searching our resource database to find your matches...