If you want to make an entire DIV disappear or appear, just make sure
that you have designed your peekaboo element as a single nested DIV,
rather than a stack of unrelated objects.
Then, it’s really really easy with Scriptaculous. I don’t have an
Action to make this particular effect simpler for you yet, but here’s
how you could do it right now:
-
Apply the Protaculous action to the page.
-
In the Actions palette, select Scriptaculous in the Use Library
picker. If you want to be mindful of download time, then open the
“Use individual files” segment and tick ‘effects’.
-
Click on the item you want to have fade in or out, and note its
name (change it if you like).
-
Click on the pasteboard to deselect everything, and then click on
the Function Body button in the Actions palette. Enter the following:
window.setTimeout(“Effect.Fade(‘TheName’)”,3000);
Two things to change in the above, naturally. TheName should be the
name of the object you identified in step 3. 3000 should be the
number of milliseconds you want to delay the fade.
Want to make something fade in? Two additional steps are needed.
After step 3 above, while the item is still selected, choose Item >
Extended from the main menu. In the DIV Style pane of that dialog,
enter the following pair:
display
none
This will cause the div to be initially invisible.
Then, in step 4, change the word Fade to Appear. That’s all it takes.
Walter
On Jan 24, 2008, at 5:54 AM, dwn wrote:
As in I want at the very least “fade in” contents of a page when
loaded (I really don’t want to resort to build a flash web site)
I see you can use javascript to fade a single image - but a whole
div contents or page is that possible?
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options