How to make a clickable coupon like this?

Discussion in 'HTML & Website Design' started by dumindushalika, Nov 20, 2012.

  1. #1
    Guys!
    I want to know that how to make a clickable link like in coupon sites as shown below.

    coupon.JPG

    How I do the HTML or Java coding for this in Wordpress (self hosted) and in Blogger?

    Just give the coding for a simple clickable one. Once a visitor clicked the coupon it should redirected to the link that I have added by opening a new tab.
    or let me know links to some tutorials.

    thanks.
     
    dumindushalika, Nov 20, 2012 IP
  2. Histopathlab

    Histopathlab Peon

    Messages:
    50
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Give the link to the coupon using the ref tag <a href="" > </a>,
     
    Histopathlab, Nov 20, 2012 IP
  3. aditd

    aditd Well-Known Member

    Messages:
    918
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    128
    Digital Goods:
    2
    #3
    From what I know those coupons are in flash ( not html or java ).
     
    aditd, Nov 28, 2012 IP
  4. hasanoben

    hasanoben Active Member

    Messages:
    128
    Likes Received:
    4
    Best Answers:
    1
    Trophy Points:
    90
    #4
    Wouldn't it be better if he used;
    <a href=" "> <img class="coupon" src=" " /> </a>

    And add some css code like;

    .coupon:hover
    {
    background:black;
    }
     
    hasanoben, Dec 2, 2012 IP
  5. Taswir

    Taswir Greenhorn

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #5
    Thanks for the css code bro. Not only adding coupon but also customizing hover color as you mentioned above should make the coupon more attractive.
     
    Taswir, May 6, 2013 IP
  6. Nosliw

    Nosliw Well-Known Member

    Messages:
    77
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    123
    #6
    Be sure to add:

    <a href="thetargetlink.html" target="_blank"> or it won't open in a new tab.
     
    Nosliw, May 7, 2013 IP