2
Contributors
4
Replies
5
Views
8 Years
Discussion Span
Last Post by coollife
0
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>lance</title>
</head>
<body>
<script type="text/javascript">        
function show(_this) 
{
    document.getElementById("enlarge_images").innerHTML = "<img src='" + _this.src + "'+'width=416 height=188' >";
}
function hide(_this) 
{
    document.getElementById("enlarge_images").innerHTML = "";
}
function move_layer(event)
{
 event = event || window.event;
 enlarge_images.style.left=event.clientX+document.body.scrollLeft+10;
 enlarge_images.style.top=event.clientY+document.body.scrollTop+10;
}
document.onmousemove = move_layer;
</script>
    <form id="form2" runat="server">
        <div align="center" style="overfow: hidden; width: 100px; height: 100px">

            <img src="image/gdse.gif" width="208" height="70" border="2" onmouseover="show(this)" onmouseout="hide(this)" />

        </div>
        <div id="enlarge_images" style="position: absolute; z-index:2"></div>
    </form>
</body>
</html>

Edited by Reverend Jim: Fixed formatting

0

madam did u checked the link of the website i have given.

Will ur code displays the information regarding the image in another small window

0

Madam what the code is doing is just displaying the image on mouse over the image, i mean its not displaying anything just showing the image again . please help me in displaying some text in the pop up image . Thank u

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.