/    Sign up×
Community /Pin to ProfileBookmark

document.body.scrollTop works on localhost but not on server

Greetings,
I am having a problem with the scrollTop function. Apparently scroll Top works fine on localhost but not on the server where it always reads 0. The purpose of using this is to position a div next to the mouse cursor to highlight some information. event.clientX and event.clientY captures the mouse position. The script is imported from another remote host. Apparently that appears to be the problem. Is there something Im wrongly assuming about document.body.scroll top when importing js from another server?
For further info, go to cosm.webprofile.gr and click on GO under ONLINE CONSULATION. It is surrounded by a box, when GO is clicked, a man (or womans) face appears and the when the mouse is moved over the image, a div box appears next to the mouse cursor. In firefox it works fine, but in Internet Explorer it does not.

Thanks in advance for your help.

Server is linux, browser is IE 7.

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@CyberconianauthorDec 11.2008 — Thanks ever so much voidvector, you saved the whole day! it was my wrong assumption on document.body.scrollTop, and I want to personally thank you for your wonderful assistance.

Msn id: [email]***[/email]

([i]Moderator says: Not a bright ideea to post your mail. Use your Personal Message for contact[/i])
×

Success!

Help @Cyberconian spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...