memeuu 12 Posted February 26, 2016 Report Share Posted February 26, 2016 I know there are ways to add images to the ui html panel, but these are normally background images. Does anyone know how to add clickable images inside the ui html panel, so that if a user click on the image it will visit the URL in the user's default browser? *This is about adding clickable images inside the ui html panel, and not in the "load html", because that, I do know how to do already. Thank you for your support. Quote Link to post Share on other sites
darryl561 177 Posted February 26, 2016 Report Share Posted February 26, 2016 This will do it: ui html panel("<img onclick=\"ubot.runScript(\'open link()\')\" style=\"cursor:pointer;\" src=\"http://www.macrobusiness.com.au/wp-content/uploads/2011/08/HomerSimpsonDoh-200x200.png\"><!--1--> ",250) define open link { shell("cmd.exe /c start http://bing.com") } 1 Quote Link to post Share on other sites
memeuu 12 Posted February 26, 2016 Author Report Share Posted February 26, 2016 This will do it: ui html panel("<img onclick=\"ubot.runScript(\'open link()\')\" style=\"cursor:pointer;\" src=\"http://www.macrobusiness.com.au/wp-content/uploads/2011/08/HomerSimpsonDoh-200x200.png\"><!--1--> ",250) define open link { shell("cmd.exe /c start http://bing.com") } Hey Darryl! You're a genius!Thank you! Quote Link to post Share on other sites
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.