Click to See Complete Forum and Search --> : Expalin this code???


shanuragu
09-19-2003, 02:37 AM
Hi

When mouseover a hyper link I just want to dispaly a paragraph of messages like tool tip. I tried to use the following code.
I am getting "Object expected" error message.
What are these dlc,dcc,drc ??

<tr>
<td width="123"><p align="center"><strong><small><small><font face="Verdana">
<a href="#" onmouseout="nd(); return true;"
onmouseover="drc('Message here'); return true;">Dr.
S K Khanna</a></font></small></small></strong></td>
<td width="319"><p align="center"><strong><small><small><font face="Verdana"><a href="#"
onmouseout="nd(); return true;"
onmouseover="dcc('Message here'); return true;">Mr. John Suri</a></font></small></small></strong></td>
<td width="158"><p align="center"><strong><small><small><font face="Verdana"><a href="#"
onmouseout="nd(); return true;"
onmouseover="dlc('Message here'); return true;">Shri.
Vinod Goel</a></font></small></small></strong></td>
</tr>


shara

Fang
09-19-2003, 05:10 AM
Javascript functions - these show the tooltip messages

shanuragu
09-19-2003, 09:03 AM
What is wrong with this code??
Why am I getting Object expected error??? Can any brief me about these functions???

shara

Fang
09-19-2003, 10:23 AM
You haven't go all the code you need to make the tooltips work.
Read up on Javascript here (http://www.w3schools.com/js/default.asp)

spykemitchell
09-19-2003, 12:54 PM
The code you have is the basic on mouseover functions,

The code is obviously in 2 parts a Javascript (it should be in these brackets <script></script>) and the links like you have.

I suggest you go back to where you got the script and re download the script.

The functions dlc etc. refer to javascript locations as fang said, they bascically are saying to the javascript "i have clicked this now do this" it is like a link inside the page...

hope that made sense...

Spyke.

Aronya1
09-19-2003, 03:48 PM
If you did a copy & paste, go back to where you got your code & look for the other part. It's likely to be found in the <head> section.