[jQuery] Re: Click event to load a new page

2009-08-06 Thread paul.mac
Thanks guys - came to the same conclusion shortly after posting the question. Thanks Paul On Aug 6, 7:52 pm, "Richard D. Worth" wrote: > Use > window.location > = "index.php?whichPage=slider&whichAct=0&subPage=mixnmingle"; > - Richard > > On

[jQuery] Click event to load a new page

2009-08-06 Thread paul.mac
I want to add a click function to an image to laod a new page Tried this but it doesn't work $("#i4").click(function(){ $(document).attr("href","index.php? whichPage=slider&whichAct=0&subPage=mixnmingle"); }); The whichAct variable in the query string gets changed, which is why it isn't

[jQuery] Image carousel

2009-03-07 Thread paul.mac
In the jQuery documentation under animate there is an example as follows: $("#go3").click(function(){ $("#go1").add("#go2").click(); }); which is used to transform 2 blocks below the example code. I have an image carousel with 7 images in a row with right and left pointing arrows at e

[jQuery] Re: Stringing functions within a click event

2009-02-21 Thread paul.mac
.attr('id').split('i')[1]; >         id = id -1; >         $(this).attr('id',id) >     }); > > }) > > On 21 Feb., 15:15, "paul.mac" wrote: > > > Hi, > > > I have a group of animations, which once they are finished I wou

[jQuery] Stringing functions within a click event

2009-02-21 Thread paul.mac
Hi, I have a group of animations, which once they are finished I would like to change all the image ids and then the src attribute. My code is as follows: $("#right").click(function(){ $("#i0").fadeIn(1500); $("#i1").animate({width: '98px', "left": "+=86px"}, 1500); ...

[jQuery] Re: Queuing jQuery animations

2009-02-21 Thread paul.mac
> You can use a callback which will be executed when the animation is > > finished, like this: > > > $("#i2").animate({left: "+=110px"}, 1500, function(){ $(this).css > > ({zindex:19}); } ); > > > On Feb 20, 7:06 am, "paul.mac" wrote:

[jQuery] Queuing jQuery animations

2009-02-20 Thread paul.mac
t;z-index", 19) to the end of the #i2 line (before the semi colon) but it seems to execute it straight away. (There are some more bits to the code but they will only clutter things up) Thanks paul.mac