Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: that new yahoo.com personal assistant script...

  1. #1
    Join Date
    Aug 2005
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default that new yahoo.com personal assistant script...

    May be some of you have been using the new yahoo.com homepage

    there is this cool personal assistant that automatically expands a windows when mousing over the tab

    I would like to use this thing on my website.

    As i'm sort of a newbie i was not able to fully understand the stuff of the YUI at developer.yahoo.net

    can anyone make a similar thing over here?

    thank you

  2. #2
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post Sth like this??

    Are you talking about something like this??

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Grow Layer Animation</title>
    <script type="text/javascript">
    function animateHeight(id, size){
    el = document.getElementById(id);
    var h_size1 = el.offsetHeight;
    if (h_size1 < size){
    el.style.height = h_size1 + 2+"px";
    setTimeout("animateHeight('" + id + "','" + size + "')", 1);
    }
    }
    function decreaseHeight(id, size){
    el = document.getElementById(id);
    var h_size1 = el.offsetHeight;
    if (h_size1 > size){
    el.style.height = h_size1 - 2 + "px";
    setTimeout("decreaseHeight('" + id + "','" + size + "')", 1);
    }
    }
    </script>
    <style type="text/css">
    #Layer1 {
    position:absolute;
    width:500px;
    height:0px;
    z-index:1;
    left: 256px;
    top: 80px;
    background-color: #996600;
    }
    </style>
    </head>
    <body>
    <a href="javascript:animateHeight('Layer1','50');">Open</a>
    <a href="javascript:decreaseHeight('Layer1','0');">Close</a>
    <div id="Layer1"></div>
    </body>
    </html>

  3. #3
    Join Date
    Aug 2005
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Oh cool man!! thanks I think your script will be my favorite toy next week

  4. #4
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up U r welcome

    You are very welcome!!

  5. #5
    Join Date
    Aug 2005
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    What I dont understand is that the colored shape is setup in head section of the page

    What I would like is to click on a picture and that it opens up the information about it or the viewing options etc...

    So instead of clicking on the "open" link people would click on the picture thumbnail

  6. #6
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile That is too easy.

    I think that you haven't analysed the code well, you see that animates a layer and if you want people to click on an image and get it's description then you need some visibility tricks and to make the picture itself a hyperlink or use a <span onclick="blah blah"> tag around the picture.
    That's all I can tell you, if you didn't get it still then I may be able to give u an example.
    Code:
    <span onmouseover="javascript:animateHeight('Layer_Name', 500);document.getElementByID(text_id).visibility = 'visibile'" onmouseover="javascript:decreaseHeight('Layer_Name', 0);document.getElementByID(text_id).visibility = 'visibile'"><img src="IMG_NAME"></span>
    <div id="Layer_Name">
    <p id="text_id">Some description ...</p>
    </div>
    Code in the blue can be changed.
    It must work but if it doesn't then I might post the whole code.
    But please try to analyze the code before you take any step.

  7. #7
    Join Date
    Aug 2005
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    well yeh i'm kind of a newbie in this game and that's why i'm trying to learn rom dd's script. I currently use the one over here:
    http://dynamicdrive.com/dynamicindex17/tabcontent.htm

    and i was thinking that the new yahoo hompeage page personal assistant script was more or less similar but added a mouse over effect that automatically open's up the content instead of clicking on the link

    Oh you know....If I dont have the head and the body example in front of my eyes i cant even dream of editing the script

  8. #8
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Specifying fonts in pixels is a bad idea... you should probably use a percentage measurement.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  9. #9
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Then I suggest that first you understand the script and see what the initial code does.

  10. #10
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Twey
    Specifying fonts in pixels is a bad idea... you should probably use a percentage measurement.
    I am sorry but I could not get which "font specification" are you talking about.
    Can you please make this clear to me?? Thank you.

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
  •