Você está na página 1de 1

<script>

function popcbox(tid, tkey) {


var baseurl = "http://www3.cbox.ws/box/?boxid=3340266&boxtag=7n59",
baseid = '3-3340266',
fontop = 0;
turl = '',
tid = tid || 0,
tkey = tkey || "",
html = [],
width = 280,
height = 430,
fheight = 111;

if (tid && tkey) {


turl = '&tid='+tid+'&tkey='+tkey;
}

var htmlform = '<frame src="'+baseurl+turl+'&sec=form" marginwidth="0"


marginheight="0" noresize="true" scrolling="auto"
name="cboxform'+baseid+'-'+tid+'">';
var htmlmain = '<frame src="'+baseurl+turl+'&sec=main" marginwidth="0"
marginheight="0" noresize="true" scrolling="no"
name="cboxmain'+baseid+'-'+tid+'">';
var prows = (fontop) ? (fheight+',*') : ('*,'+fheight);

html.push('<html><head><title>Cbox</title></head><frameset rows="'+prows+'"
frameborder="0" framespacing="0">');
html.push(fontop ? htmlform : htmlmain);
html.push(fontop ? htmlmain : htmlform);
html.push('</frameset><noframes>Frames required</noframes></html>');

var cboxwin =
window.open("","Cbox-"+baseid+"-"+tid,"width="+width+",height="+height+",toolbar=no
,scrollbars=no,status=no,resizable=yes");
cboxwin.document.open();
cboxwin.document.write(html.join(''));
try {
x = screen.width;
y = screen.height;
cboxwin.moveTo(Math.max((x - width)/2, 0), Math.max((y - height)/2,
0));
cboxwin.focus();
} catch (e) {};
}
</script>

<a href="JavaScript:popcbox('', '');">Ao Vivo</a>

Você também pode gostar