Google-首页效果图-源代码
1、本小程序分三个小文件:index.js,main.htm,toolbar.png. main.htm里面有个id为tb的div,负责呈现那中很玄的效果 index.js主要负责计算展示图片的位置(坐标)和attachEvent toolbar.png是各种效果的组合.下面就把各个文件拿出来展示一下. 2、各个文件内容 1)main.htm < html > < head > < meta http-equiv ="content-type" content ="text/html; charset=UTF-8" > < title > google首页效果图 </ title > < script > google = new Object; </ script > </ head > < body bgcolor =#ffffff text =#000000 link =#0000cc vlink =#551a8b alink =#ff0000 topmargin =3 marginheight =3 > < center > < div style =" margin:100px 100px 30px 100px" >< img src ="images/logo.gif" border ="0" /></ div > < div id ="tb" ></ div > </