Hi,
First, Happy New Year!
I find that people use coupons from my site while not clicking through my affiliate links.
I'm trying to get the click through rate up by having a coupon hidden requiring click action to reveal it. So far I have this:
script
<script type="text/javascript">
function toggle(obj) {
var obj=document.getElementById(obj);
if (obj.style.display == "block") obj.style.display = "none";
else obj.style.display = "block";
}
</script>
HTML code
<a href="javascript: void(0);" onClick="toggle('couponcode')">Click here to get the coupon code</a>
<div id="couponcode" style="display:none;"><strong>MYCOUPON</strong></div>
Now I would like to have one more thing happen onclick which is to use a link that will drop the cookie.
Those that used to do cookie stuffing would do something like this:
<img src="http://www.example.com/" width="1" height="1" />
Now, I want to do a similar thing, but only when somebody clicks to reveal the link (otherwise, it would be against the TOS). Would that be possible with the existing example?
Thanks