There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Solved: Mouse Over issue


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!

 
Thread Tools
johnnyburst79's Avatar
Computer Specs
Distinguished Member with 4,550 posts.
 
Join Date: Aug 2005
Location: Austin, TX
Experience: In what? ;)
31-Oct-2007, 05:45 PM #1
Solved: Mouse Over issue
I'm building a map and making each building on the map clickable and while that is done, I'm now putting in names to appear when the user mouses over.

This is what I have thus far:

<area shape="rect" coords="362,372,399,432" href="www.link.biz" target="_self" onMouseOver="Testing">Testing</a></p>

Somethings missing but I'm not sure what....any advice?
__________________
"No free man shall ever be debarred the use of arms."
-Thomas Jefferson
__________________

Please support me in my ride against Diabetes
metweek's Avatar
Computer Specs
Senior Member with 133 posts.
 
Join Date: Jun 2003
Location: Rochester, MN
31-Oct-2007, 08:43 PM #2
You need to create an event handler in javascript.

Code:
<script type="text/javascript">
function Testing(label)
{
   document.write(label);
}
</script>
Your link should also pass a parameter which in this case would be the text you want to display for the current object the mouse is over.
Code:
onmouseover="testing('label');"
You probably would want to add a handler for when the mouse is moved off of the object, which will set the label back to nothing.
Code:
onmouseover="testing('');"
MMJ's Avatar
MMJ MMJ is offline
Distinguished Member with 3,202 posts.
 
Join Date: Oct 2006
01-Nov-2007, 09:27 AM #3
If I understand you correctly you don't need to use JS for this. All you you need to do is add the title attribute.

title="this will appear on mouseover"
johnnyburst79's Avatar
Computer Specs
Distinguished Member with 4,550 posts.
 
Join Date: Aug 2005
Location: Austin, TX
Experience: In what? ;)
01-Nov-2007, 09:32 AM #4
Thanks!

Last edited by johnnyburst79 : 01-Nov-2007 09:54 AM.
MMJ's Avatar
MMJ MMJ is offline
Distinguished Member with 3,202 posts.
 
Join Date: Oct 2006
01-Nov-2007, 12:18 PM #5
no problem.

I guess you can mark this as solved.
johnnyburst79's Avatar
Computer Specs
Distinguished Member with 4,550 posts.
 
Join Date: Aug 2005
Location: Austin, TX
Experience: In what? ;)
01-Nov-2007, 02:09 PM #6
I will. Also, I tried out the MouseOver command and with "title", it was unnecessary.
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

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 09:45 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.