|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
sliding layers..please help
Dear all ...
HELP HELP HELP HELP I have written a code to slide the 2 layers on equally opposite direction. BUT The layers get apart in single stroke... I wanyt your help how do I slide them so that (both) the image can be seen going apart like curtain slowly... the movement should be like the images on both these layers are moving on opposite direction .. Find below code for sliding layers made by me.. Please help help <HTML> <BODY> <script> <!-- var a; var ar; var xpos ; var started=0; var Id=0; var Idr=0; var xposr ; var Id = 0; function movement(){ alert("asasds"); xpos = 10 ; xposr= 550 ; for ( var m = 0; m < 25 ; m ++) { xpos = xpos - m + 2; xposr =xposr + m * 2 ; setit( xpos,xposr); setTimeout("movement();",100); } } function setit(a,b) { document.all.contents.style.left=a; document.all.contentsr.style.left=b; } </script> <div id="contents" style="position:absolute; top:4px; left:106px; visibility:visible; background-color: #FFFFFF; layer-background-color: #FFFFFF; border: 1px none #000000; width: 446px; height: 490px;"> <TABLE width=510 height="509" cellpadding=2 cellspacing=2 > <TR> <TD> <div align="right"><img src="StrechBands/images/left-stand.jpg"> </div></TD> </TR> </TABLE> <div align="right"></div> </div> <div id="contentsr" style="position:absolute; top:0px; left:613px; visibility:visible; background-color: #FFFFFF; layer-background-color: #FFFFFF; border: 1px none #000000; width: 446px; height: 490px;"> <TABLE width=510 height="511" cellpadding=2 cellspacing=2 > <TR> <TD height="505"> <div align="left"><img src="StrechBands/images/right-stand.jpg"> </div></TD> </TR> </TABLE> <div align="right"></div> </div> <div id ="marker" style="position:absolute;top:11px;left:23px;background-color:white;layer-background-color:white"><a href="javascript:void(0)" onMouseOver="movement() ;"><font color=red>Menu</font></a></div> </body> </HTML> |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > sliding layers..please help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|