/    Sign up×
Community /Pin to ProfileBookmark

slideshow image bookmarking

I made a slideshow script and wanted to allow users to bookmark individual images. I did this by setting location.hash to a unique image id each time the image is changed. Then I added code to the onload event to examine location.hash and display that particular image. Is there a better way to do this?

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@emilysmithAug 27.2014 — Hi

Its good to hear, If you would have shared the link means it will be help ful. to go through and understand and post.
Copy linkTweet thisAlerts:
@CLambauthorJun 26.2015 — It's at avaday.com.
×

Success!

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