Public Voice Network
- Shit QBNers think 7070
- Pic of the Day 5937759377
- Ageless Male
- Ageless Male
- Shit QBNers Say 131131
- Ageless Male
- FMT 020312 4747
- Show Yo Dog 2012
- Ageless Male
- Light in the box coupons
- Multicolored logos? 1414
- Politics 1759817598
- blog 5558055580
- Light in the Box Coupons
- Vid of the Day 1096110961
- TYPO San Francisco 55
- Suggest a good movie... 936936
- Logo from Locked PDF? 33
- American Musical Supply C… 11
- intern -> job 2121
- Your Last Concert 375375
- the gif animation thread 1132211322
- Steve Jobs FBI file 66
- What are you listening to… 41734173
jquery fadein/out 1010 Responses
Last post: 1 year, 11 months ago | Thread started: Mar 15, 10, 6:18 p.m.
- duckseason
So I'm trying to do something which I figured was pretty simple, and for the most part, it is.
There is only one thing that is throwing a stick in my wheels.
I am using jquery to do a fadeIn/Out hover effect on a div, this is the snippet of code I am using:
$(".navblock").hover(
function () {
$(".infooverlay",this).fadeIn("f...
},
function () {
$(".infooverlay",this).fadeOut...
}
);When .navblock is hovered over for the first time, the overlay just appears, it doesn't fade in; however once I mouse out and any time I mouse over it again, it fades in and out as normal.
Mind you, I'm JS retarded, and am trying to just follow along with tutorials, is there a reason why it's not fading in on the first mouse over?
Many thanks in advance!
- Mar 15, 10, 6:18 p.m. – Permalink
- bigtrickagain
do you have a demo page up? it's always easier to diagnose these things with a live example to work from (:


- Dog-earMar 15, 10, 6:32 p.m. – Permalink
- duckseason
No demo up yet, I really just started plugging away at this for a little bit last night.
I do have it to display: block when hovering
I will try out switching it to visible: hidden when I get back home - currently using display: none

- Dog-earMar 16, 10, 4:41 a.m. – Permalink
- neverblink
you don't need to change the display setting on hovering, jquery will change it for you.


- Dog-earMar 16, 10, 5:15 a.m. – Permalink
- duckseason
hmmm...
although my files are at home, i'll try and recreate this portion of what i had once i get to the other job, so longs as things aren't too crazy there.i appreciate all the help/suggestions thus far


- Dog-earMar 16, 10, 6:35 a.m. – Permalink
- duckseason
Stugoo - worked like a charm, thank you!
You too, ctcliff, for reinforcing his methods. ;)

- Dog-earMar 16, 10, 4:56 p.m. – Permalink



