Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I make a link when hovered over it shows a picture

Status
Not open for further replies.

DougP

MIS
Dec 13, 1999
5,985
US
Can I make a link when hovered over it shows a picture?
I want to have several pictures hidden that show when the person hovers over the different links.

Any ideas
in HTML or Frontpage
VBscript if its needed or Flash


DougP, MCP, A+
 
Something like this?
Code:
<html>

<head>
<script language="javascript">
function getpic (whichone)
{
   switch (whichone)
   {
   case 1:
      document.picky.src = "images/pic1.bmp"
      break;
      
   case 2:
      document.picky.src = "images/pic2.jpg"
      break;
   }
}
</script>
</head>

<body>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
  <tr>
    <td width="23%">
    <ul>
      <li onmouseover="getpic(1)">pic1</li>
      <li onmouseover="getpic(2)">pic2</li>
    </ul>
    </td>
    <td width="77%">
    <img id="picky" border="0" ></td>
  </tr>
</table>

</body>

</html>
 
let me check it out...

DougP, MCP, A+
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top