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 Quote Link to comment Share on other sites More sharing options...
desibhupi Posted May 3, 2007 Author Share Posted May 3, 2007 sorry for bump. Anybody has idea ???? Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.