VBScript
Ordering Sub Procedures - 1
Re-arrange the sub procedures so that the nursery rhyme is in the correct order.
(No cheating: you can't just change the msgbox text around!)
For those of you who might not know the nursery rhyme, here it is in the correct order:
- Mary had a little lamb
- Its fleece was white as snow
- And everywhere that Mary went
- The lamb was sure to go
Copy the script for the page, which is given below.
<HTML> <HEAD> <TITLE>Mary had a little lamb</TITLE> <SCRIPT LANGUAGE="vbscript"> <!-- sub window_onload() msgbox "And everywhere that Mary went" 'put in an appropriate comment here bravo() tango() end sub sub bravo() msgbox "Mary had a little lamb" 'put in an appropriate comment here delta() end sub sub delta() msgbox "The lamb was sure to go" 'put in an appropriate comment here end sub sub tango() msgbox "It's fleece was white as snow" 'put in an appropriate comment here end sub --> </SCRIPT> </HEAD> <BODY> </BODY> </HTML>
- Beginners Tips
- Constants
- Scope of Variables
- Are comment tags needed?
- Combining VBScript & JavaScript
- Sub Procedure Order Ex1
- Variants and Subtypes
- Sub Procedure Order Ex2
- Seven Deadly Sins
- Timer Function Example
- Touch-type Speedometer
- Regular Expressions
- Browser and User Generated Events in Internet Explorer 4/5
Interested in programming, but don't know where to start? Beginning Programming will get you going! >> Go!
|
|
Out Now!