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
    May 2011
    Posts
    8
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Please help me with Javascript Scrollbar Problem!

    Hi all,

    I am currently building a PHP based site and need some help with a Javascript problem I have. I am relatively new to PHP and have not started on learning any Javascript yet!

    I copied some Javascript that I found on 'http://www.javascriptkit.com/script/script2/htmltooltip.shtml' so that I could use tooltips. It works well and I have edited the CSS a bit to suit my needs. However I still have one problem which I can't solve as I believe it is the Javascript that is causing the problem.

    My page (which has the tooltips and code on) has vertical and horizontal scrollbars that only allow you to move a tiny bit. They are unnecessary and even when I remove almost all the elements of the page, the scrollbars remain. When I remove the line '<script type="text/javascript" src="scripts/jquery-1.2.2.pack.js"></script>' from my code, the scrollbars dissappear, but this line is vital for the tooltips to function.

    This script is available for download at the given URL above (it is in the center of the page called 'jquery-1.2.2.pack.js').

    Please could somebody take a look and see if they can help, any advice appreciated.

    Thanks Very Much
    Dan

  • #2
    Regular Coder
    Join Date
    May 2010
    Location
    Bathurst, Australia
    Posts
    180
    Thanks
    1
    Thanked 22 Times in 22 Posts
    Quickfix is to add overflow:none to your css on the body. But you're probably going to need to post a link if you want a real solution.
    Disclaimer: I'm hungover 70% of the time i'm on here, any information given may not be correct, or even legible.

  • Users who have thanked BulletTimeBill for this post:

    neutronical (06-29-2011)

  • #3
    New to the CF scene
    Join Date
    May 2011
    Posts
    8
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Cool, I tried that and it didn't work, but after a little playing around i sorted the problem by putting overflow:hidden into the html tag of my css.
    Thanks Very Much
    Dan

  • #4
    Regular Coder
    Join Date
    May 2010
    Location
    Bathurst, Australia
    Posts
    180
    Thanks
    1
    Thanked 22 Times in 22 Posts
    Whoops sorry, that's what I meant. Good thing you're on the ball! :P
    Disclaimer: I'm hungover 70% of the time i'm on here, any information given may not be correct, or even legible.


  •  

    Tags for this Thread

    Posting Permissions

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