Начало
Сообщения
Сообщение меню
Каждая распечатка в Меню Со спуском показывает различное сообщение в текстовом окне
The Menu Message
Seen this before?
Possible uses?
Shares Information
Saves space
Get the code!
JavaScript Messages: Сообщение меню
<!-- 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"> <! > <! > <!-- 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 -->