BrainBlog

BrainBlog is the Brains4All weblog. Established 2004 in The Netherlands. Brains have been working in IT since 1983, working on the internet since 1993. They have nothing particular to say, but their thoughts need a place to stay anyway. This is that place.

Sciptaculous Effect display: hidden reminder

February 27, 2006 |
marko

In scriptaculous, when you use the appear and fade or other effects, remember to set the display style property inside the HTML tag and *NOT* in the stylesheet.

Not like this:
<style>
#thanks {
    background: url('images/thanks.gif') no-repeat;
    display: hidden;
}
</style>
<div id='thanks'></div>
But like this:
<style>
#thanks {
    background: url('images/thanks.gif') no-repeat;
}
</style>
<div id='thanks' style='display: none;'></div>

  




Comments





Post a comment





Remember Me?




Recent entries


Archives

Categories


Sign up today


BlogRoll