PDA

View Full Version : Text on another part of the screen


allyson
06-22-2002, 11:16 AM
Hi

Does anyone now of a script which creates a text message that can appear on the other side of the screen (ie, well away from the mouse cursor) as the cursor rolls over a certain link. I know there are scripts which make the text appear close to the cursor, and on the edge of a window. Have a look at www.moh.govt.nz for a very similar effect?

Can anyone help please?

bye
Allyson

x_goose_x
06-22-2002, 03:23 PM
<script>
function overout(divname,content) {
document.getElementById(divname).innerHTML = content;
}
</script>


<a href="whatever.htm" onmouseover="overout('side','This is message 1');" onmouseout="overout('side','');">One</a>
<a href="whatever.htm" onmouseover="overout('side','This is message 2');" onmouseout="overout('side','');">Two</a>

<div id="side" style="width:400px; height:200px;"></div>

allyson
06-23-2002, 07:46 AM
Hi

Thank-you for this text script. It works well with href=, but i want it to work with image mapping. Can it be modified to work with image mapping, like this:

<td width="50%"><!--webbot bot="ImageMap"
rectangle=" (245,29) (297, 130) frameset/index.html" rectangle=" (250,28) (281, 125) "
rectangle=" (69,83) (150, 214) frameset/setup.htm"
onmouseover="overout('side','Find out about the Panacea Arts Organisation. You can enter the Panacea Art Gallery from this link as well');"
onmouseout="overout('side','');" src="titlepalette.GIF" ; width="358" ; height="263" ; alt
; border="0" ; &gt;</td -->

premshree
06-24-2002, 05:55 AM
Here are some scripts you could use :

http://www.geocities.com/e_i_search/premshree/web-include/pub/scripts/JS/link_hint_scroller20.htm

http://www.geocities.com/e_i_search/premshree/web-include/pub/scripts/JS/dynamic-content20.htm

Are they any close to what you want?