Results 1 to 6 of 6

Thread: Div onload

  1. #1
    Join Date
    Apr 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Div onload

    Hello,
    I need help using scriptaculous.
    I have a div which looks like this:
    Code:
    <div class="text" id="about" onclick="Effect.Appear(this)">
    I was wondering how I could make it so that on body load (ie
    Code:
    <body onload="">
    ) I could make the div fade.
    Thanks

  2. #2
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    what do you mean fade? are you talking about the background color? or the visibility? or something else?

  3. #3
    Join Date
    Apr 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Sorry, fade is a Scriptaculous effect. I got this but it doesn't work:
    Code:
    <script type="text/javascript">
    Event.observe('window', 'load', function() {
         Effect.Appear('about');
    
    }); 
    </script>
    <body onload="new Effect.Appear('about',{});">

  4. #4
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    yes i understand that its a fade... but im asking what it is fading...
    you can fade the background to different colors
    you can fade the visibility either from nothing to visible or visaversa
    you can fade the color of the text...

    so im asking what you are trying to fade

  5. #5
    Join Date
    Apr 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I am fading a DIV from 0 opactity to 100% opacity.

  6. #6
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •