944,123 Members | Top Members by Rank

Ad:
Nov 25th, 2006
0

Skerryman

Expand Post »
Hello all!

I am not a computer geek! I just need a little help with aonMouseOver project that I am working on. I want to place a discription of an image when the mouse is rolled over it in a text box alongside the image.Can anyone help?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
John McGeary is offline Offline
1 posts
since Nov 2006
Nov 28th, 2006
0

Re: Skerryman

Hello all!

I am not a computer geek! I just need a little help with aonMouseOver project that I am working on. I want to place a discription of an image when the mouse is rolled over it in a text box alongside the image.Can anyone help?
Hi there,

you can use this code,

in <Head>

[HTML]<script language="JavaScript" type="text/javascript">
/*<![CDATA[*/
function imgDiscriptionHide()
{
document.frm.textarea.value = " ";
}
function imgDiscriptionShow(discriptionImg)
{
document.frm.textarea.value = discriptionImg;
}
/*]]>*/
</script>
[/HTML]

in <Body>

[HTML]<table width="366" border="0" cellspacing="3" cellpadding="3">
<tr>
<td width="122">
<a href="#" onmouseover="imgDiscriptionShow('1Img');" onmouseout="imgDiscriptionHide();">
<img src="logo.jpg" alt="alt" width="122" height="124" border="0" />
</a>
</td>
<td width="122">
<a href="#" onmouseover="imgDiscriptionShow('2Img');" onmouseout="imgDiscriptionHide();">
<img src="logo.jpg" alt="alt" width="122" height="124" border="0" />
</a>
</td>
<td width="122">
<a href="#" onmouseover="imgDiscriptionShow('3Img');" onmouseout="imgDiscriptionHide();">
<img src="logo.jpg" alt="alt" width="122" height="124" border="0" />
</a>
</td>
</tr>
<tr>
<td colspan="3">
<form name="frm" action="" method="post">
<div align="center">
<textarea name="textarea" cols="40" rows="5"></textarea>
</div>
</form>
</td>
</tr>
</table>[/HTML]
Reputation Points: 39
Solved Threads: 23
Junior Poster
katarey is offline Offline
167 posts
since Jul 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Alignment of text within a textbox
Next Thread in HTML and CSS Forum Timeline: Urgent...Having problem with the following HTML code in IE7





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC