jacobs
Power Member
- Oct 10, 2008
- 530
- 153
I used ghostcpa to iframe a certain offer and im having a hard time positioning it in the center. Here's the code
<script type='text/javascript'>
different=1;
base=1;
function raf(arg) {
document.getElementById('bframe').style.left = '-501px';
document.getElementById('bframe').style.top = '-193px';
document.getElementById('bframe').style.height = '841px';
document.getElementById('bframe').style.width = '1663px';
document.getElementById('odiv').style.height = '330px';
document.getElementById('odiv').style.width = '702px';
}
</script>
</head>
<body>
<div style='overflow: hidden; width: 252px; height: 346px; position: relative;' id='odiv'>
<center>
<iframe id='bframe' onload='window.ghost1=function(arg){window.ghost2=arg;
if(different<4){
different++;
base=arg;
}else{if(window.ghost2==(base+1)){raf();}}
setTimeout("window.ghost1(history.length)",1050);}
setTimeout("window.ghost1(history.length)",530);' name='bframe' src='http://referer.us/http://www.facebook.com/' style='border: 0pt none ; left: -985px; top: -149px; position: absolute; width: 1680px; height: 878px;' scrolling='no'></iframe><center>
</div>
</body>
</html>
I replaced the link of the offer. I just want the iframed form to be centered.
+4 rep for anyone who can help me.
<script type='text/javascript'>
different=1;
base=1;
function raf(arg) {
document.getElementById('bframe').style.left = '-501px';
document.getElementById('bframe').style.top = '-193px';
document.getElementById('bframe').style.height = '841px';
document.getElementById('bframe').style.width = '1663px';
document.getElementById('odiv').style.height = '330px';
document.getElementById('odiv').style.width = '702px';
}
</script>
</head>
<body>
<div style='overflow: hidden; width: 252px; height: 346px; position: relative;' id='odiv'>
<center>
<iframe id='bframe' onload='window.ghost1=function(arg){window.ghost2=arg;
if(different<4){
different++;
base=arg;
}else{if(window.ghost2==(base+1)){raf();}}
setTimeout("window.ghost1(history.length)",1050);}
setTimeout("window.ghost1(history.length)",530);' name='bframe' src='http://referer.us/http://www.facebook.com/' style='border: 0pt none ; left: -985px; top: -149px; position: absolute; width: 1680px; height: 878px;' scrolling='no'></iframe><center>
</div>
</body>
</html>
I replaced the link of the offer. I just want the iframed form to be centered.
+4 rep for anyone who can help me.