There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
bios black screen blue screen boot computer connection crash css dell display driver drivers email error excel firefox firefox 3 freeze game hard drive internet internet explorer itunes laptop lcd linux malware monitor network networking nvidia outlook outlook 2003 outlook express partition password printer problem router slow sound startup trojan usb video virus vista windows windows xp wireless
Software Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
onMouseOver/onMouseOut Problems


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
Hrumachis334's Avatar
Senior Member with 202 posts.
 
Join Date: Jun 2001
Location: Oregon
25-Dec-2003, 03:12 PM #1
onMouseOver/onMouseOut Problems
I'm having a problem on my web page where I want to have the image change and have text appear in the status bar. I can get one to work but then the other one doesn't. I tried combining them but I can't this is what I have:

<div style="position:absolute;top:184px;left:45px;">
<a href="calendar.html" target="Main Page"
onMouseOver='calendar.src=calendar2.gif;'
onMouseOver="window.status='Calendar'; return true;"
onMouseOut='calendar.src=calendar1.gif;'
onMouseOut="window.status='';" >
<img src="calendar1.gif" name="calendar" border="0" width="81" height="21" alt="Calendar"></a></div>
__________________
Violence is the last refuge of the incompetent.
-Salvor Hardin
brendandonhu's Avatar
Distinguished Member with 15,988 posts.
 
Join Date: Jul 2002
Location: Ann Arbor, MI
Experience: Advanced
25-Dec-2003, 04:20 PM #2
You can't have two onmouseovers or onmouseout events for a single object.

<div style="position:absolute;top:184px;left:45px;">
<a href="calendar.html" target="Main Page"
onMouseOver="calendar.src=calendar2.gif;
window.status='Calendar'; return true;"
onMouseOut="calendar.src=calendar1.gif;
window.status=';'">
<img src="calendar1.gif" name="calendar" border="0" width="81" height="21" alt="Calendar"></a></div>
__________________
-Brendan
Hrumachis334's Avatar
Senior Member with 202 posts.
 
Join Date: Jun 2001
Location: Oregon
25-Dec-2003, 04:38 PM #3
I tried what you gave me. It doesn't work. I did that already.
Hrumachis334's Avatar
Senior Member with 202 posts.
 
Join Date: Jun 2001
Location: Oregon
25-Dec-2003, 04:41 PM #4
And when I do that I get script error messages.
brendandonhu's Avatar
Distinguished Member with 15,988 posts.
 
Join Date: Jul 2002
Location: Ann Arbor, MI
Experience: Advanced
25-Dec-2003, 04:42 PM #5
Whoops
<div style="position:absolute;top:184px;left:45px;">
<a href="calendar.html" target="Main Page"
onMouseOver="calendar.src='calendar2.gif';
window.status='Calendar'; return true;"
onMouseOut="calendar.src='calendar1.gif';
window.status=';'">
<img src="calendar1.gif" name="calendar" border="0" width="81" height="21" alt="Calendar"></a></div>
Hrumachis334's Avatar
Senior Member with 202 posts.
 
Join Date: Jun 2001
Location: Oregon
25-Dec-2003, 04:47 PM #6
Thanks a bunch!
brendandonhu's Avatar
Distinguished Member with 15,988 posts.
 
Join Date: Jul 2002
Location: Ann Arbor, MI
Experience: Advanced
25-Dec-2003, 04:50 PM #7
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 01:13 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.