thefreebielife Posted July 19, 2007 Share Posted July 19, 2007 What is the name of the javascript code that when you mouse over an image, a description pops up? In my case, the description would be whats stored in a Database. What I mean is not a new window, but something that pop ups, then dispeers when you mouse off. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/60827-on-mouse-over-pop-up-php/ Share on other sites More sharing options...
roopurt18 Posted July 20, 2007 Share Posted July 20, 2007 You need to add a hidden span to the document containing the text you'd like to pop up. Use CSS to style the span so that it has an absolute position and give it a width, height, font-color, border, background color, etc. Then you add event handlers to the onmouseout and onmouseover for the image. The onmouseover handler should display and position the span; the onmouseout should hide the span. Quote Link to comment https://forums.phpfreaks.com/topic/60827-on-mouse-over-pop-up-php/#findComment-303673 Share on other sites More sharing options...
RichardRotterdam Posted July 21, 2007 Share Posted July 21, 2007 there are also plenty of cool javascript effect for what you want. Do a search on the word tooltip. Quote Link to comment https://forums.phpfreaks.com/topic/60827-on-mouse-over-pop-up-php/#findComment-303979 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.