var top = 300; var left = 150; var width =560; var height = 263; if (window.screen) { top = (window.screen.width - width) / 2; left = (window.screen.height - height) / 2; } var str = "嘉義nice自行車假期"; showAdBox(width,height,top,left,'嘉義nice自行車假期',str);