Показать сообщение отдельно
  #4 (permalink)  
Старый 18.03.2010, 11:32
Интересующийся
Отправить личное сообщение для woo_hoo Посмотреть профиль Найти все сообщения от woo_hoo
 
Регистрация: 02.07.2008
Сообщений: 15

neurostep,

Сделал сделал все как в вашем примере, а картинка всеравно перед текстом маячит :-(

<html>
<head>  
<script type="text/JavaScript">
var x; 

function curvemove (xid, yexpr, xexpr, ztime){  
if (!xid) return null 
if (!yexpr) yexpr = "x" 
if (!xexpr) xexpr = "x" 
if (!ztime) ztime = 100 //интоевал времени, мс  
x=0           
setInterval(function() {move(xid, yexpr, xexpr)}, ztime)  
    }         
function move (xid, yexpr, xexpr) {  
x++;  
document.getElementById(xid).style.top = eval(yexpr);  
document.getElementById(xid).style.left = eval(xexpr);  
}  
window.onload = function() {  
curvemove("myimg", "100 + 50*Math.sin(0.03*x)", "50+x", 10);  
} 

</script>
</head>  
<body>  

<div style="z-index:4;" >
<IMG id="myimg" src = '1.jpg' width = 30% style = "position: absolute; z-index:4; "> </div>
<div style="z-index:1; " >
<center>
TEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXT<br>
TEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXT<br>
TEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXT<br>
TEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTT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