/    Sign up×
Community /Pin to ProfileBookmark

coordinates

I’m stuck with the development of my site. Hope you guys can help me out.

It’s a lot of code so please follow the links in this post and look into the source.

On [URL=”http://beautifullalaland.com/sub.html”]this page[/URL] you can click the first link in the menu (“Masakha”). A panel will slide into view from right to left. Subsequently the menu slides to the left, out of view.

The panel contains a jQuery gallery. When you click your keyboard’s left and right arrow keys, J and K, or the space bar, the gallery moves to the next image. The image will be positioned into view using [URL=”http://beautifullalaland.com/imgfocus.js”]this code[/URL].

It all works beautifully, except that the page’s coordinates are reset to 0,0 when moving to the next image, which it shouldn’t. I have gone through the code but can’t see where the culprit is.

Anyone?

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@PrisauthorAug 16.2011 — Bump.
Copy linkTweet thisAlerts:
@PrisauthorSep 02.2011 — No one?
Copy linkTweet thisAlerts:
@PrisauthorSep 03.2011 — Unanswerable question, too complicated, hopeless? What?
Copy linkTweet thisAlerts:
@DanInMASep 03.2011 — when i click on maska it shows a panel with 4 placeholder images and no slide show that i could tell.
Copy linkTweet thisAlerts:
@PrisauthorSep 03.2011 — Thank you for the response DanInMA ?

There's no slide show, it's a vertical gallery (the placeholder images) that "slides into view" (the panel). Using the spacebar and key strokes (see the original post), the gallery moves down and focusses on the subsequent image.

This works but the page's coordinates reset to 0,0 where I want the X-axis not to change.

I have found that the coordinates are defined in this page of js code but after working on the code for hours I think I'm missing the obvious.
×

Success!

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