Jump to content

pop out shows at the top


mariocesar

Recommended Posts

Hello, I have this script that pull info from a table pluss a link to an image allready in a folder, when you go over the image. it display the original image size, works fine the problem is that now I have more than 35 products and when the user roolls over the image the image displays ok but all the way to the top, so the user can not see the image, here is the script:

 

<div align="center"><img src="<?php echo $row['productimage']; ?>" width="60" height="60" border="0" onMouseOver="javascript: showDetails('<?php echo $row['productimage']; ?>');" onMouseOut="javascript: offDetails();">

  </div>
  <div align="left" style=" float:left; position:absolute; display:none; z-index:10; padding-left:11px; padding-top:10px; padding-right:11px; background-color:#DFE6E3;" id="det">

						<img src="" id="img5" name="ing5"  style="border:0px solid #666666; z-index:10;"></div>

 

here is the js:

 

<script language="javascript" type="text/javascript">
function showDetails(x)
{
	document.getElementById('det').style.display='';
	document.getElementById('img5').src=x;
}

function offDetails()
{
	document.getElementById('det').style.display='none';
}
</script>

 

How can I see the image rigth on the screen, thanks

Link to comment
https://forums.phpfreaks.com/topic/82558-pop-out-shows-at-the-top/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.