Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-13-2012, 07:50 AM   PM User | #1
ThunderWaffe
New Coder

 
Join Date: Sep 2012
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
ThunderWaffe is an unknown quantity at this point
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
ThunderWaffe is offline   Reply With Quote
Old 10-13-2012, 10:00 PM   PM User | #2
sunfighter
Senior Coder

 
Join Date: Jan 2011
Location: Missouri
Posts: 2,387
Thanks: 18
Thanked 350 Times in 349 Posts
sunfighter is on a distinguished road
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
sunfighter is offline   Reply With Quote
Old 10-13-2012, 10:54 PM   PM User | #3
ThunderWaffe
New Coder

 
Join Date: Sep 2012
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
ThunderWaffe is an unknown quantity at this point
Yes, I have been looking at the modal window with a dialog box which is using JS.
ThunderWaffe is offline   Reply With Quote
Old 10-14-2012, 06:28 AM   PM User | #4
sunfighter
Senior Coder

 
Join Date: Jan 2011
Location: Missouri
Posts: 2,387
Thanks: 18
Thanked 350 Times in 349 Posts
sunfighter is on a distinguished road
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.
sunfighter is offline   Reply With Quote
Reply

Bookmarks

Tags
alert, button, img, onclick

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:54 AM.


Advertisement
Log in to turn off these ads.