Skerryman

Reply

Join Date: Nov 2006
Posts: 1
Reputation: John McGeary is an unknown quantity at this point 
Solved Threads: 0
John McGeary John McGeary is offline Offline
Newbie Poster

Skerryman

 
0
  #1
Nov 25th, 2006
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?
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 154
Reputation: katarey is an unknown quantity at this point 
Solved Threads: 20
katarey's Avatar
katarey katarey is offline Offline
Junior Poster

Re: Skerryman

 
0
  #2
Nov 28th, 2006
Originally Posted by John McGeary View 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?
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]
Freelance Web Designer & Developer
Http//www.Katarey.com
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC