Home: http://www.maxss.netemail: Maxss.net@163.com
Everyone uses the timeline function in Dreamweaver or to make a very interesting animation effect, Dreamweaver will automatically generate a specific program code for the user. Do you want to achieve the achievement of animation? In fact, the principle is very simple, mainly using a timer function, below I demonstrate a simple animation production process, through the introduction, everyone can raise an anti-three, make more very dazzling animation effects. My personal homepage V3 animation effect is all written in JavaScript. The effect of this instance is to click the "Start Move" button on the web page, then the specified layer will move from left to right, during which you click the "Stop Move" button will stop moving.
Var movingid = null;
Var scrolling = false;
Function startmove ()
{
Var Left = evAl (Div1.Style.Left.Replace ("PX", ""));
IF (Left Div1.Style.Left = Left 1; Else Div1.Style.Left = 10; Movingid = setTimeout ("StartMove ()", 10); } Function stopmove () { Cleartimeout (MovingID); } script> hEAD>