4 Replies - 421 Views - Last Post: 30 September 2012 - 09:18 AM

#1 fabrivera99  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 17
  • Joined: 27-January 12

Change an <img/> image by click

Posted 29 September 2012 - 12:19 PM

I am trying to change an image by clicking a DIV tag i have try many things but aparently non of those work.
Thanks.
Is This A Good Question/Topic? 0
  • +

Replies To: Change an <img/> image by click

#2 laytonsdad  Icon User is offline

  • Cheese and Sprinkles
  • member icon

Reputation: 436
  • View blog
  • Posts: 1,845
  • Joined: 30-April 10

Re: Change an <img/> image by click

Posted 29 September 2012 - 12:49 PM

What have you tried? Have you tried Javascript or jquery? Post more information on what you have tried.
Was This Post Helpful? 0
  • +
  • -

#3 fabrivera99  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 17
  • Joined: 27-January 12

Re: Change an <img/> image by click

Posted 29 September 2012 - 02:06 PM

View Postlaytonsdad, on 29 September 2012 - 12:49 PM, said:

What have you tried? Have you tried Javascript or jquery? Post more information on what you have tried.

Javascript. and the .vb code of Vstudio.
Was This Post Helpful? 0
  • +
  • -

#4 laytonsdad  Icon User is offline

  • Cheese and Sprinkles
  • member icon

Reputation: 436
  • View blog
  • Posts: 1,845
  • Joined: 30-April 10

Re: Change an <img/> image by click

Posted 29 September 2012 - 03:57 PM

View Postfabrivera99, on 29 September 2012 - 02:06 PM, said:

View Postlaytonsdad, on 29 September 2012 - 12:49 PM, said:

What have you tried? Have you tried Javascript or jquery? Post more information on what you have tried.

Javascript. and the .vb code of Vstudio.


Please expand on that it's hard to help if you don't tell us what you have tried.

Javascript

Select the img tag by id
Bind a click event to the img element
Then when the img is clicked change the src attribute string

Hope this helps

This post has been edited by laytonsdad: 29 September 2012 - 04:03 PM

Was This Post Helpful? 0
  • +
  • -

#5 fabrivera99  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 17
  • Joined: 27-January 12

Re: Change an <img/> image by click

Posted 30 September 2012 - 09:18 AM

Its ok already solve it
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1