hantaah
December 24, 2012, 3:23pm
1
I had some nicely working tabs and scrollers working but since updating the content they have stoped working ( ie not jumping upon scroll over and links are not linking to each of the sliders )
the error is showing this:
Uncaught Error: Syntax error, unrecognized expression: .slider-link-1, .slider-link-2, .slider-link-3, .slider-link-4, .slider-link-5,
Really appreciate if someone could help solve this for me
Many thanks
Hi,
can you provide a link where I can see this not working?
hantaah
December 24, 2012, 3:47pm
3
Hi,
You have a syntax error in your file “custom.js”.
This is included in line 257 of your page:
<script type="text/javascript" src="http://www.organicwebdesigns.co.uk/wp-content/themes/eBusiness/js/custom.js"></script>
This is the contents of this file:
var A = jQuery.noConflict();
jQuery(function(A){
A(".slider-link-1, .slider-link-2, .slider-link-3, .slider-link-4,").hover(function(){
A(this).animate({
marginTop: "-10px"
}, 250);
}, function(){
A(this).animate({
marginTop: "0px"
}, 250);
});
});
The problem is in this line (hence your warning message):
A(".slider-link-1, .slider-link-2, .slider-link-3, .slider-link-4,").hover(function(){
Remove the final comma after .slider-link-4 and you’ll be good to go.
Happy Christmas!
hantaah
December 24, 2012, 5:01pm
5
oh wow!!! My previous code worked with the comma so I figured it was right. Thank you very very much !!!
Much appreciation very happy now!!!