Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Sep 2012
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question IMG onClick alert - Box customisation

    Hey guys. I'm trying to create something so when you click an image it opens a popup type thing. I'm trying to do this on the Enjin html editor so it has to be done with html not php.

    I want to do it the same way as

    Code:
        <img src="http://i46.tinypic.com/4r5p2u.png" onClick="alert('Welcome to the Groan Zone!')">
    but I would like to change the layout of the box. An example is from here:

    http://legendarypvp.com/shop

    Click on one of the images (example: "PVP iron", "PVP redstone" etc.) and that is what I would like done. I know that that is used with the advanced plan but I know it is possible without having to pay for it and use html.

    I would love if you could help.
    Thanks,
    Thunder

  • #2
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,710
    Thanks
    25
    Thanked 660 Times in 659 Posts
    The rule: when you click something you have to use javascript. Do you know that language? If not start here:http://www.w3schools.com/js/default.asp

  • #3
    New Coder
    Join Date
    Sep 2012
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yes, I have been looking at the modal window with a dialog box which is using JS.

  • #4
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,710
    Thanks
    25
    Thanked 660 Times in 659 Posts
    Quote Originally Posted by sunfighter View Post
    The rule: when you click something you have to use javascript. Do you know that language? If not start here:http://www.w3schools.com/js/default.asp
    I only said that because you are in the HTML & CSS section. And it looks like you have found that a modal is needed and not an alert box.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •