/    Sign up×
Community /Pin to ProfileBookmark

Single image hover effect help!

How would I use this code with only one image on a page and not all of them?

<style type=”text/css”> a:link img {filter:alpha(opacity=60);} a:visited img {filter:alpha(opacity=60);} a:hover img {filter:none;} </style>

Here is the html of the image that I would like to use.

<center><img src=”http://img2.imgspot.com/u/06/3/19/Thumb15258.gif”></center>

Your help is greatly appreciated. Thank you very much,
Robert

to post a comment
HTML

3 Comments(s)

Copy linkTweet thisAlerts:
@johnevaFeb 04.2006 — That does not make sence the styles relate to a image being used as a link but the image is not used as a link.

Also dont use the Center tags they have been depreciated you should use CSS instead.
Copy linkTweet thisAlerts:
@Paradox51483authorFeb 04.2006 — All I really would like to do is make a single image transparent then mouse over to normal. But that is the only code I could find that said anything about that.
Copy linkTweet thisAlerts:
@johnevaFeb 04.2006 — Ah right yep you are doing it pretty much the right way then but.

you should have used the <a href"#"></a> tags too.

[url=http://www.designmeme.com/articles/cssrollovers/]Link for tutorial[/url]

This uses a diffrent style for the affect but it works the same.

As for the comment about styles try keeping all styles in an external style sheet where possible.
×

Success!

Help @Paradox51483 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...