Charas-Project

  • Home
  • Help
  • Search
  • Calendar
  • Login
  • Register
*
Please login or register.

Login with username, password and session length
 

News:

New forum theme up and running!



  • Charas-Project »
  • Off-Topic »
  • Archive »
  • Really Old Stuff »
  • HTML & DHTML (Moderator: De KoFfieŠ) »
  • Changing images on mouse over.
« previous next »
  • Print
Pages: [1]

Author Topic: Changing images on mouse over.  (Read 4287 times)

Offline WarxePB

  • Action Sue
  • Royal
  • *
  • Posts: 3,601
  • What killed the dinosaurs?
    • The Gigaverse
Changing images on mouse over.
« 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.
Logged
Blog: The Gigaverse
Twitter: Initial Chaos

Offline Red Giant

  • Leader
  • *
  • Posts: 2,608
  • The best damn bio in the whole damn world. YEAH!!
(No subject)
« Reply #1 on: October 05, 2004, 02:47:48 AM »
You'll need Javascript for that... cos it ain't serverside.
Logged

Offline Yellowvanblake

  • Associate
  • *
  • Posts: 121
(No subject)
« Reply #2 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
Logged

Offline WarxePB

  • Action Sue
  • Royal
  • *
  • Posts: 3,601
  • What killed the dinosaurs?
    • The Gigaverse
(No subject)
« Reply #3 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.
Logged
Blog: The Gigaverse
Twitter: Initial Chaos

shinotebasiiackh

  • Guest
(No subject)
« Reply #4 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"
Logged

Offline Red Giant

  • Leader
  • *
  • Posts: 2,608
  • The best damn bio in the whole damn world. YEAH!!
(No subject)
« Reply #5 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!
Logged

shinotebasiiackh

  • Guest
(No subject)
« Reply #6 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)
Logged

  • Print
Pages: [1]
« previous next »
  • Charas-Project »
  • Off-Topic »
  • Archive »
  • Really Old Stuff »
  • HTML & DHTML (Moderator: De KoFfieŠ) »
  • Changing images on mouse over.
 

  • SMF 2.0.10 | SMF © 2015, Simple Machines
  • XHTML
  • 2O11
  • RSS
  • WAP2
  • Simple Machines Forum