Do you mean that when someone clicks on an image, it just goes to a
different page? (Similar to a normal <a> tag around an image.)
If so:

$("#i4").click(function() {
    document.location.href = 'index.php?
whichPage=slider&whichAct=0&subPage=mixnmingle';
});

Or did you mean "load" an external page within the current page?
In which case you can use the $.load() jQuery ajax function.


On Aug 6, 8:35 am, "paul.mac" <paul.mcma...@uuconstruct.co.uk> wrote:
> 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 just a static <a hef="...">...</a>
>
> Any suggestions?
>
> Thanks
>
> Paul

Reply via email to