SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict goma's Avatar
    Join Date
    Jan 2002
    Location
    smelly armpit of Asia
    Posts
    305
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Chromeless window 3.5 and tool tips

    2 questions actually...

    1)I'm trying to use the chromeless window 3.5 script to launch images on clicking some thumbnails. But I notice that upon launching the pop-up window, the browser goes back up to the top of the page. Is there any way to keep this from happening?

    2) I'm also trying to get a dhtml tool tip script to work on the thumbnails. Basically I need to have the tool tip pop up on mouseover with a description of the thumbnail, somewhat like an image alt text but nicer. I've tried to make a couple of scripts run with the chromeless window but I'm getting errors. How do I add a onmouseover event to an existing script like the chromeless? And does anyone have a link to a nice, light (not a lot of code coz my pages are starting to get a bit portly) dhtml / js tool tips script?
    http://www.soapbox101.com

  2. #2
    SitePoint Columnist Skunk's Avatar
    Join Date
    Jan 2001
    Location
    Lawrence, Kansas
    Posts
    2,066
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    For question 1, it sounds like you're using href="#" as part of your link without a return false; command at the edn of the onClick method. Change your links to look like this:
    Code:
    <a href="#" onClick="chromelesswindowfunction(); return false;">
    Even better, change them to look like this:
    Code:
    <a href="noJS.html" onClick="chromelesswindowfunction(); return false;">
    And have noJS.html a page that explains that they need to have javascript enabled for that link to work (browsers with JS enabled will not jump to that page as the return false command will prevent them from following it).

  3. #3
    SitePoint Addict goma's Avatar
    Join Date
    Jan 2002
    Location
    smelly armpit of Asia
    Posts
    305
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks!!!!!
    http://www.soapbox101.com

  4. #4
    Net Senior Citizen tommatthews's Avatar
    Join Date
    Apr 2001
    Location
    Sydney Australia
    Posts
    869
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    www.dynamicdrive.com have some nice tool tip scripts


    affordable website design

    :: sydney australia ::


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
  •