|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Mondsreitersmann
Join Date: Jul 1999
Location: Skingrad
Posts: 8,781
|
Change images on mouseover
Howdy,
Anyone knows how can I make a picture appear in place of another when the mouse is passed over and revert to the original one when the mouse pointer is moved off the pic? TIA
__________________
Darum still, füg' ich mich, wie Gott es will. Nun, so will ich wacker streiten, und sollt' ich den Tod erleiden, stirbt ein braver Reitersmann. |
|
|
|
|
|
#3 |
|
Mondsreitersmann
Join Date: Jul 1999
Location: Skingrad
Posts: 8,781
|
Thanks for replying. I'm gonna try that out and see how it works.
|
|
|
|
|
|
#4 |
|
It can never be too quiet
Join Date: May 2004
Location: Burlington, Ontario
Posts: 1,090
|
Hiya Nuke,
Another way is to use a weee bit of JavaScript. It may be a little more reliable over different browsers. I've had a bit of trouble using Pseudo-classes in the past, but that's not to say they are bad. Here's another idea: This goes in your (HEAD) section: PHP Code:
PHP Code:
Stryker
__________________
Athlon XP 2800+ Asus A7N8X (nVidia Nforce2) Radeon 9600 Pro 256MB 2x512MB KVR DDR PC3200 Dual Channel 120GB Seagate 7200RPM 8MB 160GB WD 7200RPM 8MB Liteon DVD±RW DL AOpen DVD±RW DL Vantec Ion2 350W PSUSend me your picture for the Member Photo Gallery Last edited by Stryker; 02-05-2007 at 05:55 AM. |
|
|
|
|
|
#5 |
|
Member (7 bit)
|
I like that, pseudo classes have been my enemy of happiness in the past.
|
|
|
|
|
|
#6 |
|
Mondsreitersmann
Join Date: Jul 1999
Location: Skingrad
Posts: 8,781
|
I tried the first method and it was working fine 'cept for the mouse pointer changing to the hand, and I couldn't figure out how to prevent that.
Then I came back to this thread and found Stryker's method. Worked like a charm! Thanks a bunch, to both of you.
|
|
|
|
|
|
#7 |
|
It can never be too quiet
Join Date: May 2004
Location: Burlington, Ontario
Posts: 1,090
|
No prob Nuke!
Just for reference, to change the mouse pointer to whatever you want using CSS. http://www.w3schools.com/css/pr_class_cursor.asp Glad it's working. Stryker
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Software Multiplier change. | The_YongGrand | Computer Hardware | 1 | 11-30-2006 10:30 AM |
| how to change mouse dpi on my mx510? | mandugi23 | Computer Hardware | 0 | 10-14-2006 11:27 PM |
| How to change a user name in the Windows System Folder | darla | Windows Legacy Support (XP and earlier) | 1 | 09-15-2005 06:03 PM |
| Heres some Window Secrets | Citron | Windows Tips, Tricks, and Tweaks | 22 | 01-12-2003 07:07 AM |
| Internet Explorer won't display local images | oryx | Internet, Web Applications, & The Cloud | 8 | 11-19-2001 08:28 AM |