Opening something in the same page

Discussion in 'JavaScript' started by niki87, Nov 30, 2011.

  1. #1
    Hi everybody. I want to ask you something and to ask for help if it's possible. I have a project for the University. I have to make a simple site only with HTML, CSS and javaScript. I have 2 column layout. In the first column I putted my gallery but I want to ask if it is possible to make the following: when I click on the image in the gallery in the other column to be opened some text?

    Untitled.jpg

    I hope you understood me and sorry for my English.
     
    niki87, Nov 30, 2011 IP
  2. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #2
    Change the contents of a span that sits where you want the text to be in the <img> onClick().
     
    Rukbat, Dec 1, 2011 IP