safeframe
Version:
SafeFrame provides a consistent JS API to include 3rd party content
119 lines (108 loc) • 3.27 kB
HTML
<html>
<head>
<title>Safe Frame Sample 3.1.2.3 </title>
<script type="text/javascript" src="../src/js/lib/base.js"></script>
<script type="text/javascript" src="../src/js/host/host.js"></script>
<script type="text/javascript" src="../src/js/lib/boot.js"></script>
<script type="text/javascript">
var publisherSrc = "../src/js/host/host.js";
/**
* Initialize a new SafeFrames publisher configuration
*/
(function() {
var conf = new $sf.host.Config({
renderFile: "../src/html/r.html",
positions: {}
});
})();
</script>
</head>
<body>
<div id="top_leaderboard" style="height:90px;"></div>
<h1>Safe Frames Sibling Boot Sample</h1>
<h2>Spec sample 3.1.2.3</h2>
<p>
Sibling boot sample
</p>
<hr />
<table>
<tbody>
<tr>
<td valign='top'>
<!-- SafeFrames Inline Tag 1 -->
<div id='tgtLREC'>
<script type='text/x-safeframe' class='sf_data'>
{
id: "LREC",
src: "http://ad.yieldmanager.com/imp?Z=300x250&cb=98098&S=14800347&i=140509&ycg=m&yyob=1990&zip=&_salt=3618426084&B=10&u=http%3A%2F%2Fsports.yahoo.com%2F&r=0&&o=4&",
conf:
{
w: 300,
h: 250,
dest: "tgtLREC"
},
meta:
{
rmx:
{
sectionID: "14800347",
siteID: "140509"
}
}
}
</script>
<!-- b/c a "dest" tag exists (the overall div container) container tags will be rendered here -->
<!-- optional noscript section for fall back -->
<noscript>
<img src= "http://ad.yieldmanager.com/imp?Z=300x250&cb=98098&S=14800347&i=140509&ycg=m&yyob=1990&zip=&_salt=3618426084&B=10&u=http%3A%2F%2Fsports.yahoo.com%2F&r=0&&o=4&" width=300 height=250 />
</noscript>
<script type='text/javascript'>
(function() {
var w = window, s = w["$sf"], b = s && s.boot;
if (!s) s = {};
if (b && typeof b == "function") {
try { b(); } catch (e) { }
} else {
document.write("<scr","ipt type='text/javascript' src='" + publisherSrc + "'></scr","ipt>");
}
})();
</script>
<!-- Above script code will only load in publisher library one time, call boot for each tag -->
</div>
</td>
<td valign='top'>
<!-- SafeFrames Inline Tag 2 -->
<script type='text/x-safeframe' class='sf_data'>
{
id: "LREC2",
src: "http://ad.yieldmanager.com/imp?Z=300x250&cb=98098&S=14800347&i=140509&ycg=m&yyob=1990&zip=&_salt=3618426084&B=10&u=http%3A%2F%2Fsports.yahoo.com%2F&r=0&&o=4&",
conf:
{
w: 300,
h: 250
}
}
</script>
<!-- b/c a "dest" tag exists (the overall div container) container tags will be rendered here -->
<!-- optional noscript section for fall back -->
<noscript>
<img src= "http://ad.yieldmanager.com/imp?Z=300x250&cb=98098&S=14800347&i=140509&ycg=m&yyob=1990&zip=&_salt=3618426084&B=10&u=http%3A%2F%2Fsports.yahoo.com%2F&r=0&&o=4&" width=300 height=250 />
</noscript>
<script type='text/javascript'>
(function() {
var w = window, s = w["$sf"], b = s && s.boot;
if (!s) s = {};
if (b && typeof b == "function") {
try { b(); } catch (e) { }
} else {
document.write("<scr","ipt type='text/javascript' src='" + publisherSrc + "'></scr","ipt>");
}
})();
</script>
<!-- Above script code will only load in publisher library one time, call boot for each tag -->
</td>
</tr>
</tbody>
</table>
</body>
</html>