Posted by: deandre81 Oct 18 2006, 07:08 PM
Hi,
I am looking to add a code using IFRAME as done here.....
CODE
<tr><td width=100% align=center><IFRAME FRAMEBORDER=0 SCROLLING=NO MARGINHEIGHT=0 MARGINWIDTH=0 WIDTH=728 HEIGHT=90 SRC="http://rad.msn.com/ADSAdClient31.dll?GetAd?PG=HOTJ43?TF=_NEW?AP=1390?SC=LG?LOC=I?ID=000600008D58DF99?UC=127" tabindex="-1"></IFRAME></td></tr>
i got this from msn.com
the adds come from another link...(the source).. i'm just not sure how this works
it supports all the formats....flash, images...ads.
plus this one seems to work only on page refresh, i want one that changes with a time frame...
Thanks
Wayne
My site is, www.dadli-scene.com
Posted by: Peter1968 Oct 19 2006, 01:48 AM
You're going to have issues with this as most browsers will not load anything in a [i]frame that doesn't originate from the parent document site, especially scripts. Cross-domain scripting exploits are the reason why.
Does the ad really need to be in a frame?
Posted by: Christian J Oct 19 2006, 05:26 AM
QUOTE(Peter1968 @ Oct 19 2006, 08:48 AM)
You're going to have issues with this as most browsers will not load anything in a [i]frame that doesn't originate from the parent document site, especially scripts. Cross-domain scripting exploits are the reason why.
But google ads (like on this site) use iframe ads? Or does the fact that their IFRAME elements are javascript-created circumvent the cross-domain content blocking?
Posted by: Peter1968 Oct 19 2006, 05:08 PM
Don't know. But it's not supposed to work.
Posted by: deandre81 Oct 19 2006, 11:13 PM
To Peter1968
No it does not have to be in an iframe
i just want a way to get it to work for all browsers
i have one already setup on my site, but it only works in explorer..
here's it
CODE
<script language="javascript">
// SPECIFY THE NAME OF BANNER HERE
// REMEMBER THAT NAME OF VARIABLE AND ARGUMENT PASSED SHOULD BE SAME
// HERE IT IS 'banner1'
banner1 = new Banner('banner1');
// ADD THE BANNER HERE
// FIRST ARGUMENT : "FLASH" OR "IMAGE"
// SECONG ARGUMENT: PATH OF THE FILE
// THIRD ARGUMENT : DURATION IN SECONDS
// FOURTH ARGUMENT : HEIGHT
// FIFTH ARGUMENT : WIDTH
// SISTH ARGUMENT: HYPERLINK
banner1.add("FLASH", "banners/coming soon.swf", 5, 120, 700,"http://www.dadli-scene.com/personals1");
banner1.add("FLASH", "banners/dadlibanner.swf", 5, 120, 700,"home.htm");
banner1.add("FLASH", "banners/have remixes for locals to hear.swf", 10, 120, 700,"http://www.dadli-scene.com/music");
banner1.add("FLASH", "banners/submit your videos.swf", 5, 120, 700,"http://www.dadli-scene.com/videos");
// START THE BANNER
document.write(banner1);
banner1.start();
</script>
Posted by: Peter1968 Oct 20 2006, 01:19 AM
My guess is that the script contains IE only stuff.
BTW, say hi to big Curtly for me there in Antigua!