Charas-Project

Off-Topic => Really Old Stuff => Archive => HTML & DHTML => Topic started by: WarxePB on October 05, 2004, 02:41:03 AM

Title: Changing images on mouse over.
Post by: WarxePB on October 05, 2004, 02:41:03 AM
How might one go about doing this? It's probably a stupid question, but I don't know how to do it.
Title:
Post by: Red Giant on October 05, 2004, 02:47:48 AM
You'll need Javascript for that... cos it ain't serverside.
Title:
Post by: Yellowvanblake on October 05, 2004, 02:59:58 AM
onmouseover="document.change.src='second image.ext'"
onmouseout="document.change.src='first image.ext'">


WIDTH="100" HEIGHT="50" BORDER="0">

should work
Title:
Post by: WarxePB on October 05, 2004, 12:22:13 PM
Dude, that works perfectly! Thanks a lot! If you ever need something, I'll do my best to help.
Title:
Post by: shinotebasiiackh on October 05, 2004, 09:36:12 PM
You can also use onmouseover and onmouseout in the image tage and just say this.src="imagename.png"
Title:
Post by: Red Giant on October 05, 2004, 09:38:22 PM
Quote
Originally posted by Yellowvanblake
onmouseover="document.change.src='second image.ext'"
onmouseout="document.change.src='first image.ext'">


WIDTH="100" HEIGHT="50" BORDER="0">

should work

OOOOooOOoooOoooOooo Din't know that, huzzah!
Title:
Post by: shinotebasiiackh on October 05, 2004, 09:46:24 PM
I want to try that as opposed to my suggestion. Never tryed that. [shrug] I don't know JavaScript, anyway. Thats just what I found works... (I just looked through the JavaScript books I have)