开发者

Grab current URL anchor and run X

I am using a coda slider plugin and when you click different segments, it will then loa开发者_如何转开发d:

site.com/#1, site.com/#4

Is there a way to check for that using jQuery, then run a function. I have a slider with 4 parts

sunrise, day, sunrise, night

And on night ,I want to overlay a transparent PNG. And it is #4, so when the user clicks that and #4 is in the URL as an anchor, overlay.

I understand all the other code, but not sure if it is possible to check for that anchor?


You could try using the jQuery History plugin, but it will be a lot simpler if you can find a way to extend the Coda slider plugin to notify your code directly.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜