michaelrosam Posted December 21, 2007 Share Posted December 21, 2007 Hi all, I have developed a site that allows a user to upload an image and then add hotspots to it to navigate them to another page. This works fine at the frontend because the hotspots are supposed to be invisible but i want the user to be able to see where the hotspots are in the admin. Basically i need to know how to draw an opaic rectangle on top of an image. Anyone know how i could go about this? Any help would be greatly appreciated. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/82696-creating-visable-hotspots/ Share on other sites More sharing options...
mbeals Posted December 21, 2007 Share Posted December 21, 2007 the only thing I can think of is a css layer. Set the boarder, fill and transparency. It's just going to be fun getting the positioning right....but depending on how you are working the hotspots, you may already have the position info stored somewhere. Quote Link to comment https://forums.phpfreaks.com/topic/82696-creating-visable-hotspots/#findComment-420603 Share on other sites More sharing options...
cooldude832 Posted December 21, 2007 Share Posted December 21, 2007 php isn't going to help you, Javascript is the idea here and then store the hot points in mysql. Quote Link to comment https://forums.phpfreaks.com/topic/82696-creating-visable-hotspots/#findComment-420606 Share on other sites More sharing options...
michaelrosam Posted December 21, 2007 Author Share Posted December 21, 2007 Thanks guys, any ideas on what the functions i would use are called so i can try find more information. I have tried everything i can think of but with no luck. Quote Link to comment https://forums.phpfreaks.com/topic/82696-creating-visable-hotspots/#findComment-420618 Share on other sites More sharing options...
chigley Posted December 21, 2007 Share Posted December 21, 2007 Make your own javascript function that takes coordinates and adds a hotspot Quote Link to comment https://forums.phpfreaks.com/topic/82696-creating-visable-hotspots/#findComment-420619 Share on other sites More sharing options...
michaelrosam Posted December 21, 2007 Author Share Posted December 21, 2007 lol ... my javascript isn't as good as it could be, any chance of some help to get me going in the right direction? Quote Link to comment https://forums.phpfreaks.com/topic/82696-creating-visable-hotspots/#findComment-420627 Share on other sites More sharing options...
chigley Posted December 21, 2007 Share Posted December 21, 2007 This is a PHP forum. It's not hard though. Just make a DIV. Move it by setting the position, top and left CSS values. Add an opacity. Change the background colour. Quote Link to comment https://forums.phpfreaks.com/topic/82696-creating-visable-hotspots/#findComment-420629 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.