On 17 Apr., 00:06, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:
> wyo schrieb:> On 15 Apr., 18:27, "Brian Cherne" <[EMAIL PROTECTED]> wrote:
>
> > ".hover" is this a jQuery function? Where is it described?
>
> http://jquery.bassistance.de/api-browser/#hoverFunctionFunctionhttp://docs.jquery.com/Event
wyo schrieb:
On 15 Apr., 18:27, "Brian Cherne" <[EMAIL PROTECTED]> wrote:
You could chain this on the end of $('#prev')
.hover(
function(){ $(this).addClass('isOver'); }, // don't forget the comma
function(){ $(this).removeClass('isOver'); }
);
".hover" is this a jQuery functio
On 15 Apr., 18:27, "Brian Cherne" <[EMAIL PROTECTED]> wrote:
> You could chain this on the end of $('#prev')
>
> .hover(
>function(){ $(this).addClass('isOver'); }, // don't forget the comma
>function(){ $(this).removeClass('isOver'); }
> );
>
".hover" is this a jQuery function? Where is i
enable/disable are for form fields only.
Now you're talking about using CSS classes.
CSS -
.enabled{ /* CSS */ }
.disabled{ /* CSS */ }
SCRIPT -
$('#address').removeClass('disabled').addClass('enabled'); // enables
$('#address').removeClass('enabled').addClass('disabled'); // enables
You have t
On 16 Apr., 00:21, "Brian Cherne" <[EMAIL PROTECTED]> wrote:
> Good point, Paul. Assuming it's not too much work, changing the IMG to an A
> tag would take care of most your problems... You wouldn't need ugly js hacks
> to get IE to understand "hover" and the only thing you'd need to do is
>
Okay
Good point, Paul. Assuming it's not too much work, changing the IMG to an A
tag would take care of most your problems... You wouldn't need ugly js hacks
to get IE to understand "hover" and the only thing you'd need to do is
$('#prev').click(function(){
/*do something;*/
return false;
});
Bri
add $('#prev').css('cursor', 'pointer');
On Apr 15, 2:44 am, "wyo" <[EMAIL PROTECTED]> wrote:
> I've bound a click handler to an image and would like to see that this
> element is clickable on the page
>
> $('#prev').bind('click', function() {...}
>
>
>
> This doesn't show the click cursor (fi
Hi wyo,
If you want to get the pointing finger, use css. The easest way is to
put a
On Apr 15, 2:44 am, "wyo" <[EMAIL PROTECTED]> wrote:
> I've bound a click handler to an image and would like to see that this
> element is clickable on the page
>
> $('#prev').bind('click', function() {...}
>
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 PROTE
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:
>
> .clic
Diego A. schrieb:
in IE: .hover{ cursor:hand; }
This is only required for IE 5. IE 6 supports cursor: pointer.
-- Klaus
Crudely, something like this:
$('#prev').css('cursor','pointer').bind('click', function() {...}
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() {...}
And t
Only anchor elements (..) with the href property show
the hand by default.
As Jorn suggested, you need to add a class to your element, eg.:
'hover' and use the following CSS:
in IE: .hover{ cursor:hand; }
Others: .hover{ cursor:pointer; }
On Apr 15, 8:44 am, "wyo" <[EMAIL PROTECTED]> wrote:
> I'
wyo schrieb:
I've bound a click handler to an image and would like to see that this
element is clickable on the page
$('#prev').bind('click', function() {...}
This doesn't show the click cursor (finger pointing to) when the
cursor hovers over the element. Do I have to change this to a '
14 matches
Mail list logo