Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-18-2004, 01:14 PM   PM User | #1
vikaspa
New Coder

 
Join Date: Oct 2002
Location: Mumbai,India
Posts: 67
Thanks: 0
Thanked 0 Times in 0 Posts
vikaspa is an unknown quantity at this point
Display details on mouse over

I have customer master

name and address is stored in name
When user wish to search a customer list is displayed on web page

I wish to display address of the customer on mouse over event

Can I do it using Java Script ?
Or
Suggest any other scipting language

Please infporm me

Thanking you in advance
With regards
Vikas AThavale
vikaspa is offline   Reply With Quote
Old 03-18-2004, 01:33 PM   PM User | #2
requestcode
Regular Coder

 
Join Date: Jun 2002
Posts: 626
Thanks: 0
Thanked 0 Times in 0 Posts
requestcode is an unknown quantity at this point
Using Tooltips might do the trick. Here is a link to an excellent one:
http://www.bosrup.com/web/overlib/

Also here:
http://www.javascriptkit.com/
http://www.dynamicdrive.com/
requestcode is offline   Reply With Quote
Old 03-18-2004, 01:53 PM   PM User | #3
Vladdy
Senior Coder

 
Join Date: Jun 2002
Location: Nashua, NH
Posts: 1,724
Thanks: 0
Thanked 0 Times in 0 Posts
Vladdy is an unknown quantity at this point
In this particular case, something like this would be a better choice:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb">
<head>
<title>Supplemental Info Popup</title>
<style type="text/css">
li
  { behavior: url('IEFixes.htc');
  }

body
  { font-family: Arial, sans-serif;
  }

li div
  { position: absolute;
    display: none;
    border: solid #000 1px;
    background: #fff;
    margin: 0.5em 0px 0px -2ex;
  }

li>div
  { margin: -0.5em 0px 0px 2ex;
  }

li:hover div, li.hover div
  { display: block;
  }
</style>
</head>

<body>
<ul>
  <li>Dave <div>Here is Dave's address</div></li>
  <li>Bob <div>Here is Bob's address</div></li>
</ul>
</body>
</html>
(see this page about: IEFixes.htc: www.vladdy.net/Demos/IEPseudoClassesFix.html )



If you do decide to go with title attribute, here is a script that degrades to the default presentation when javascript is unavailable and does not require polluting HTML with endless onmouseovers and onmouseouts:
www.klproductions.com/kltooltips.html
__________________
Vladdy | KL
"Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"
Vladdy is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 03:55 AM.


Advertisement
Log in to turn off these ads.