html - Errors with custom jquery slideshow -


i've been trying hand @ creating custom slideshow scratch using barrel guide "building jquery slideshow plugin scratch" found here: http://www.barrelny.com/blog/building-a-jquery-slideshow-plugin-from-scratch/. i've been following through step step decided copy , paste end result fader.js. earlier non-optimized code working correctly.

the page i'm having trouble located here: http://dataglyph.com/slidetest/

the errors showing firebug are:

syntaxerror: missing formal parameter function animateslides(active, new){  

(with arrow pointing @ "new")

fader.js (line 49, col 35) 

which points block of code in file:

function animateslides(active, new){     if(fading || activendx == newndx){         return false;     };     fading = true;     $pagers.removeclass('active').eq(newslide).addclass('active');     $slides.eq(active).css('z-index', 3);     $slides.eq(new).css({         'z-index': 2,         'opacity': 1     }); 

and other error is:

referenceerror: easyfader not defined easyfader($('#fader'),5000,800); /slidetest/ (line 15) 

which points slideshow instantiated on index page:

<script> $(function(){ easyfader($('#fader'),5000,800); }); </script> 

can give me insight why these errors occurring?

yes, turned out new should newndx, there other issues besides that. should've used codepen @ end of tutorial had code proven work.


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -