home *** CD-ROM | disk | FTP | other *** search
- <ccResource>
- <ccTitle>
- Rotating Drop Down
- </ccTitle>
- <ccCategory>
- Fun Stuff
- </ccCategory>
- <ccDescription>
- This JavaScript will switch the order of a drop down menu automatically.
- </ccDescription>
- <ccInstructions>
-
- </ccInstructions>
- <ccHeadContent>
-
- </ccHeadContent>
- <ccBodyContent>
- <form name=menuform>
- <select size=1 name="msg">
- <option>You can lead a horse to water but cannot make it drink.
- <option>Time flies like an arrow but fruit flies like a banana.
- <option>Call me anything you like but don't call me late for dinner.
- <option>I don't know what WW3 will be like but WW4 will be of sticks and stones.
- </select></form>
- <script language="javascript">
- <!-- Begin
- function CC_rotate() {
- menu = document.menuform.msg;
- chosen = menu.selectedIndex;
- menu.selectedIndex= (chosen == (menu.length-1)) ? 0 : chosen + 1;
- setTimeout("CC_rotate()",5000);
- }
- CC_rotate();
- // End -->
- </script>
- </ccBodyContent>
- <ccElementContent>
-
- <ccElementName></ccElementName>
- <ccElementAction></ccElementAction>
-
- </ccElementContent>
- <ccExtraData>
-
- </ccExtraData>
- </ccResource>