Mouse over an hyper link : JavaScript DHTML examples (example source code) » HTML » Hyper Link

JavaScript DHTML
C++
Java Products
Java Articles
JavaScript DHTML Home  »   HTML   » [  Hyper Link  ]   
 



Mouse over an hyper link

Please note that some example is only working under IE or Firefox.

/*
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.  Inserts a link on a text, a picture, a button or a dynamic picture
2.  Get link infomation in a paragraph
3.  Validate Link
4.  Output link
5.  Illustrate how a URL can be referenced
6.  Call function in hyper link
7.  Change Link Colors
8.  Passing Form Value In URL
9.  Using JavaScript linkTo Entities
10.  Prevent the browser from following the link
11.  Redirect user depending on browser
12.  Location: Send the client to a new location (URL/page)
13.  URL of a document
14.  Change URL and text of a hyperlink
15.  Change the target attribute of a link
16.  Link focus() and blur()
17.  View and change the action URL of a form
18.  List the links in a page








Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.