xanadartz Posted May 31, 2009 Share Posted May 31, 2009 Don't beat me up too much, as I am brand new. We have added images in our index.php, which are called via the following command - all works fine and they link fine. The problem is that the mouse does not change to notify the users that these images are clickable. What are we missing here? Anything else, the mouse changes to the little pointing finger, but not on these calls. Example; <img onClick="javascript:goToMilitia();" src="http://xxx.xxxxxx.xxx/images/mmenu/button9.png" /><br /> Thanks in advance! Mike Link to comment https://forums.phpfreaks.com/topic/160391-beginner-question-on-javascript-link-in-php/ Share on other sites More sharing options...
Ken2k7 Posted May 31, 2009 Share Posted May 31, 2009 Brand new to what? PHP? HTML? CSS? Add a class to that image and use CSS. For instance, if the class is 'img_clickable' .img_clickable { cursor: pointer; } Link to comment https://forums.phpfreaks.com/topic/160391-beginner-question-on-javascript-link-in-php/#findComment-846385 Share on other sites More sharing options...
MainStWebGuy Posted June 1, 2009 Share Posted June 1, 2009 <img onClick="javascript:goToMilitia();" src="http://xxx.xxxxxx.xxx/images/mmenu/button9.png" /><br /> You could also use good ole link tag like this: <a onclick="javascript:goToMilitia();"><img src="pathToFile.png" /></a> Link to comment https://forums.phpfreaks.com/topic/160391-beginner-question-on-javascript-link-in-php/#findComment-846987 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.