I am using jquery, and some things need to be done.
1) When someone clicks on a link (or in my case, a div), to display the other divas, I want to add an anchor to the URL.
Therefore, if a person clicks on the "Live" link, then the 'Live' Divis slides down, and we add #live to the url
2) If any The person has visited that page and placed the # live anchor at the end of the URL, then the 'live' device should be visible immediately.
I know how to control the original part of the slideshow (), if one of the developers clicks, I do not know how to apply the hashtag, or make it when the page gets loaded. That hashtag is examined and displays related device
Any help to understand will be appreciated in advance thanks in advance.
It is easy to manipulate a hash for the URL, such as:
Click $ ("a.live") (function () {window.location.hash = 'live'; // href if '#live'} is not necessary);
You can easily check for your presence and when loaded on that page, you can work according to that value, like:
< Code> $ (document) .ready (function () {var hashVal = window.location.hash.split ("#") [1]; if (hashwell == 'live') {$ ("# live"). Show ();}});
Comments
Post a Comment