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

Thread: Sticky tooltip in a form

  1. #1
    Join Date
    May 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Sticky tooltip in a form

    1) Script Title: Sticky Tooltip script


    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex5/stickytooltip.htm
    3) Describe problem: Is it possible to use this script in a form?

    This does'nt seem to work:
    HTML Code:
    <select multiple="multiple" size="4" class=eerste_keuze name=eerste_keuze id=eerste_keuze>
                 <option value="van Velzen"><a href="#" data-tooltip="sticky1">van Velzen</a></option>
                <option value="Golden Earring"><a href="#" data-tooltip="sticky2">Golden Earring</a></option>
                <option value="Herman Brood"><a href="#" data-tooltip="sticky3">Herman Brood</a></option>
                <option value="Jan Akkerman"><a href="#" data-tooltip="sticky4">Jan Akkerman</a></option>
                 </select>
    When you hover over a name i would like to show a thumbnail of the face of the person.

    Please help?!
    If not how can i best get this done?

    Thx in advance!

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Add the data-tooltip to the option tag:
    Code:
    <option data-tooltip="sticky1">Thailand</option>
    Good luck!
    Jeremy | jfein.net

  3. #3
    Join Date
    May 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thx for your help!!! But it does'nt work...

    I tryed :

    HTML Code:
    <select multiple="multiple" size="4" class=eerste_keuze name=eerste_keuze id=eerste_keuze>
                 <option data-tooltip="sticky1" value="van Velzen"><a href="#" data-tooltip="sticky1">van Velzen</a></option>
                 </select>
    And i tryed:

    HTML Code:
    <select multiple="multiple" size="4" class=eerste_keuze name=eerste_keuze id=eerste_keuze>
                 <option data-tooltip="sticky1" value="van Velzen">van Velzen</option>
                 </select>
    This is driving me crazy

  4. #4
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Make sure you have a div that looks like this:
    Code:
    <div id="mystickytooltip" class="stickytooltip">
    <div style="padding:5px">
    
    <div id="sticky1">
    Sticky Tooptip 1 content here...
    </div>
    
    </div>
    <div class="stickystatus"></div>
    </div>
    Please post a link to the page on your site that contains the problematic script so we can check it out.
    Jeremy | jfein.net

  5. #5
    Join Date
    May 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I dont have it online... sorry.

    But the div's are in place.
    When i use it in the html it works just fine, but in the form it does'nt!

    Weird?!

  6. #6
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Please include your code so that we can take a look at it, we can't do much without it. When you do post your code remember to use [code] tags. That includes [ html ], [ code ], and [ php ].

    What browser are you using?
    Jeremy | jfein.net

  7. #7
    Join Date
    May 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Browser IE 8

  8. #8
    Join Date
    May 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    In FF it works fine i see!!!!

  9. #9
    Join Date
    May 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    But how to get it good in ie then?

  10. #10
    Join Date
    May 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Nile, really thanks a lot, but can you please help me further? why does'nt it work in IE?

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
  •