How to make the Jquery only activate on certain anchor points?
I have some Jquery that loads with every page of a PHP based shopping cart. However, I don't want this code to effect the anchor links on certain pages.
For example, I
don't want this effect to apply to the following anchor links:
#read_review
#write_review
How do I stop this code applying itself to those Anchor links?
Here is the code:
- <!-- Tabs scripts: Start -->
- <script type="text/javascript" src="js/jquery-ui-1.7.2.custom.min.js"></script>
- <script type="text/javascript" charset="utf-8" src="js/jquery.scrollTo.js"></script>
- <script type="text/javascript" charset="utf-8" src="js/jquery.localscroll.js"></script>
- <script type="text/javascript">
- $(document).ready(function(){
- $(".tab-set").tabs();
- if($(".tab-set") && document.location.hash){
- $.scrollTo(".tab-set");
- }
- $(".tab-set ul").localScroll({
- target:".tab-set",
- duration:0,
- hash:true
- });
- });
- </script>
- <!-- Tabs scripts END -->
Hopefully one of the many Jquery gurus on here can help this beginner out...?