If anybody knows the javascript which writes description to a specified area of webpage, of a link, as soon as we bring the mouse pointer over the link.
Thanks in advance
Ankou:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>JS Test</title>
<script type="text/javascript">
<!-- For Example 1 -->
function showDescription(ourDesc){
document.showDesc.fullDesc.value = ourDesc;
}
<!-- For Example 2 -->
function showDescriptionA(ourDesc){
document.getElementById('anotherFullDesc').innerHTML = ourDesc;
}
</script>
</head>
<body>
<!-- Example 1 -->
<form name="showDesc">
<textarea name="fullDesc"></textarea>
</form>
<a href="http://www.google.com" onmouseover="showDescription('Visit Google')"; onmouseout="showDescription('')" title="Google">Google</a>
<!-- Example 2 -->
<div id="anotherFullDesc"> </div>
<a href="http://www.google.com" onmouseover="showDescriptionA('Again Visit Google')"; onmouseout="showDescriptionA(' ')" title="Google">Google</a>
</body>
</html>
Not sure where you want to write a description to so here’s 2 (simple) examples. The first example writes to a textarea field and the second to a DIV using getElementById.
I GOT IT,Thanks alot for that…