How is this done?

Status
Not open for further replies.

abhorrent

New member
Feb 6, 2008
783
13
0
Illinois
If you go here... (copy paste)
discountcodes.co.uk/Discount/Children/SafeTots/5-Safetots-Discount-Code-P891.html

and click on the "Use Coupn button" it opens an iframe to the merchant site plus a "pop-up" type box with the code (cookie stuffing?). When you click "Close" on the box, it redirects to the actual merchant site.

How is this achieved?
 


Look at the source.

Click on the button goes to another page on their site. They iframe the merchant and use a javascript function during the onLoad event to do the modal overlay.

HTML:
<body onload='GB_showCenter("Discount Code Information", "http://www.discountcodes.co.uk/jaxinside.php?discount_id=891", 400, 450); '>

<iframe frameborder="0" src="http://track.webgains.com/click.html?wglinkid=797&wgcampaignid=1139" width="100%" height="100%" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="no"></iframe>
 
Status
Not open for further replies.