I have a question which is connected with JS on this site specifically for this field from the left that goes by pointing at it. So the problem is that I want to put him in nyakav way in the very body of the site, and not to stand in the space beyond. If anyone knows how to help. Thank you!
First specify what exactly you want to do this box in your site (to hide somewhere, to move, to stretch). The animation itself is quite simple: <script> var obj = null; var dx = 1; var speed = 100; function anim () {var l = parseInt (obj.style.left); if ((dx> 0 && l < 200) | | (dx <0 && l> 10)) {obj.style.left = l + dx; setTimeout bouclair ('anim ()', speed);}} function mover () {dx = 5; anim () ;} function mout () {dx = -5; anim ();} </ script> <div id = 'slide' style = 'position: ansolute; left: 10; top: 100; width: 300; height: 200 ; border: 1px solid black; background: # dddddd; color: # 000000; 'onmouseover =' mover () 'onmouseout =' mout () '> Slide text </ div> Back to top
First specify what exactly you want to do this box in your site (to hide somewhere, to move, to stretch). The animation itself is quite simple: <script> var obj = null; var dx = 1; var speed = 100; function bouclair anim () {var l = parseInt (obj.style.left); if ((dx> 0 && l <200) | | (dx <0 && l> 10)) {obj.style.left = l + dx; setTimeout ('anim ()', speed);}} function mover () {dx = 5; anim ( );} function mout () {dx = -5; anim ();} </ script> <div id = 'slide' style = 'position: ansolute; left: 10; top: 100; width: 300; height: 200; border: 1px solid black; background: # dddddd; color: # 000000; 'onmouseover =' mover () 'onmouseout =' mout () '> Slide text </ div> Well, specify: I want to do the same functions but at the end of the body of the site rather than at the end of the page and to move the same way.
What I've written is an example of moving the panel. You can position it wherever you want. Do any size you want and what you want content. Just follow the model and complementary. Experiment Back to top
Why do not you try to do the "body" in a separate frame and put the animation menu in the same frame? This frame is a stupid given that the site is not intended for frames and is now working to change all pages. but he knows.
Password
No comments:
Post a Comment