Få reklame til at poppe op, på hjemmeside.
Hjælp til at tilføje et reklame link som popper up!Hej Eksperter.
Jeg søger hjælp til at få tilføjet et link(et reklame link) som skal poppe op, når man klikker på play knappen. Den skal stadig redirecte til share siden på facebook, og sammentidig skal der poppe et link op til en reklame. Har desværre ikke fundet en annoncør endnu, men bare lav det link hvor jeg skal paste mit reklame link.
KILDE KODE:
<?php
/*TITLE*/ $title="Watch the biggest fail ever in Beauty Contest";
/*DESCRIPTION*/ $desc="Watch the biggest fail ever in Beauty Contest, it is very great!!!";
/*IMAGE*/ $image="http://3.bp.blogspot.com/ (...)
/*AMUNG CODE*/ $amung="";
/*WEBSITE*/ $website="http://www.ronaldinho.webege.com";
/*VIDEO*/ $video="video.php";
/*ADMIN*/ $admin="";
?>
<html xmlns:fb="http://www.facebook.com/ (...) xmlns:og="http://opengraphprotocol.org/ (...) html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ (...) xmlns="http://www.w3.org/ (...)
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href='http://facebook.com/ (...) rel='shortcut icon' type='image/x-icon'/>
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<meta property="og:title" content="<?php echo $title;?>" />
<meta property="og:description" content="<?php echo $desc; ?>" />
<meta property="og:url" content="<?php echo $website;?>"/>
<meta property="og:image" content="<?php echo $image;?>" />
<meta property='fb:admins' content="<?php echo $admin;?>" />
<style>@charset "iso-8859-1";
/* CSS Document */
#navbar-iframe {
height:0px;
visibility:hidden;
display:none;
n.g.l
}
html{font-size:12px;font-family:Arial, Helvetica, sans-serif}
#topbar{display:block;margin-bottom:5px;background-color:#F1F1F1;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;padding:5px}
#topbar a{text-decoration:none;font-weight:700;color:#356AA0;margin-right:5px}
#topbar img{border:0;vertical-align:baseline;margin-right:5px}
#menu{float:right;width:300px;margin-right:5px}
#menu .bloc{border:1px #CCC solid;display:block;margin-bottom:5px}
#menu .bloc h2{display:block;font-size:12px;background-color:#F1F1F1;text-transform:uppercase;color:#333;border-bottom:1px #CCC solid;margin:0 0 5px;padding:5px}
#menu .bloc a{display:block;text-decoration:none;color:#356AA0;font-weight:700;margin:5px}
#menu .bloc a img{border:0;vertical-align:baseline;margin-right:20px}
#page{float:none;margin-top:50px;width:700px;margin-left:5px;min-height:600px}
.video{border:1px #CCC solid;width:160px;height:160px;float:none;margin:0 5px 5px 0}
.video .titre{display:block;color:#356AA0;text-decoration:none;font-weight:700;text-align:center;padding:5px}
.video .apercu{border:0;display:block;margin:5px auto auto}
.video p1{display:block;height:16px;padding-left:30px;background-repeat:no-repeat;background-position:5px 5px;padding-top:5px;color:#333;font-weight:700;margin:0 10px 0 5px}
.video p2{width:360px;text-align:left;color:#333;margin:5px}
.video img{width:96px;height:76px}
#page_par_page{border:1px #CCC solid;display:block;margin-bottom:5px;text-align:center;margin-right:6px;padding:10px}
#page_par_page a{text-decoration:none;padding-left:10px;padding-right:10px;color:#333}
#lecteur{display:block;width:640px;height:385px;margin:auto}
#footer{display:block;background-position:5px 5px;padding-left:5px;background-repeat:no-repeat;border-top:1px #CCC dotted}
#footer a{color:#356AA0;font-weight:700}
#videocontent{width:750px;margin-bottom:10px;float:none;text-align:justify}
#h1{margin-top:10px;margin-bottom:20px;padding-bottom:5px;font-size:12px;float:none;margin-left:0;padding-left:10px;width:500px;color:#999}
#content{width:750px}
#left{width:750px;float:none;text-align:left}
body{background:#FFF;font-family:"lucida grande",tahoma,verdana,arial,sans-serif;margin:0}
#header2{ background: url(http://i.imgur.com/ (...)) top center no-repeat #3b5998; width:100%; height:40px;}
#youtube{margin-top:20px}
#topbar a:hover,#menu .bloc a:hover,.video .titre:hover,#footer a:hover{color:#D22D4F}
.facebook,.alert{display:block;width:500px;margin:10px 10px auto auto}
</style>
<script src="http://connect.facebook.net/ (...)
<script src="http://static.ak.fbcdn.net/ (...) type="text/javascript"></script>
<title><?php echo $title;?></title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<script type='text/javascript'>
var statement = 0;
var _try = 0;
function playtheMovie() {
if (statement > 0) {
if (this._try == 1) { playlavideo(); }
else { alert('You must share the video to play it.'); }
}
if (statement == 0) {
document.getElementById('restrictions').style.visibility='visible';
statement++;
}
}
</script>
<script type='text/javascript'>
function ouvre(fichier) {
// ff=window.open(fichier,"n.g.lpopup","width=355px,height=205px,left=450%,ngltop=180%")
ff=window.open(fichier,"popup","width=400px,height=250px,left=450%,top=180%")
setTimeout('this._try = 1;', 4000);
}
function playMovie(_try) {
if (this._try == 1) { playlavideo(); }
else { alert('You must share the video to play.'); }
}
function playlavideo(type) {
{
window.location = "<?php echo $video;?>";
}
}
</script>
</head>
<body>
<div id="header2">
</div>
<div id="youtube">
<span style="display:block; width:750px; margin:auto;"><h2><?php echo $title;?></h2></span><br />
<div style="display:block; width:750px; margin:auto;"><div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-like" data-href="<?php echo $website;?>" data-send="false" data-width="450" data-show-faces="false"></div>
<br /><br />
<div id="videocontent">
<div id="jwplayer1"></div>
<div id="lavideo">
<div align="left" style="background-image:url(http://i.imgur.com/ (...));width:560px;height:315px;overflow:hidden;" id="fontvideo">
<h1 id="h1"><?php echo $title;?></h1>
<div style="width:500px;height:200px;margin-left:20px;color:#FFF;">
<br /><br />
<div id="restrictions" style="visibility:hidden;">
<a href="#" onClick="ouvre('http://www.facebook.com/ (...) echo $website;?>');return false">
<img src="http://img841.imageshack.us/ (...) width="500" height="145" border="0"></a>
</div>
</div>
<div style="float:left;width:100px;margin-top:10px;margin-left:7px;"><a href="#" onClick="playtheMovie();">
<img src="http://i.imgur.com/ (...) width="72" height="46" border="0"></a></div>
</div>
</div>
</div>
</div>
<div class="facebook">
<div id="fb-root">
</div>
</div>
<br />
<div style="display:block; width:750px; margin:auto; position:relative; right:5px; top:10px;">
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-comments" data-href="<?php echo $website;?>" data-num-posts="6" canpost="true" data-width="640"></div>
</div>
</div>
<div style="clear:both;">
</div>
<div id="footer">
<div style="opacity:0;filter:alpha(opacity=0);">
</div>
</div>
<div style="visibility:hidden;">
<script src="http://widgets.amung.us/ (...) type="text/javascript" width="0px">
</script><script type="text/javascript"> WAU_small('<?php echo $amung ?>')</script>
</div>
</html>
Håber i kan hjælpe.
Mvh. Jeppe S