/    Sign up×
Community /Pin to ProfileBookmark

one more positioning Question

I want to have a small span/window that does not scroll with the page. In other words, it should floate on the page and reposition it self relative to the window/frame border.

(some thing like that Ad winodws they have in geocities pages)

Hope one of you could provide some help on this

Cheers

Kayzee

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@khalidali63Feb 02.2003 — set the position:absolute;

then in IE document.body.scrollTop and in NS6+ window.pageYOffset will give you the scrolled down value,add this value to object.style.left+newValue

and then set it to the new location.

this will do what you want.

cheers

Khalid
Copy linkTweet thisAlerts:
@kayzeeauthorFeb 02.2003 — hmm .. It works...

Thanks buddys, will try to use it if my other option fails

Cheeers

Kay
×

Success!

Help @kayzee 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.19,
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,
)...