valentin Posted July 16, 2006 Share Posted July 16, 2006 Can I write in PHP a function similar to onmouseover. For example I have an image and I want to show a small dialog box (in which I should be able to write "this is my image") whenever the mouse is over it. I have seen this done with javascript, but I don't know this script, yet. That is why I am asking you if it can be done only with PHP (HTML).Thank you in anticipation! Quote Link to comment https://forums.phpfreaks.com/topic/14775-can-i/ Share on other sites More sharing options...
Kurt Posted July 16, 2006 Share Posted July 16, 2006 I don't think it can be done with php... Quote Link to comment https://forums.phpfreaks.com/topic/14775-can-i/#findComment-58993 Share on other sites More sharing options...
AndyB Posted July 16, 2006 Share Posted July 16, 2006 I'm sure it can't be done. What you're looking for is browser behaviour that occurs on the client machine, whereas php executes only on the server and then sends the results to the browser.The standard html attributes title and alt work with images. Simple is best. Quote Link to comment https://forums.phpfreaks.com/topic/14775-can-i/#findComment-58997 Share on other sites More sharing options...
wildteen88 Posted July 16, 2006 Share Posted July 16, 2006 You wont be able to do this PHP alone, but with AJAX you will be able to. AJAX allows to to use Javascript with PHP. There are a few ajax tutorials over at http://www.ajaxfreaks.com to understand how to use AJAX Quote Link to comment https://forums.phpfreaks.com/topic/14775-can-i/#findComment-59001 Share on other sites More sharing options...
valentin Posted July 16, 2006 Author Share Posted July 16, 2006 Ok, thank you! I will ckeck this AJAX out! Quote Link to comment https://forums.phpfreaks.com/topic/14775-can-i/#findComment-59002 Share on other sites More sharing options...
cmgmyr Posted July 16, 2006 Share Posted July 16, 2006 You can also check out Sweet Titles at http://www.dustindiaz.com/download/ it basically takes whatever you have in the title atribute of a link or image and displays a nice little box.-Chris Quote Link to comment https://forums.phpfreaks.com/topic/14775-can-i/#findComment-59013 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.