desibhupi Posted May 2, 2007 Share Posted May 2, 2007 I have made an Image Gallery with PHP/MySQL working fine. On the Gallery page i m showing Thumbnails, say, of 150x150. Now what i want to do is, When Visitor place his mouse over the image (which is set in a DIV without having ID, means its relative) Another div should be displaying the large Image under that DIV. for reference i just need some functionality as Template Monster has , how can i do that. its very critical. please help Thanks Bhupinder Link to comment https://forums.phpfreaks.com/topic/49618-solved-show-images-in-relative-div/ Share on other sites More sharing options...
desibhupi Posted May 3, 2007 Author Share Posted May 3, 2007 sorry for bump. Anybody has idea ???? Link to comment https://forums.phpfreaks.com/topic/49618-solved-show-images-in-relative-div/#findComment-244013 Share on other sites More sharing options...
emehrkay Posted May 3, 2007 Share Posted May 3, 2007 if the divs have no id, but are in some order, look at sibling nodes http://developer.mozilla.org/en/docs/DOM:element.nextSibling Link to comment https://forums.phpfreaks.com/topic/49618-solved-show-images-in-relative-div/#findComment-244083 Share on other sites More sharing options...
xenophobia Posted May 3, 2007 Share Posted May 3, 2007 onmouseover="someFunctionThatDisplayLargeImage('someParameterThatYouCanUseToDefineTheImageLocation');" put this on every div elements. So when user over the mouse on this element, it will do the function to display the large images. Link to comment https://forums.phpfreaks.com/topic/49618-solved-show-images-in-relative-div/#findComment-244097 Share on other sites More sharing options...
desibhupi Posted May 3, 2007 Author Share Posted May 3, 2007 if the divs have no id, but are in some order, look at sibling nodes http://developer.mozilla.org/en/docs/DOM:element.nextSibling I m not in trouble with DIV IDs. well i have found the solution btw. thanx you both for your support. Link to comment https://forums.phpfreaks.com/topic/49618-solved-show-images-in-relative-div/#findComment-244183 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.