Pak.To
2009年9月10日 星期四
JavaScript: detect browser width and align layer to center
Equation:
var x = (document.body.clientWidth/2) - 364;
P.S. Banner Width (728)/ 2 = 364
Demo: http://ads.sina.com.hk/demo/200909/sample20090909_ET_exBanner4.html
沒有留言:
張貼留言
‹
›
首頁
查看網路版
沒有留言:
張貼留言