acidglitter Posted February 5, 2008 Share Posted February 5, 2008 I want to be able to have 2 images... One is a thumbnail, and when your mouse pointer hovers over it a larger image shows up in a little box. Like how the title tag works.. Does anyone know how I can do this? Link to comment https://forums.phpfreaks.com/topic/89605-preview-images-help/ Share on other sites More sharing options...
phpQuestioner Posted February 5, 2008 Share Posted February 5, 2008 <script language="javascript"> function displayIt(what) { document.getElementById(what).style.display="inline"; } function hideIt(what) { document.getElementById(what).style.display="none"; } </script> <img src="" width=50 height=50 onmouseover="displayIt('pic1')" onmouseout="hideIt('pic1')"> <div id="pic1" style="position:absolute;margin:0;background:#FFFFFF;border:solid 1px #000000;width:200px;height:200px;display:none"> <img src="" width=200 height=200> </div> Link to comment https://forums.phpfreaks.com/topic/89605-preview-images-help/#findComment-459194 Share on other sites More sharing options...
acidglitter Posted March 10, 2008 Author Share Posted March 10, 2008 Okay thanks so much! Link to comment https://forums.phpfreaks.com/topic/89605-preview-images-help/#findComment-488936 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.