Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Sep 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    little window appearing onmouseover

    I need a window to appear when I mouseover some text.
    It's hard to explain what I want so I give an example I founded:
    http://www.ultimate-guitar.com/tabs/...erious_crd.htm

    If you mouseover the blue text a window appears, I also want something like that, but the problem is I know nothing about javascript:s
    And a friend told me it was the easiest way to do this with javascript.

    The text that needs to appear in the window is saved in a (php) variable called '$text'.

    If there is someone who can help me making this script, or knows a website where I can find this script, would make me very happy

    Thanx in forward,
    Bram

    p.s. I hope everyone understands my English, because it isn't my first languae..:s

  • #2
    Regular Coder mjlorbet's Avatar
    Join Date
    Jan 2008
    Location
    Milwaukee, WI
    Posts
    724
    Thanks
    8
    Thanked 96 Times in 95 Posts
    http://msdn2.microsoft.com/en-us/library/ms534683.aspx

    use the title attribute on the element your text is wrapped in, if it isn't wrapped in an element presently, either wrap it within <label></label> or <a></a>
    -Mike
    "Want me to precludify him, like some kind of dispatcherator?... Can do!" -Bender

  • #3
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Sounds like you want something a little more customizable at which point you would need to use a js tooltip. You could use a CSS tooltip as well.

    CSS Tooltips:
    http://www2.psacake.com:81/web/jl.asp
    http://trentrichardson.com/examples/csstooltips/
    http://www.fijiwebdesign.com/fiji-we...-elements.html
    http://www.communitymx.com/content/a...ge=4&cid=4E2C0

    JS Tooltips:
    http://dynamicdrive.com/dynamicindex5/index.html
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #4
    New to the CF scene
    Join Date
    Sep 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanx it works perfect


  •  

    Posting Permissions

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