But CSS :hover will not work in IE6. So better use script
On May 15, 9:26 am, RobG rg...@iinet.net.au wrote:
On May 15, 11:35 am, Calvin cstephe...@gmail.com wrote:
Hi,
I was able to get this script to work and was wondering if there was
a better/proper/more efficient way of
$(function() {
$(#myid).hover(function() {
// when mouse is over element
}, function() {
// else
});
});
On Fri, May 15, 2009 at 9:22 AM, Karthikraj karthik271...@gmail.com wrote:
But CSS :hover will not work in IE6. So better use script
On May 15, 9:26 am, RobG rg...@iinet.net.au
:hover does work in IE6, it's just limited to a elements.
Jonathan
Karthikraj wrote:
But CSS :hover will not work in IE6. So better use script
On May 15, 9:26 am, RobG rg...@iinet.net.au wrote:
On May 15, 11:35 am, Calvin cstephe...@gmail.com wrote:
Hi,
I was able to get this
On May 15, 5:22 pm, Karthikraj karthik271...@gmail.com wrote:
But CSS :hover will not work in IE6. So better use script
Rubbish. The OP wants to use it on an A element, which
supports :hover in probably every browser since Navigator and IE 4, if
not older.
--
Rob
as rob said, unless the OP is using the anchor's class itself in
conjunction with some other jquery selector at that point, the OP
would be better off just using :hover.
jquery is awesome, but using it to do stuff CSS already does better is
considerably less awesome.
On May 15, 9:22 am, RobG
On May 15, 3:24 pm, ryan.j ryan.joyce...@googlemail.com wrote:
as rob said, unless the OP is using the anchor's class itself in
conjunction with some other jquery selector at that point, the OP
would be better off just using :hover.
jquery is awesome, but using it to do stuff CSS already
Hi Calvin,
I think what you're looking for is something like this, as James said.
$(li a).hover(function(){
$(this).addClass(move);
}, function() {
$(this).removeClass(move);
});
Of course, include document ready function.
-Jon Thomas
what about that ?
$(li a).hover(function(){
$(this).toggleClass(move);
});
On May 15, 4:42 pm, Jthomas wjthom...@yahoo.com wrote:
Hi Calvin,
I think what you're looking for is something like this, as James said.
$(li a).hover(function(){
While
$(li a).hover(function(){
$(this).addClass(move);
}, function() {
$(this).removeClass(move);
});
works well in theory, I've found that
$(li a).hover(function(){
$(li a).removeClass(move);
$(document).ready(function() {
$('li.a').hover(
function() { $(this).addClass('move'); },
function() { $(this).removeClass('move'); }
)};
)};
On May 14, 3:35 pm, Calvin cstephe...@gmail.com wrote:
Hi,
I was able to get this script to work and was wondering if
Slight typo near the end.
$(document).ready(function() {
$('li.a').hover(
function() { $(this).addClass('move'); },
function() { $(this).removeClass('move'); }
);
)};
On May 14, 3:47 pm, James james.gp@gmail.com wrote:
$(document).ready(function() {
Thanks James!
On Thu, May 14, 2009 at 6:49 PM, James james.gp@gmail.com wrote:
Slight typo near the end.
$(document).ready(function() {
$('li.a').hover(
function() { $(this).addClass('move'); },
function() { $(this).removeClass('move'); }
);
)};
On May
On May 15, 11:35 am, Calvin cstephe...@gmail.com wrote:
Hi,
I was able to get this script to work and was wondering if there was
a better/proper/more efficient way of writing it. Here is the script:
$(document).ready(function() {
$('li.a').hover(function() {
Very good to know! Now I know what to look for :)
On Nov 20, 6:11 pm, Dave Methvin [EMAIL PROTECTED] wrote:
I was looking at the jQuery docs for toggle here
http://docs.jquery.com/Events/toggle
The toggle() without any arguments implements show/hide functionality,
so it's in the Effects
Hi,
i think this is a short way to do it, altough i haven't tested it
myself.
$(a.showHide).click(function() {
$(# + $(this).attr('rel')).toggle();
});
It uses the rel attribute of the anchor to find the DIV-Node, and using
the toggle method, the div is either hidden or displayed,
That works perfectly! 10+ lines to what could be a one liner.
I was looking at the jQuery docs for toggle here
http://docs.jquery.com/Events/toggle
and it was confusing me... it wasn't clear to me that an empty toggle
() would do show/hide. Furthermore, when I tried to add functions into
them
I was looking at the jQuery docs for toggle here
http://docs.jquery.com/Events/toggle
The toggle() without any arguments implements show/hide functionality,
so it's in the Effects section:
http://docs.jquery.com/Effects/toggle
There are a few other words that overlap like this, such as
didn't notice that, thanks a lot!
- ricardo
On Sep 23, 1:00 am, Eric [EMAIL PROTECTED] wrote:
You can trim it down a bit by using the index that each() passes to
the callback function:
$('#jq-secondaryNavigation li').each( function(i) {
var that = $(this);
setTimeout( function
Cheers Guys, a great help!!
This works, but there must be a better way (without using a global
var).
fade = function(){
$(this).next().fadeIn(500,fade);
};
$('#ul.menu li:first-child').fadeIn(500,fade);
On Sep 22, 5:34 pm, PaulC [EMAIL PROTECTED] wrote:
I'm new to jQuery so be gentle!!
I have a menu list, and I
got it! :D
$('#jq-secondaryNavigation li').each(function(){
var index = $('#jq-secondaryNavigation li').index(this);
setTimeout($('#jq-secondaryNavigation li:eq(+index
+)').fadeOut(300),index*500);
});
500 is the time between the animations.
hope this helps,
ricardo
On Sep 22, 11:46
You can trim it down a bit by using the index that each() passes to
the callback function:
$('#jq-secondaryNavigation li').each( function(i) {
var that = $(this);
setTimeout( function () {that.fadeIn('slow')}, i * 500 );
});
On Sep 22, 11:14 pm, ricardobeat [EMAIL PROTECTED] wrote:
Gracias amigo, that did the trick! I knew it was simple ;-)
On Aug 24, 4:27 pm, MorningZ [EMAIL PROTECTED] wrote:
.find() should help
$(this).find(ul li a).each(
)
.find() should help
$(this).find(ul li a).each(
)
Anyone can test with the latest version of jquery by grabbing a nightly
build.
http://code.jquery.com/nightlies/jquery-nightly.js
The issue is rather that plugin authors don't have the time to update their
plugins right when the new version comes out.
I believe there are already some plugins
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sean Catchpole
Sent: Sunday, September 16, 2007 2:00 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: A better way to update jQuery Plug-ins...
Anyone can test with the latest version of jquery by grabbing a nightly
26 matches
Mail list logo