ActiveDen

jQuery Help Please

359 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 2-3 years
  • Referred between 1 and 9 users
jjjrmy says

I need some help with a small thing for a small school project. But we didn’t learn jQuery in class but I want to learn myself and use it. Pretty much, this is what I want. I have a list for the nav with images in it.

<div id="nav">
<ul>
<li><a href="index.html"><img src="home.png" /></a></li>
<li><a href="page2.html"><img src="page2.png" /></a></li>
<li><a href="page3.html"><img src="page3.png" /></a></li>
<li><a href="page4.html"><img src="page4.png" /></a></li>
</ul>
</div>

What I want is so on the page load, all the images are at 60% and when you mouseover them they become 90%. And when you click on it, it stays at 100% until you click another link.

If anyone could help, it would be greatly appreciated. I loked for stuff online and it didn’t seem to work. :confusedsad:

3375 posts
  • Australia
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 2-3 years
  • Interviewed on the Envato Notes blog
  • Microlancer Beta Tester
  • Sold between 1 000 and 5 000 dollars
Australia says
359 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 2-3 years
  • Referred between 1 and 9 users
jjjrmy says
http://www.devcurry.com/2009/06/changing-image-opacity-on-mouseover.html

David Walsh is a serious proponent of this. http://davidwalsh.name/dw-content/fade-except-jquery.php

Thank you, but I seem to have a weird error or something

Each image has an outerglow in the image, and for some reason when I mouse over it like makes the outerglow turn black. What do?

3375 posts
  • Australia
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 2-3 years
  • Interviewed on the Envato Notes blog
  • Microlancer Beta Tester
  • Sold between 1 000 and 5 000 dollars
Australia says

Are you using png8 or png24 ?

Are you also using moz shadow effects ?

Sprites that are misaligned. Difficult to tell from a screenpic

359 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 2-3 years
  • Referred between 1 and 9 users
jjjrmy says
Are you using png8 or png24 ?

Are you also using moz shadow effects ?

Sprites that are misaligned. Difficult to tell from a screenpic

It is normal png, I don’t know lol.

I’m not using a shadow effect. The shadow is in the image. Like I did outerglow around the text in Photoshop.

But I just tried it at home and it works fine. It is IE7 that is the problem. I mean, it is better than using IE6 like I had to last year.

Thanks for all the help. :)

497 posts
  • Canada
  • Sold between 1 000 and 5 000 dollars
  • Has been a member for 4-5 years
  • Exclusive Author
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
TutelageSystems says
Are you using png8 or png24 ?

Are you also using moz shadow effects ?

Sprites that are misaligned. Difficult to tell from a screenpic

It is normal png, I don’t know lol.

I’m not using a shadow effect. The shadow is in the image. Like I did outerglow around the text in Photoshop.

But I just tried it at home and it works fine. It is IE7 that is the problem. I mean, it is better than using IE6 like I had to last year.

Thanks for all the help. :)

IE does not play nice with PNG . I am not sure how IE9 does with PNG ’s as they are still working on it. (anyone care to fill in?)

You could try one of the PNG fixes such as http://www.twinhelix.com/css/iepngfix/

I am not sure which is the best. Are you able to get the same colors/look using a GIF instead?

359 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 2-3 years
  • Referred between 1 and 9 users
jjjrmy says
IE does not play nice with PNG . I am not sure how IE9 does with PNG ’s as they are still working on it. (anyone care to fill in?)

You could try one of the PNG fixes such as http://www.twinhelix.com/css/iepngfix/

I am not sure which is the best. Are you able to get the same colors/look using a GIF instead?

I might just take out the drop shadow in the image or something, it isn’t even that noticeable.

I don’t know why my school uses IE at all.

3375 posts
  • Australia
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 2-3 years
  • Interviewed on the Envato Notes blog
  • Microlancer Beta Tester
  • Sold between 1 000 and 5 000 dollars
Australia says
by
by
by
by
by