You could chain this on the end of $('#prev') .hover( function(){ $(this).addClass('isOver'); }, // don't forget the comma function(){ $(this).removeClass('isOver'); } );
And then update your CSS. img.isOver { cursor:pointer; border:solid 1px blue; } Brian. On 4/15/07, wyo <[EMAIL PROTECTED]> wrote:
On 15 Apr., 14:28, "boermans" <[EMAIL PROTECTED]> wrote: > > Adding a class may be preferable if you wish to provide further visual > cues (such as a border) to your clickable images. > > $('#prev').addClass('clickable').bind('click', function() {...} > Nice. > And then in your css: > > .clickable {cursor:pointer; border: solid 1px blue;} > Unfortunately IE6 doesn't support css like .clickable:hover { cursor:pointer; border:solid 1px blue; } any idea how to show on hover the border blue too? O. Wyss