I’m currently making a website where the owners want background ads (a ad as background on the whole site).
It is quite easy to make in css:
body
{
background-image: url('ad.jpg');
repeat, color.....
}
But, they want it to be a link. It is a little bit harder so I need some help with that.
I have tried with something like this:
<a runat="server" href="http://adlink" id="BackgroundAdLink" style="position: fixed; display: block; left: 0; top: 0; z-index: -1; min-height: 100%; min-width: 100%;">
</a>
But it does not work properly. I want the solution to work in IE/FF/Safari etc. I use jQuery on the site, so I know a littlebit about it.
Best regards,
Lasse
I have some success using this method:
I know it does not have a ad layer, but that did only work properly in IE. The mouse could not click on the top of the page.
This code is not flawless either. You can’t click if you scroll down a page. Maybe something with the body tag not expanding downwards. I have body set to height: 100%; and min-height: 100%; but it did not work. Any suggestions?