[WEB4LIB] Question on mouseovers
Ron Cripe
rcripe at dupagels.lib.il.us
Thu Jan 24 12:47:06 EST 2002
Try this:
<html>
<head>
<title>Changing text</title>
<script language="javascript">
<!--
var texts = new Array("This text changes when you place your mouse cursor
over the links above.","You are pointing to link 1","This is link 2","Link 3
has text to show too.")
function showtext (whichtext) {
document.sample.textbox.value = texts[whichtext];
}
//-->
</script>
</head>
<body onload="showtext('0');">
<form name="sample">
<p><a href="http://somewhere1.com" onmouseover="showtext('1')"
onmouseout="showtext('0')">Link 1</a></p>
<p><a href="http://somewhere2.com" onmouseover="showtext('2')"
onmouseout="showtext('0')">Link 2</a></p>
<p><a href="http://somewhere3.com" onmouseover="showtext('3')"
onmouseout="showtext('0')">Link 3</a></p>
<p><input type="text" name="textbox" size="80"></p>
</form>
</body>
</html>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ron Cripe
Systems Manager
DuPage Library System
127 South First Street
Geneva, IL 60134
Voice: 630-232-8457 x210
Fax: 630-232-0699
Email: rcripe at dupagels.lib.il.us
Website: http://www.dupagels.lib.il.us
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----Original Message-----
From: web4lib at webjunction.org
[mailto:web4lib at webjunction.org]On Behalf Of Drew, Bill
Sent: Thursday, January 24, 2002 10:22 AM
To: Multiple recipients of list
Subject: [WEB4LIB] Question on mouseovers
I have a question on using mouseovers. I would like to be able to provide
an area in part of the web page that changes when I move the mouse over a
link. I am not after using rollover graphics. I want to do text. How
would I do this using Dreamweaver?
Wilfred (Bill) Drew
Associate Librarian, Systems and Reference
SUNY Morrisville College Library
E-mail: mailto:drewwe at morrisville.edu
BillDrew.Net: http://billdrew.net/
Not Just Cows: http://people.morrisville.edu/~drewwe/njc/
Library: http://library.morrisville.edu
Wireless Librarian: http://people.morrisville.edu/~drewwe/wireless/
SUNY Morrisville College: America's Most Wired 2 Year College - 2001, 2000
More information about the Web4lib
mailing list