1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Need help to zoom the image

Discussion in 'HTML & Website Design' started by Davidpoul, Oct 2, 2012.

  1. #1
    I have the website of tattoo (www.tattoo-gallery-studio.com) and I want that if someone click on the image or bring mouse on image than the image size will increase by using the HTML code only.
     
    Davidpoul, Oct 2, 2012 IP
  2. Web Solutions

    Web Solutions Peon

    Messages:
    64
    Likes Received:
    1
    Best Answers:
    5
    Trophy Points:
    0
    #2
    HTML does not support anything like that. You should be looking at Javascript (including jQuery for the sake of simplicity).
     
    Web Solutions, Oct 2, 2012 IP
  3. Davidpoul

    Davidpoul Active Member

    Messages:
    50
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    51
    #3
    Are you sure because somebody told me about this. He told me that you can use html to zoom the size of image on mouse click. can we do such think in DHTML.
     
    Davidpoul, Oct 2, 2012 IP
  4. Zoti Media Group

    Zoti Media Group Notable Member

    Messages:
    1,598
    Likes Received:
    113
    Best Answers:
    2
    Trophy Points:
    265
    Digital Goods:
    2
    #4
    You have to google it. Try dynamicdrive there are some good javascripts to.
     
    Zoti Media Group, Oct 2, 2012 IP
  5. Web Solutions

    Web Solutions Peon

    Messages:
    64
    Likes Received:
    1
    Best Answers:
    5
    Trophy Points:
    0
    #5
    DHTML (if you know what it means) - yes, HTML - no.
     
    Web Solutions, Oct 2, 2012 IP
  6. Davidpoul

    Davidpoul Active Member

    Messages:
    50
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    51
    #6
    Thanks both of you for your help.
    First I try with DHTML else I go with javascripts.
     
    Davidpoul, Oct 2, 2012 IP
  7. Magic Toolbox

    Magic Toolbox Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Magic Toolbox, Oct 8, 2012 IP
  8. sigmainfo

    sigmainfo Active Member

    Messages:
    495
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    55
    #8
    You can not do that.
     
    sigmainfo, Oct 8, 2012 IP
  9. Davidpoul

    Davidpoul Active Member

    Messages:
    50
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    51
    #9
    I got the solution for this. in image tag we need to use Onclick attribute which help us to change the size of image. As

    <img src="image.jpg" onclick="this.width=500; this.height=500" ondblclick="this.width=147;this.height=173;" />
     
    Davidpoul, Mar 25, 2013 IP