SitePoint Sponsor

User Tag List

Results 1 to 11 of 11
  1. #1
    SitePoint Zealot johno's Avatar
    Join Date
    Sep 2003
    Location
    Bratislava, Slovakia
    Posts
    184
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    bubblehelp.js: Bubble help onmouseover

    Hello everybody,

    I would like to know your opinions/advice about this script.

    http://johno.jsmf.net/knowhow/bubble_help/

    I would be pleased by any bugreports. (Try this on Mac, please i dont have one at home)

    PS. The problem with preloading images is not a bug. I know about it, but this script is not about preloading images.
    Last edited by johno; Dec 2, 2004 at 09:54.

  2. #2
    American't awestmoreland's Avatar
    Join Date
    Sep 2002
    Location
    Grand Rapids, MI
    Posts
    1,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice. I like it.
    Not got a Mac either though, sorry.
    From the English nation to a US location.

  3. #3
    SitePoint Wizard silver trophy
    Join Date
    May 2003
    Posts
    1,843
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up

    That is nice. Have you seen overlib?

    A question: what is this syntax?
    Code:
    init : function() {....
    Obviously a form of function declaration (and obviously it works ). Don't believe I've seen it before.

    I'll be near a PowerBook later, & try and remember to test it. Thanks!
    ::: certified wild guess :::

  4. #4
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Location
    Alabama, USA
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It is a property/method initialization for an object literal. Quoted from the section on Using Object Initializers:
    Using Object Initializers

    In addition to creating objects using a constructor function, you can create objects using an object initializer. Using object initializers is sometimes referred to as creating objects with literal notation. "Object initializer" is consistent with the terminology used by C++.

    The syntax for an object using an object initializer is:

    objectName = {property1:value1, property2:value2,..., propertyN:valueN}

    where objectName is the name of the new object, each property I is an identifier (either a name, a number, or a string literal), and each value I is an expression whose value is assigned to the property I. The objectName and assignment is optional. If you do not need to refer to this object elsewhere, you do not need to assign it to a variable.

    If an object is created with an object initializer in a top-level script, JavaScript interprets the object each time it evaluates the expression containing the object literal. In addition, an initializer used in a function is created each time the function is called.

    The following statement creates an object and assigns it to the variable x if and only if the expression cond is true.

    if (cond) x = {hi:"there"}

    The following example creates myHonda with three properties. Note that the engine property is also an object with its own properties.

    myHonda = {color:"red",wheels:4,engine:{cylinders:4,size:2.2}}

    You can also use object initializers to create arrays. See "Array Literals" on page 28.

    JavaScript 1.1 and earlier. You cannot use object initializers. You can create objects only using their constructor functions or using a function supplied by some other object for that purpose. See Using a Constructor Function.

  5. #5
    SitePoint Wizard silver trophy
    Join Date
    May 2003
    Posts
    1,843
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Mike. Right after I posted I realized it was a series of method declarations continued from the bubbleHelp = { literal above. Seeing it standing alone threw me for a second...thought it was 2.0 .

    Enjoy your weekend!
    ::: certified wild guess :::

  6. #6
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Location
    Alabama, USA
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi adios

    johno, BubbleHelp is very slick!

    Great work!



    oh yeah, I don't have a mac either

  7. #7
    SitePoint Evangelist Mr. Brownstone's Avatar
    Join Date
    May 2002
    Location
    Relative
    Posts
    452
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rock.
    Of course, that's just my opinion. I could be wrong.

  8. #8
    SitePoint Enthusiast Soky's Avatar
    Join Date
    Sep 2003
    Location
    Southern Kentucky (SoKy)
    Posts
    61
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well done!!

    Question Johno: How is your English? I really like your work but the language issue seems to be a barrier.
    Last edited by Soky; Oct 13, 2003 at 11:27.
    David Francis Web Application Developer
    Air Force trained web designer specializing in ASP/SQL
    online applications for business and organizations. Long term
    creation,hosting, marketing & website management partner.

  9. #9
    SitePoint Zealot johno's Avatar
    Join Date
    Sep 2003
    Location
    Bratislava, Slovakia
    Posts
    184
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think my English is good.

    PS. Check your private messages.

  10. #10
    SitePoint Enthusiast Soky's Avatar
    Join Date
    Sep 2003
    Location
    Southern Kentucky (SoKy)
    Posts
    61
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by johno
    I think my English is good.

    PS. Check your private messages.
    Yes sir it is fine... it was the script pages at your site that forced the comment.

    Thanks for the PM... I am happy to have a new Slovakian friend.
    David Francis Web Application Developer
    Air Force trained web designer specializing in ASP/SQL
    online applications for business and organizations. Long term
    creation,hosting, marketing & website management partner.

  11. #11
    SitePoint Zealot johno's Avatar
    Join Date
    Sep 2003
    Location
    Bratislava, Slovakia
    Posts
    184
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Annotations support for PHP5
    TC/OPT™ Group Leader


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
  •