This is a discussion on Fading Images within the Website Design Articles forums, part of the Webmaster Articles/Tutorials category; Have you ever saw these images where you put the mouse on them and the opicity of a coloured layer ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| | #1 (permalink) |
| WMT Addict | Have you ever saw these images where you put the mouse on them and the opicity of a coloured layer decreases and then when you put the mouse of it it goes back to the semi-hedden picture. here is how to do it. for a working example of it go to www.greycobra.com and have a look at the random tutorial pictures at the top. open up your website and in the head tag insert the following PHP Code: <body> <img src=yourimage.gif width="282" height="25" border=0 style=filter:alpha(opacity=20) onMouseOver=nereidFade(this,100,20,10) onMouseOut=nereidFade(this,20,5,5)> [html] All you have to do is change the image name and what the starting colour overlay and opicity percentage as in photoshop. I am sorry only works on IE as far as i know. If in any dought please do not hesistate to contact me. |
| | |
| | #8 (permalink) |
| Newbie | Well the (long-term) simple answer would be to learn HTML. :p Otherwise, just put that entire first block of code within the <head> and </head> tags of your page, and then put the following script wherever you'd like the image to appear, replacing "YOURIMAGE.GIF" with the location of an image: HTML Code: <img src="YOURIMAGE.GIF" width="282" height="25" border="0" style="filter:alpha(opacity=20)" onMouseOver="nereidFade(this,100,20,10)" onMouseOut="nereidFade(this,20,5,5)"> Also note that this will only work for users who are using the Internet Explorer browser. |
| | |
| | #9 (permalink) | |
| WMT Addict | Quote:
| |
| | |
| Tags |
| fading, images |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Fading colours??? | Lewis | Website Design Forum | 2 | 27-06-2005 05:26 |
| Fading Links | asgsoft | Website Design Articles | 5 | 14-06-2005 17:50 |
| Expanding Images | Aaron | Programming Articles | 0 | 23-04-2005 21:53 |
| HTML Images | Bmg | Programming Articles | 0 | 07-04-2005 16:24 |