Integrating a bezier plug-in into my jquery: variable issue
I'm trying to understand why the following doesn't work, specifically line 10. If I remove that line, all else works. I was told to declare the variables outside of the function but I've done both and it doesn't matter.
- $(document).ready(function(){
- var arc_params = {
- center: [278,120], //(cooridinates of center of circle)
- radius: 186, //half the size
- start: -90, //north is 0, measured clockwise
- end: 90, //north is 0, measured clockwise
- dir: -1 //only required if direction is not obvious or you want to change it
- };
- $('#portfolio').fadeTo(500,0.25);
- $("#account").animate({path : new $.path.arc(arc_params)},1000);
- $('#account').animate({width:"10.1875em",height:"11.1875em",duration:'medium'});
- $('#next2btn').live('click', function(){
- $(this).attr('id','next3btn');// this is where the new id is created
- $('#content').fadeTo(300, 0.0, function() {
- $('#content2').show(300, function() {
- $('#account').fadeTo(500,1.0)
- .animate({marginLeft:"220px", width:"2em",'height' :"2em",duration:'medium'})
- .animate({
- marginLeft:"400px",
- marginTop:"35px",
- width:"7em",
- height:"7em",
- duration:"medium"
- }, 'medium', 'linear', function() {
- $('#statusGraphic').attr('src', 'state2_138x28.gif');
- })
- .fadeTo(500,0.5);
- $('#portfolio')
- .fadeTo(500,1.5)
- .animate({marginLeft:"-220px", width:"12em",height:"12.5em",duration:'medium'})
- .animate({marginLeft:"-330px", width:"10.1875em",height:"11.875em",duration:'medium'});
- });
- });
- });
- //end first click routine animation and replacement
- });//end doc ready*/