SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Evangelist hantaah's Avatar
    Join Date
    Jul 2011
    Location
    Birmingham, Uk
    Posts
    549
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Tabs & scrollers stopped working

    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

  2. #2
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    5,313
    Mentioned
    178 Post(s)
    Tagged
    8 Thread(s)
    Hi,
    can you provide a link where I can see this not working?

  3. #3
    SitePoint Evangelist hantaah's Avatar
    Join Date
    Jul 2011
    Location
    Birmingham, Uk
    Posts
    549
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

  4. #4
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    5,313
    Mentioned
    178 Post(s)
    Tagged
    8 Thread(s)
    Hi,

    You have a syntax error in your file "custom.js".
    This is included in line 257 of your page:

    HTML Code:
    <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:

    Code JavaScript:
    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):

    Code JavaScript:
    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!

  5. #5
    SitePoint Evangelist hantaah's Avatar
    Join Date
    Jul 2011
    Location
    Birmingham, Uk
    Posts
    549
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    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!!!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •