Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-27-2011, 05:29 PM   PM User | #1
neutronical
New to the CF scene

 
Join Date: May 2011
Posts: 8
Thanks: 5
Thanked 0 Times in 0 Posts
neutronical is an unknown quantity at this point
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
neutronical is offline   Reply With Quote
Old 06-28-2011, 08:51 AM   PM User | #2
BulletTimeBill
Regular Coder

 
Join Date: May 2010
Location: Bathurst, Australia
Posts: 180
Thanks: 1
Thanked 22 Times in 22 Posts
BulletTimeBill is an unknown quantity at this point
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.
BulletTimeBill is offline   Reply With Quote
Users who have thanked BulletTimeBill for this post:
neutronical (06-29-2011)
Old 06-29-2011, 01:28 AM   PM User | #3
neutronical
New to the CF scene

 
Join Date: May 2011
Posts: 8
Thanks: 5
Thanked 0 Times in 0 Posts
neutronical is an unknown quantity at this point
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
neutronical is offline   Reply With Quote
Old 06-29-2011, 11:28 AM   PM User | #4
BulletTimeBill
Regular Coder

 
Join Date: May 2010
Location: Bathurst, Australia
Posts: 180
Thanks: 1
Thanked 22 Times in 22 Posts
BulletTimeBill is an unknown quantity at this point
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.
BulletTimeBill is offline   Reply With Quote
Reply

Bookmarks

Tags
javascript, problem, scrollbars, tooltips

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:06 AM.


Advertisement
Log in to turn off these ads.