function baomingpage(){
document.getElementById('dd').style.display='none'
}
var index = Math.floor(Math.random() * 800);
var img_src = 'img/jftp.jpg';
var gaodu = Math.floor(Math.random() * 600);  
var img_w = '194';
var img_h = '123';
var img_alt = '';
document.write('<div id=dd style="Z-INDEX:4000; WIDTH: '+img_w+'px; POSITION: absolute; HEIGHT: '+img_h+'px"><a href="http://www.jsfdaedu.com.cn/info/link.aspx?id=5111" target="_blank"><img src="'+img_src+'" width="'+img_w+'" height="'+img_h+'" border="0" alt="'+img_alt+'" onMouseOver="pause_resume();" onMouseOut="pause_resume();" ></a></div> ');
var xPos = index;
var yPos = gaodu;
var step = 1; 
var delay = 30; 
var height = 0; 
var Hoffset = 0; 
var Woffset = 0; 
var yon = 0; 
var xon = 0; 
var pause = true; 
var interval; 
dd.style.top = yPos; 

function changePos() { 
width = document.body.clientWidth;
height = document.body.clientHeight; 
Hoffset = dd.offsetHeight; 
Woffset = dd.offsetWidth; 
dd.style.left = xPos + document.body.scrollLeft; 
dd.style.top = yPos + document.body.scrollTop; 
if (yon) { 
yPos = yPos + step; 
} 
else { 
yPos = yPos - step; 
} 
if (yPos < 0) { 
yon = 1; 
yPos = 0; 
} 
if (yPos >= (height - Hoffset)) { 
yon = 0; 
yPos = (height - Hoffset); 
} 
if (xon) { 
xPos = xPos + step; 
} 
else { 
xPos = xPos - step; 
} 
if (xPos < 0) { 
xon = 1; 
xPos = 0; 
} 
if (xPos >= (width - Woffset)) { 
xon = 0; 
xPos = (width - Woffset); 
} 
} 

function start_pp() { 
dd.visibility = "visible"; 
interval = setInterval('changePos()', delay); 
} 
function pause_resume() { 
if(pause) {clearInterval(interval);pause = false;} 
else {interval = setInterval('changePos()',delay);pause = true;} 
} 
start_pp(); 