Good day! Tell me please! Why can't I assign absolute positioning to a slide? For some reason, with absolute positioning, the first pictures and the rest of the pictures become visible. How can this be fixed?
<html> <head> <title>Слайд</title> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251"> <Link rel="stylesheet" type="text/css" href="css/slide.css"> <script type="text/javascript" src="jquery-1.10.2.min.js"></script> <script> window.onload = function() { start(0,0); } var slide = 5; var now_slide = 1; var speed = 3000; var width = 500; function slider(ml) { $("#slide").animate({marginLeft:ml+"px"},{queue: false},500); } function start(px,step) { if(step == 0) { slider(px); px = px - width; now_slide++; if(now_slide == slide)setTimeout("start("+px+",1);",speed); else setTimeout("start("+px+",0);",speed); } if(step == 1) { slider(px); px = px + width; now_slide--; if(now_slide == 1)setTimeout("start("+px+",0);",speed); else setTimeout("start("+px+",1);",speed); } } </script> </head> <body> <div style="height:334px;width:500px;border:1px solid #000;overflow:hidden;"> <table id="slide" cellpadding="0px" cellspacing="0px" border="0px"> <tr> <td width="500px"><img src="img/ime.jpg" border="0px"></td> <td width="500px"><img src="img/imr.jpg" border="0px"></td> <td width="500px"><img src="img/ims.jpg" border="0px"></td> <td width="500px"><img src="img/imt.jpg" border="0px"></td> <td width="500px"><img src="img/imv.jpg" border="0px"></td> </tr> </table> </div> </body> </html>