ways to use banners with cache truned on
Posted: Sun Nov 23, 2008 4:22 am
Ok... the first is this... using an iframe... here is one example in here
One problem.... when I did this straight up... the page just loaded in there... in the iframe
Not to worries... try this (must have a frame work... in this example it's jQuery)
$(document).ready(function(){
$("[href*='index.php?mact=Banners']").attr('target','_blank');
});
Basically the idea is to target the banners... add the target path and bam all is better... that is client side fix... and in the page you'll have to have something like this for the banner content...
now This is the first way... I'll post the others in a bit...
hope this helps
jeremyBass
note: this method is the one I'm using in me sandbox... CorbensProducts.com
One problem.... when I did this straight up... the page just loaded in there... in the iframe
Not to worries... try this (must have a frame work... in this example it's jQuery)
$(document).ready(function(){
$("[href*='index.php?mact=Banners']").attr('target','_blank');
});
Basically the idea is to target the banners... add the target path and bam all is better... that is client side fix... and in the page you'll have to have something like this for the banner content...
Code: Select all
<!--CTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt-->{literal} <!-- body {margin:0;padding:0;text-decoration:none;} a img {border:0;text-decoration:none;} -->
<__script__ src="Scripts/jquery-1.2.6.min.js" type="text/javascript"></__script>
<__script__ src="Scripts/Master.1.0.0.11.08.js" type="text/javascript"></__script>
{/literal} {Banners category="SkyBOX"}
hope this helps
jeremyBass
note: this method is the one I'm using in me sandbox... CorbensProducts.com