i believe this is possible since i seen it before. What i want to have is code that has an image that shows in white color and when you moveover it, it turns a color. I know it requires 2 images but that is all i know.
Mouseover with images
Started by dirkfirst, May 18 2006 06:13 AM
8 replies to this topic
#1
Posted 18 May 2006 - 06:13 AM
|
|
|
#2
Posted 20 May 2006 - 11:46 AM
So basically you want the image to change to a new image when you do a mouseover?
#3
Posted 24 May 2006 - 11:27 PM
You will need to use javascript for this, not html.
You could do it with CSS as well and thats more recommended than using javascript.
You could do it with CSS as well and thats more recommended than using javascript.
#4
Posted 04 July 2006 - 11:15 AM
If you design a web page with Flash, that's easy, and as Frantic said it's possible to do with Javascript (although I didn't know that).
#5
Posted 06 July 2006 - 03:27 PM
Simple!
Obviously you can edit the values above to match your requirements.
<script language="Javascript">
<!--
//Slide Show script (this notice must stay intact)
//For this and more scripts
//visit java-scripts.net or http://wsabstract.com
if (document.images) {
button1 = new Image
button2 = new Image
button1.src = 'img1.gif'
button2.src = 'img2.gif'
}
//-->
</script>
Obviously you can edit the values above to match your requirements.
#6
Posted 08 July 2006 - 09:00 AM
#7
Posted 07 October 2006 - 10:31 PM
Dan, I'm not good at all with JavaScript, but shouldn't he use the on.mouseover() function?
#8
Posted 12 October 2006 - 04:57 PM
Nice, CSS looks a lot easier than Javascript. I didn't realize CSS could do this.
#9
Posted 29 December 2006 - 10:48 PM
I have found some nice tutorials at JavaScript Kit- Comprehensive JavaScript, DHTML, CSS tutorials and over 400+ free JavaScripts! and here is the link to the place you must go to get whatever you want.
JavaScript Kit- Images and music scripts
JavaScript Kit- Images and music scripts


Sign In
Create Account


Back to top









