Link to home
Start Free TrialLog in
Avatar of kepners
kepners

asked on

How do i make image clickable rather than Button

How do i make image clickable rather than Button
<script src="http://gettopup.com/releases/latest/top_up.js" type="text/javascript">
</script>
<div style="text-align: center">

</div>

<div id="examples">
<input class="tu_iframe_800x2000" href="http://astore.amazon.co.uk/ilike004-21" type="button" value="Amazon UK Store Click Here" /></div>

<div id="examples">
<input class="tu_iframe_800x2000" href="http://astore.amazon.com/daveknowsall-20" type="button" value="Amazon US Store Click Here" /></div>
<script type="text/javascript">
      TopUp.addPresets({
        "#examples a": {
          effect: "clip"
        },
        "#examples input": {
          shaded: 1, effect: "fade", overlayClose: 1
        }
      });
    
</script>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Ahem, leakim, that is a submit button! Also please look here: http://w3fools.com/

instead do

<input class="tu_iframe_800x2000" onclick="location='http://astore.amazon.co.uk/ilike004-21'" type="button" value="Amazon UK Store Click Here" />

Avatar of kepners
kepners

ASKER

cheers it worked but a little thought was needed to combine my code with that answer that was given. it was the technical answer but not the answer coded and finished
But the answer was wrong unless you used a form with an action too