Debt Elimination | Wealth Building | Debt Freedom | Book
function init() {
if (Get_Cookie('mailsent') != '1')
setTimeout('flyover()', 5000);
}
var limitX = 200;
var limitY = 100;
// fly the dialog
function flyover() {
var dlg = document.getElementById('mydlg');
var offsetX = Math.round(Math.random() * 25);
var offsetY = Math.round(Math.random() * 15);
var left = parseInt(getPos(dlg.style.left));
var top = parseInt(getPos(dlg.style.top));
var ok = false;
if (left < limitX) { left += offsetX; dlg.style.left = left + 'px'; ok = true; }
if (top < limitY) { top += offsetY; dlg.style.top = top + 'px'; ok = true; }
if (ok) { setTimeout('flyover()', 20); }
}
// close the dialog
function closeDlg() {
var el = document.getElementById('mydlg');
if (el) el.parentNode.removeChild(el);
}
// extract number from position, ex. 400 from '400px'
function getPos(pos) {
for (var i=0; i
Close
if (document.all&&document.all.flashit){
var flashelement=document.all.flashit
if (flashelement.length==null)
flashelement[0]=document.all.flashit
function changecolor(which){
if (flashelement[which].style.color=='')
flashelement[which].style.color="red"
else
flashelement[which].style.color=""
}
if (flashelement.length==null)
setInterval("changecolor(0)",1000)
else
for (i=0;i