Quote Rencis (
)
Es nevaru atvērt spoileri :( un tik pie kodu kalāt.
Varat kāds atvērt spoileri un ierakstīt kodu ? Please :(
Šito esmu ilgi meklēji beidzot atradu bet nevaru dabut :( :D
Lūdzu ::)
Code
$(document).ready(function() {
$('.gourl').bind('click', function() {
var viewportwidth;
var viewportheight;
// the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight
if (typeof window.innerWidth != 'undefined') {
viewportwidth = window.innerWidth,
viewportheight = window.innerHeight
}
// IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)
else if (typeof document.documentElement != 'undefined'
&& typeof document.documentElement.clientWidth !=
'undefined' && document.documentElement.clientWidth != 0) {
viewportwidth = document.documentElement.clientWidth,
viewportheight = document.documentElement.clientHeight
}
// older versions of IE
else {
viewportwidth = document.getElementsByTagName('body')[0].clientWidth,
viewportheight = document.getElementsByTagName('body')[0].clientHeight
}
vlink = $(this).attr("href")
var yh = viewportheight - 20 - 42;
if (yh > 750) {
yw = 750
}
;
var yw = Math.round((yh - 30) * 1.7777777);
var uh = yh + 44;
var uw = yw + 24;
if (uw > viewportwidth - 40) {
var yw = viewportwidth - 40 - 22;
if (yw > 1280) {
yw = 1280
}
;
var yh = Math.round((yw / 1.7777777) + 30);
var uh = yh + 44;
var uw = yw + 24;
}
new _uWnd('', 'Play', uw, uh, {autosize:0,hideonmove:0,fadetype:0,modal:1,resize:0,fadeclosetype:0,closeonesc:1,align:'left'}, '<iframe width="' + yw + '" height="' + yh + '" src="' + vlink + '?autoplay=1" frameborder="0" allowfullscreen></iframe>');
return false;
});
});