Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-07-2008, 06:28 AM   PM User | #1
194673
Regular Coder

 
Join Date: Dec 2006
Posts: 166
Thanks: 9
Thanked 4 Times in 4 Posts
194673 is an unknown quantity at this point
Scriptaculous and In-line Styling

OK, well I've just started using JS frameworks, and I really like what Scriptaculous can do. The only gripe I have with it is some of the effects require in-line styling (something which I would like to avoid).

For example:
Code:
HTML:
<div id="tobeblinded"></div>

CSS:
#tobeblinded { display: block; }

JS:
Effect.BlindDown('tobeblinded');

the Effect.BlindDown function requires the element to be of display: block; in your CSS definition file. However, if I want an element to be hidden when the page is loaded, the function won't work properly unless you do something like this:
<div id="tobeblinded" style="display: hidden;"></div>
It may just be me, but I dislike seeing messy divs like that. Is there any alternative?

What I originally had was the div hidden in the CSS definition, but when I tried using the blinddown effect, it was non-functional.
194673 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:50 PM.


Advertisement
Log in to turn off these ads.