Drop-down Display Vermont

In the last Script tip, we learned the layer and its properties. Now let's get it to display.

Local Companies

Divergent Technology Group Inc
(802) 263-9564
Springfield, VT
Equinox Direct
(802) 747-3536
23 Court St
Rutland, VT
Merrill Information Systems Inc
(802) 748-5866
53 Railroad St
Saint Johnsbury, VT
Derham & Co
(802) 867-0155
Dorset, VT
Custom Support
(802) 222-4460
227 Cross Rd
Bradford, VT
KGS Software Engineering
(802) 879-7848
Po Box 8286
Essex, VT
C L Davis Consulting Associates
(802) 545-2025
6785 Weybridge Rd
Weybridge, VT
Rosemond Computing
(802) 985-8870
270 Bacon Dr
Shelburne, VT
Dynamic Business Solutions
(802) 383-1600
1035 Hinesburg Rd
South Burlington, VT
Bitwise
(802) 372-4340
168 Bridge Rd
North Hero, VT

provided by: 
Originally published at Internet.com


Wrapping it all up...

OK, we've got the basics. We know about the layer, we understand the loops, now let's put it all together in a function. Yes, I know there are two functions, but look again. They are exactly the same function except for one keystroke. For use with Netscape Navigator.

The Script's Effects

-----------------------------------

Here's the code

We know that the entire layer is on the page; we've just made a point of hiding part of it. The function showmenu() reveals the rest of the layer, but rather than just popping it up, it produces a scroll. It's a nice effect that requires the use of two "for" loops. Since "for" loops are new to the script tips, let's look at how they work. function showmenu() { startx = document.layers["click"].clip.bottom for (j=0;j<70;j++) { document.layers["click"].clip.bottom = startx+j for (x=0;x<120;x++) { void(0) }}}

Rather than simply starting with line one and bulling forward, allow me to give you the overall big picture. Two things are happening in this function. A portion of the layer is being revealed. Then a span of time is allowed to pass, then another piece is revealed, then a span of time is allowed to pass, etc., etc...

Read article at Internet.com site

Featured Local Company

KGS Software Engineering

8028797848
Po Box 8286
Essex, VT
http://www.kgsse.com


Topics: 
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML