|
|
Basic concept :
When you script something, you need to know syntax of the language
you're using, what you (can) get and what you want. Well, first,
maybe "dynamic" word appears a bit hazy for you if you're
reading this. I can define it by writing that it allows you to repeat
lot of same things from a thing sheet. For example, for a web catalog,
you have 300 products, you won't make 300 html pages ! You'll use
dynamic pages (ASP, Cold Fusion, PHP, etc) and make only one page
with all fields you'll find for each product, depending of the user's
choice, that will display the right records (texts, pictures, etc)
from a database. Here, it's quite the same, we'll make only one
button (cauz all our buttons will have the same shape) and only
labels will change. So first, we'll learn basic constitution of
"dynamic button", dupplicate it and set to it a right
place. Then we'll see other part : the movement concept. In fact
we want that when we roll over a button, all next buttons will scrolling
down and let appear corresponding subrubs. And all "opened"
rub not selected will "close".
Let's go now.
|