Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: Floating text box

  1. #1
    Join Date
    Sep 2008
    Location
    Bristol - UK
    Posts
    842
    Thanks
    32
    Thanked 132 Times in 131 Posts

    Default Floating text box

    Hey there, so I have this site, and I managed to get it to have a floating text box come up when you rollover image maps. Because I have a map of europe on the site, you can see what i mean here : http://www.bombthehills.com/ridingspots-europe.html and it all worked great but since I've centered the site the floating box is going a long way to the right of the mouse. Also getting weird lines of some of the images :S But offline they look fine.

    Anyone know how to correct this?

    Thanks,

    Jack.
    Last edited by Schmoopy; 10-25-2008 at 10:58 AM. Reason: New problem

  2. #2
    Join Date
    Sep 2008
    Location
    Bristol - UK
    Posts
    842
    Thanks
    32
    Thanked 132 Times in 131 Posts

    Default

    Please, anyone?
    Is it to do with the javascript, html or what?
    Any help is much appreciated,

    Jack.

  3. #3
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there Jack,

    try adding the highlighted lines to this function...
    Code:
    
    function ShowContent(d) {
    if(d.length < 1) { return; }
    var dd = document.getElementById(d);
    AssignPosition(dd);
    dd.style.display = "block";
    dd.style.marginTop="-28px':
    dd.style.marginLeft="-80px':
    }
    
    ...and the adjust the values to suit your taste.

    coothead

  4. #4
    Join Date
    Sep 2008
    Location
    Bristol - UK
    Posts
    842
    Thanks
    32
    Thanked 132 Times in 131 Posts

    Default

    Ah sweet, worked a treat,

    Thanks a lot

  5. #5
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    No problem, you're very welcome.

  6. #6
    Join Date
    Sep 2008
    Location
    Bristol - UK
    Posts
    842
    Thanks
    32
    Thanked 132 Times in 131 Posts

    Default Spoke too soon

    Ok, think I spoke too soon. It looks like the map works on my PC, where the resolution is 1440 x 900 but for my brother's PC and others we've tested it on the label flickers under the mouse, and doesn't go along side it.
    Do you think this is to do with the resolution or what, try it out on your PC and see if does the same thing,

    www.bombthehills.com/ridingspots-europe.html

    Hope you can help me with this,

    Thanks,

    Jack.

  7. #7
    Join Date
    Jan 2006
    Location
    Ft. Smith, AR
    Posts
    795
    Thanks
    57
    Thanked 129 Times in 116 Posts

    Default

    I get the same flickering... the label seems to follow the cursor though. Actually, the label is directly beneath the cursor.

    (my resolution is 1280 x 800)
    --------------------------------------------------
    Reviews, Interviews, Tutorials, and STUFF
    --------------------------------------------------
    Home of the SexyBookmarks WordPress plugin

  8. #8
    Join Date
    Sep 2008
    Location
    Bristol - UK
    Posts
    842
    Thanks
    32
    Thanked 132 Times in 131 Posts

    Default

    Ok, thanks for that, but do you know why? Since it is positioned on my screen, and in the code it should be to the right of the cursor =/

    Thanks,

    Jack

  9. #9
    Join Date
    Jan 2006
    Location
    Ft. Smith, AR
    Posts
    795
    Thanks
    57
    Thanked 129 Times in 116 Posts

    Default

    I really don't have a clue to be honest man, sorry. I've never worked with image maps.
    --------------------------------------------------
    Reviews, Interviews, Tutorials, and STUFF
    --------------------------------------------------
    Home of the SexyBookmarks WordPress plugin

  10. #10
    Join Date
    Sep 2008
    Location
    Bristol - UK
    Posts
    842
    Thanks
    32
    Thanked 132 Times in 131 Posts

    Default

    Ok, no worries, anyone who does have experience with this sort of thing got any clue as to what's going wrong here?

    Thanks,

    Jack.

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
  •