Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
11-20-2010, 07:51 PM #1
- Join Date
- Apr 2010
- Thanked 0 Times in 0 Posts
Affecting an html element before opening it
I'm making a site for my g/f – She's writing angel messages for each day of the year, 1 message on 1 page and these (eventually 366 pages) are accessed from this one page:
This menu page uses JS to slide to particular months. The place I'm stuck is how could it be possible to go from a particular days message, back to the month of that message in the per-datum page (having the page slid to that month)...
for clarities sake... “Terug” means “back”, so for example to click on october 22nd message, read the message, and terug back to Octobers seeds rather than back to the per datum pages month selection calender.
My best effort so far is to put this in the a tag:
-1000px would be Januarys terugs, -2000px Februarys terugs etc to have it already slid to that month, this code works when on the same page, but when its on the message page before loading up the per datum page it seems to lose this setting.
I would really appreciate help on this – to be honest I've never used cookies, I dont know what they're for, am I on the right track, is there something else involved like location: hash? or is this what cookies are for?
many thanks, Will
11-21-2010, 03:35 AM #2
- Join Date
- Jan 2010
- Behind the Wall
- Thanked 361 Times in 357 Posts
a cookie is use to store small (!) amounts of data persistently (well, as long as the cookie is valid) for a given website.
The computer is always right. The computer is always right. The computer is always right. Take it from someone who has programmed for over ten years: not once has the computational mechanism of the machine malfunctioned.André Behrens, NY Times Software Developer