开发者

Grab current URL anchor and run X

开发者 https://www.devze.com 2022-12-10 06:08 出处:网络
I am using a coda slider plugin and when you click different segments, it will then loa开发者_如何转开发d:

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

精彩评论

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