Hjælp til at vise indhold
Hej Eksperter, jeg vil gerne have vist en stump video, i en popup box, men jeg kan ikke rigtigt finde ud af det, min kode er her:<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'/>
<title>ColorBox Examples</title>
<style>
body{font:12px/1.2 Verdana, sans-serif; padding:0 10px;}
a:link, a:visited{text-decoration:none; color:#416CE5; border-bottom:1px solid #416CE5;}
h2{font-size:13px; margin:15px 0 0 0;}
</style>
<link rel="stylesheet" href="colorbox.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="../colorbox/jquery.colorbox.js"></script>
<script>
$(document).ready(function(){
$.fn.colorbox({href:'.youtube', open:true});
<script type="text/javascript">
var closeok = false;
$(document).ready(function(){
$('#cboxClose').unbind('click').bind('click', function(){
if (closeok) {
$.colorbox.close();
} else {
alert('Se venligst videoen, tak!');
}
setTimeout( function(){closeok = true;}, 5000 );
$(document).delegate("#pressplay", "click", function (event) {
$().colorbox({inline:true, href:'#del'});
return false;
});
function popupCenter(url, width, height, name) {
var left = (screen.width/2)-(width/2);
var top = (screen.height/2)-(height/2);
return window.open(url, name, "menubar=no,toolbar=no,scrollbar=no,resizable=no,status=no,width="+width+",height="+height+",left="+left+",top="+top);
}
function dampbarn(){
countdown_toggle(1);
}
function popup(link){
sharepop = popupCenter(link,650,393,"sharepop");
countdown_toggle(7);
}
function countdown_toggle(secs){
setTimeout( function(){$('#pressplay').toggle()}, secs*1000 );
setTimeout( function(){$('#youtube').toggle()}, secs*1000 );
}
</script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-29308826-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</script>
</head>
<body>
<div id="advid">
Se venligst videoen.<br /><br />
<div style="width:400px;height:300px;text-align:center;">
<div id="gv_target_5496042613311605141347987"></div>
<script>!function(d, s, id) {
var js, pjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s);
js.id = id;
js.src = "http://player-services.video-loader.com/embed-code/index/find?placementVersionId=5496042613311605141347987";
pjs.parentNode.insertBefore(js, pjs);
}(document, 'script', 'gv_script_5496042613311605141347987');</script>
</div>
<b>Mange tak for hjælpen!</b>
</div>
</div>
</body>
</html>
Det er "advid" jeg gerne vil have vist i popup vinduet, istedet for det link, men jeg kan ikke løse problemet har forsøgt, men uden held.
Mvh. Jeppe S