Hmm... thx Brandon, my friend also told me something about the
currentStyle...
now its ok.. =)

2007/1/23, Brandon Aaron <[EMAIL PROTECTED]>:

Inline styles are generally bad practice. show and hide animations
remove inline styles once they are done.

If you know that you need to animate to a specific width, other than
the width defined by the stylesheet, then just use the animate method.
The animate method leaves inline styles in place.

.animate({ width: 300, height: 50, opacity:  100 });
.animate({ width: 0, height: 0, opacity: 0 });

--
Brandon Aaron

On 1/23/07, Rafael Santos <[EMAIL PROTECTED]> wrote:
> Is it a bug? I Think jQuery is not getting the embedded width:
>
> <style>
> #ahhh{ background-color:#FA0; display:none; }
> </style>
> <script type="text/javascript" src="js/jquery-1.1.1.pack.js "></script>
>
> <body>
> <script type="text/javascript">
> $(function(){
>     $('#ahhh').show(1500);
> });
> </script>
>
> <div id="ahhh" style="width:300px; ">
> Why do i become so large?
> </div>
>
> --
> Rafael Santos Sà :: webdeveloper
> www.rafael-santos.com
> _______________________________________________
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>
>

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/




--
Rafael Santos Sà :: webdeveloper
www.rafael-santos.com
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to