[jQuery] Re: Rollover Effects instead of alternate images

2009-05-26 Thread ryan.j
it recognizes an a:hover though, so display:block and use that as the trigger. it's more semantically meaningful than making a div a link anyway. On May 23, 7:04 pm, waseem sabjee waseemsab...@gmail.com wrote: yes. however sometimes the jquery method is needed for IE6 as IE6 won't recognize

[jQuery] Re: Rollover Effects instead of alternate images

2009-05-24 Thread dnagir
Everybody, Thanks a lot for your all your replies. I appreciate it. I'll proceed with poor CSS and no JS. Cheers, Dmitriy.

[jQuery] Re: Rollover Effects instead of alternate images

2009-05-23 Thread Karl Swedberg
The OP is asking about a very simple link rollover. Since it appears people aren't taking RobG's advice and looking up CSS rollovers on Google, here is a quick demonstration: http://test.learningjquery.com/css-background-image.html On May 22, 2009, at 2:41 PM, Andy Matthews wrote: I

[jQuery] Re: Rollover Effects instead of alternate images

2009-05-23 Thread waseem sabjee
yes. however sometimes the jquery method is needed for IE6 as IE6 won't recognize a div:hover or li:hover but in this situation css only works best. On Sat, May 23, 2009 at 6:42 PM, Karl Swedberg k...@englishrules.comwrote: The OP is asking about a very simple link rollover. Since it appears

[jQuery] Re: Rollover Effects instead of alternate images

2009-05-22 Thread RobG
On May 22, 2:43 pm, dnagir dna...@gmail.com wrote: Hi, Just wondering if there's some effect in JQ that we can use to simulate rollover. It doesn't require any javascript at all. Usually when user hovers a mouse over a link/image it changes its src/ background to another one (for

[jQuery] Re: Rollover Effects instead of alternate images

2009-05-22 Thread dnagir
Modern rollovers use a single image, not multiple images (you can use a single image for all rollovers if you want). But we always must have 2 images (similar ones). No, you don't. Thanks a lot. I must have think about it. I understand it will never be as good as alternative image, but

[jQuery] Re: Rollover Effects instead of alternate images

2009-05-22 Thread ryan.j
you can customise a button as much as you like using a single image setup. join the two buttons together (like below) with the element they're displayed in sized to only show a single button, and modify the background position on :hover with css. ||| -- image ^ ^ show

[jQuery] Re: Rollover Effects instead of alternate images

2009-05-22 Thread ryan.j
if you definitely want to do it with jquery, i reckon you'd be better off adding a class to the button with { background-image:xyz.png ! important; } than playing with .toggle() or attr('src, 'xyz.png') or anything like that.

[jQuery] Re: Rollover Effects instead of alternate images

2009-05-22 Thread Chris Gerke
Maybe you could run an effect on all images at load time to have a transparency value say 99%, then use the transparency 100% on hover? On Fri, May 22, 2009 at 2:43 PM, dnagir dna...@gmail.com wrote: Hi, Just wondering if there's some effect in JQ that we can use to simulate rollover.

[jQuery] Re: Rollover Effects instead of alternate images

2009-05-22 Thread ButtersRugby
I just did this the other day on a web page. You need to make an image that has both the active, and regular state images in it. Then in your css, #base-state {background-position: 0px 0px;} // The first 0 is the X axis position, the second is the Y #base-state.active {background-position:

[jQuery] Re: Rollover Effects instead of alternate images

2009-05-22 Thread Andy Matthews
] On Behalf Of ButtersRugby Sent: Friday, May 22, 2009 1:25 PM To: jQuery (English) Subject: [jQuery] Re: Rollover Effects instead of alternate images I just did this the other day on a web page. You need to make an image that has both the active, and regular state images in it. Then in your css

[jQuery] Re: Rollover Effects instead of alternate images

2009-05-22 Thread waseem sabjee
a pseudo class. -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of ButtersRugby Sent: Friday, May 22, 2009 1:25 PM To: jQuery (English) Subject: [jQuery] Re: Rollover Effects instead of alternate images I just did this the other