Jump to content
UBot Underground

How To Add A Clickable Image In The Ui Html Panel


Recommended Posts

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.

Link to post
Share on other sites

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")
}
  • Like 1
Link to post
Share on other sites

 

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!

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...