Mouse over an hyper link : Hyper Link « HTML « JavaScript DHTML






Mouse over an hyper link

/*
Javascript Essentials
by Jason J. Manger

Publisher: Mcgraw-Hill Osborne Media; 

ISBN: 0078822343
*/
<!--
  Program 5-7
-->
<html>
<head>
<script language="JavaScript">
<!--
  function clearField() {
    document.forms[0].book_text.value =
      "Book details will appear here<p>.";
  }
  var book1txt =
    "Title  : ESSENTIAL JAVA*:\r\n" +
    "Author : Jason Manger\r\n" +
    "ISBN   : 0-07-709292-9\r\n\r\n" +
    "A book on two of the newest technologies to hit the Web, " +
    "the Java and JavaScript programming languages. A guide " +
    "for novices and experts alike.";
  var book2txt =
    "Title  : NETSCAPE NAVIGATOR:\r\n" +
    "Author : Jason Manger\r\n" +
    "ISBN   : 0-07-709190-6\r\n\r\n" +
    "An in-depth guide to the de facto Web-browser, Netscape " +
    "Navigator. This book also covers HTML to level 3.0, and " +
    "includes details of Navigator's news and mail " +
    "facilities, as well as much more besides.";
  var book3txt =
    "Title  : HITCH HIKING THRU CYBERSPACE: WITH NETSCAPE" +
    "NAVIGATOR\r\n" +
    "Author : Jason Manger\r\n" +
    "ISBN   : 0-07-709786-6\r\n\r\n" +
    "A CD-ROM that comes in two parts. Part I arrives with a " +
    "copy of Netscape Navigator and includes a hypertexted " +
    "version of Jason's books: WWW Mosaic and More, Netscape " +
    "Navigator and The Essential Internet Information Guide. " +
    "Part II contains everything except the Navigator " +
    "software. No less than 10 top tools are included, " +
    "including Netmanage Chameleon TCP/IP software for " +
    "Internet access. ";
  var book4txt =
    "Title  : THE WORLD-WIDE WEB, MOSAIC AND MORE\r\n"
    "Author : Jason Manger\r\n" +
    "ISBN   : 0-07-705170-6\r\n\r\n" +
    "A guide to the popular Mosaic browser and detailed " +
    "information on CGI (Common Gateway Interface) scripting, " +
    "all in one book. CGI allows HTML to interface to a back " +
    "end database, providing interactivity within a hypertext " +
    "document.";
//-->
</script>
</head>
<body bgcolor="Silver" link="Yellow" text="White
      onLoad="clearField()">
<img align="left" src="mgh5.gif" hspace=12 border=0>
<basefont size=4>
<img width=13 src="rb.gif">&nbsp;Please move your mouse over a
book cover
to see details for that particular book.<p>
<center>
<table cellspacing=20 border=0>
<tr valign="bottom" align="middle">
<td>
<a href="essjava.htm"
onMouseOver = "document.forms[0].book_text.value = book1txt">
<img border=1 src="essjav1.gif">
</a>
</td>
<td>
<a href="netnav.htm"
onMouseOver = "document.forms[0].book_text.value = book2txt">
<img border=1 src="netnav.gif">
</a>
</td>
<td>
<a href="hhcs.htm"
onMouseOver = "document.forms[0].book_text.value = book3txt">
<img border=1 src="hhcs.gif">
</a>
</td>
<td>
<a href="www.htm"
onMouseOver = "document.forms[0].book_text.value = book4txt">
<img border=1 src="swwwm&m.gif">
</a>
</td>
</tr>
</table>
</center>
<center>
<form>
<textarea rows=8 cols=70 name="book_text" wrap="soft">
</textarea>
</form>
</center>
<img src="logo.gif" align="right">
</body>
</html>


           
       








Related examples in the same category

1.Specifies the output device for the object
2.Link Methods
3.Link 'href' Example
4.Link 'hreflang' Example
5.Link color
6.Link protocol
7.Link 'port'
8.Link 'title' Example
9.Link type
10.Link host
11.Link host name
12.'aLink' Example
13.'hideFocus' Example
14.'vLink' Example
15.'vlinkColor' Example
16.'alinkColor' Example
17.Inserts a link on a text, a picture, a button or a dynamic picture
18.Get link infomation in a paragraph
19.Validate Link
20.Output link
21.Illustrate how a URL can be referenced
22.Call function in hyper link
23.Change Link Colors
24.Passing Form Value In URL
25.Using JavaScript linkTo Entities
26.Prevent the browser from following the link
27.Redirect user depending on browser
28.Location: Send the client to a new location (URL/page)
29.URL of a document
30.Change URL and text of a hyperlink
31.Change the target attribute of a link
32.Link focus() and blur()
33.View and change the action URL of a form
34.List the links in a page