2 Replies - 239 Views - Last Post: 31 January 2012 - 05:19 AM

Topic Sponsor:

#1 ethereal1m  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 2
  • View blog
  • Posts: 184
  • Joined: 30-June 09

Creating a pop up window that displays button selection with image

Posted 30 January 2012 - 06:16 AM

Dear all,
I want to create a pop up window that displays a radio buttons with image among them. Suppose that I want to create a node tree that has parents and child node to it. for example:
                   parent1
                    *    *
                   *      *
              child1      child2


above example displays parent1,child1, and child2 as nodes. The buttons will be put on the place of the nodes, hence there are 3 buttons in the example. The ** represent branches that connect parent1 with its children.

I cannot really picture how to implement this because when I implement buttons, I put them inside a form tag in my html code and never put any image file inside it. How do I achieve this?

Regards,
ethereal1m

Is This A Good Question/Topic? 0
  • +

Replies To: Creating a pop up window that displays button selection with image

#2 Dormilich  Icon User is online

  • 痛覚残留
  • member icon

Reputation: 2146
  • View blog
  • Posts: 5,429
  • Joined: 08-June 10

Re: Creating a pop up window that displays button selection with image

Posted 30 January 2012 - 10:23 AM

creating a click-button with an image is easy:
<button type="button">
  <img … >
</button>


if it’s just that it should be a clickable image (without the button style), you could even use a bare image and add an event listener to it.

and for a radio button with image just assign it as its label:
<label for="parent1">
  <img … >
</label>
<input type="radio" id="parent1" … >

Was This Post Helpful? 1
  • +
  • -

#3 ethereal1m  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 2
  • View blog
  • Posts: 184
  • Joined: 30-June 09

Re: Creating a pop up window that displays button selection with image

Posted 31 January 2012 - 05:19 AM

thank you...
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1