js| Web page
There is no such experience, when you open a link, the browser window from small to large, rendering a gradual process. Below, we have to introduce the origin of this dynamic effect, we have to look carefully.
This program is based on the browser's available width and height, to calculate a central coordinate point, and then each time the window positioned to this point, and then calculate the corresponding window size, cycle 50 times, and eventually return to the browser to maximize the state.
Insert the following code between and and:
<script language= "JavaScript" >
<!--Begin
function expand () {
for (x = 0; x < × x + +) {
Window.moveto (Screen.availwidth *-(X-50)/screen.availheight *-(X-50)/100);
Defining a dynamic Window locator point
Window.resizeto (Screen.availwidth * x/50, Screen.availheight * x/50);
To define the dimensions of a dynamic window
}
Window.moveto (0,0);
Window.resizeto (Screen.availwidth, screen.availheight);
When the 50 changes are completed, the positioning window returns to (0,0), the size is maximized when the state.
}
End-->
</script>
<p>
<a href= "http://www.5dmedia.com" > click link to see Effect </a>
Here's a link to fill in your desired URL.
When we run, we can see the following effects:
At the beginning
At last