menu message




JavaScript Source Code 3000: Messages: Menu Message

































Menu Message








This script does a great job in presenting lots of information to your visitors without filling up your whole page. Each listing in the Pulldown Menu shows a different message in the text box! Give it a try!







The Menu Message
Seen this before?
Possible uses?
Shares Information
Saves space
Get the code!










JavaScript Source Code 3000: Messages: Menu Message
Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as NotePad or SimpleText) and save (Control-s or Apple-s). The script is yours!




    





<!-- TWO STEPS TO INSTALL MENU MESSAGE:

1. Add the specified code into the HEAD of your HTML document
2. Put the last code into the BODY of your HTML document -->

<!-- STEP ONE: Put this code into the BODY of your HTML document -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- Original: Stephanie M. Clarkson (thespian@sleepingcat.com) -->
<!-- Web Site: http://www.sleepingcat.com -->

<! >
<! >

<!-- Begin
var messages = new Array(6);
messages[0] = "";
messages[1] = "Have you ever seen anything like this before?";
messages[2] = "Can you imagine how you could use it on your site?";
messages[3] = "It's great for sharing lots of information.";
messages[4] = "And doesn't take up much space! ";
messages[5] = "So, get the code and put it on your site!";
function messageReveal() {
var messageindex = document.messageForm.messagePick.selectedIndex
document.messageForm.messageField.value = messages[messageindex];
}
// End -->
</SCRIPT>
</HEAD>

<!-- STEP TWO: Put this code into the BODY of your HTML document -->

<BODY>

<CENTER>
<form name="messageForm">
<select name="messagePick" OnChange="messageReveal()">
<option value="0">The Menu Message
<option>Seen this before?
<option>Possible uses?
<option>Shares Information
<option>Saves space
<option>Get the code!
</select>
<br><p>
<textarea name="messageField" rows=6 cols=50 wrap=virtual></textarea>
</form>
</CENTER>



<!-- Script Size: 1.54 KB -->











Wyszukiwarka

Podobne podstrony:
pu srvc menu nl
menu cwiczenia14
menu
Windows Messages
menu
menu
l menu
menu
menu (67)
Menu 3
181 menu (6)
message5 (2)
184 menu (2)

więcej podobnych podstron