<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Google创意广告</title>
<style type="text/css">
#hplogo{margin:0;padding:0;position:relative}
#hplogo div{display:none;pointer-events:none;position:absolute}
</style>
<script type="text/javascript">
function gg() {
var d = [[307, 48, 88, 89], [307, 48, 89, 89], [307, 48, 91, 89], [305, 49, 93, 89], [305, 50, 93, 88], [305, 50, 93, 88], [306, 52, 92, 86], [305, 53, 93, 84], [305, 54, 94, 83], [306, 54, 93, 83], [307, 54, 92, 83], [307, 54, 92, 83], [308, 54, 90, 83], [308, 54, 90, 83], [306, 53, 91, 84], [306, 53, 91, 84], [308, 53, 90, 84], [308, 53, 90, 84], [305, 53, 92, 84], [305, 52, 92, 85], [306, 52, 91, 85], [308, 51, 88, 87, 1], [308, 50, 88, 88], [308, 49, 88, 88], [307, 49, 89, 88], [307, 50, 89, 87], [308, 51, 89, 86], [307, 54, 90, 83], [307, 57, 90, 80], [306, 58, 92, 79], [306, 58, 92, 79], [305, 60, 92, 77], [302, 61, 95, 76], [302, 63, 95, 74], [302, 51, 96, 86], [302, 66, 98, 71], [304, 67, 96, 69], [301, 63, 96, 74], [301, 58, 93, 79], [291, 52, 94, 85], [288, 50, 71, 88], [285, 43, 76, 95], [285, 37, 70, 101], [281, 29, 55, 109], [278, 20, 58, 119], [278, 20, 55, 119, 1], [277, 12, 121, 127], [271, 2, 122, 138], [267, 1, 126, 139], [264, 0, 136, 140], [260, 0, 141, 140], [255, 0, 148, 140], [252, 0, 151, 140], [249, 2, 121, 138], [247, 3, 123, 137], [246, 3, 123, 137], [246, 2, 124, 137], [258, 2, 112, 137], [263, 2, 106, 137], [263, 2, 106, 137], [262, 2, 103, 137], [260, 2, 104, 136], [260, 2, 104, 137, 1], [268, 2, 98, 137], [267, 2, 99, 137], [266, 2, 97, 137], [266, 3, 96, 136], [264, 3, 99, 136], [263, 3, 100, 136], [261, 3, 100, 136], [259, 2, 138, 137], [254, 2, 126, 137], [247, 2, 101, 136], [240, 2, 108, 136], [238, 1, 110, 137], [230, 1, 118, 138], [220, 15, 128, 124], [211, 18, 137, 121], [205, 43, 102, 96], [202, 45, 104, 93], [200, 38, 97, 101], [198, 38, 104, 101, 1], [197, 39, 107, 100], [197, 39, 112, 100], [213, 39, 94, 110], [212, 40, 95, 111], [211, 41, 97, 111], [209, 42, 99, 112], [209, 43, 98, 112], [213, 43, 87, 112], [213, 42, 83, 113], [211, 40, 86, 109], [211, 38, 86, 103], [211, 37, 88, 112], [211, 20, 186, 131], [213, 27, 167, 122], [212, 44, 87, 105], [210, 44, 88, 98], [195, 44, 106, 98], [189, 44, 110, 98], [182, 46, 117, 99], [173, 44, 118, 96, 1], [161, 43, 130, 99], [154, 42, 137, 97], [153, 42, 137, 97], [153, 42, 137, 97], [152, 41, 137, 98], [151, 41, 137, 97], [149, 41, 145, 97], [148, 25, 144, 114], [148, 13, 144, 126], [141, 12, 153, 127], [115, 11, 173, 128], [108, 7, 180, 133], [108, 4, 180, 136], [108, 3, 176, 137, 1], [108, 1, 161, 139], [105, 1, 235, 138], [103, 1, 295, 148], [103, 0, 277, 149], [108, 0, 234, 137], [101, 0, 232, 137], [99, 0, 135, 139], [95, 0, 244, 139], [81, 0, 152, 139], [69, 0, 164, 139, 1], [66, 0, 169, 139], [65, 0, 170, 139], [63, 0, 168, 138], [61, 0, 159, 138], [35, 0, 304, 139], [19, 0, 189, 140], [18, 11, 138, 129], [18, 11, 137, 129], [18, 11, 137, 128], [18, 6, 135, 133], [7, 4, 146, 136], [6, 4, 147, 136], [3, 4, 150, 136, 1], [3, 5, 150, 135], [3, 8, 150, 132], [4, 6, 394, 145], [12, 6, 388, 145], [11, 8, 389, 144], [11, 8, 387, 144], [11, 8, 387, 143, 1], [10, 8, 113, 131], [11, 8, 111, 131], [10, 9, 112, 130], [12, 9, 116, 130], [12, 9, 111, 130], [12, 9, 111, 130], [12, 9, 110, 131], [12, 34, 113, 106], [13, 35, 110, 104]];
var r = [[0, 0], [0, 88], [0, 177], [0, 268], [0, 361], [0, 454], [0, 547], [0, 639], [0, 732], [0, 826], [0, 919], [0, 1011], [0, 1103], [0, 1193], [0, 1283], [0, 1374], [0, 1465], [0, 1555], [0, 1645], [0, 1737], [0, 1829], [0, 1920], [0, 0], [89, 88], [89, 176], [89, 265], [89, 354], [89, 443], [89, 533], [89, 23], [89, 715], [89, 807], [89, 899], [89, 994], [89, 1089], [89, 1185], [89, 1283], [89, 1379], [89, 1475], [89, 1568], [89, 1662], [89, 1733], [89, 1809], [89, 1879], [89, 1934], [89, 1992], [89, 0], [208, 121], [208, 243], [208, 369], [208, 505], [208, 646], [208, 794], [208, 945], [208, 1066], [208, 1189], [208, 1312], [208, 1436], [208, 1548], [208, 1654], [208, 1760], [208, 1863], [208, 1967], [208, 0], [348, 98], [348, 197], [348, 294], [348, 390], [348, 489], [348, 589], [348, 689], [348, 827], [348, 953], [348, 1054], [348, 1162], [348, 1272], [348, 1390], [348, 1518], [348, 1655], [348, 1757], [348, 1861], [348, 1958], [348, 0], [486, 107], [486, 219], [486, 313], [486, 408], [486, 505], [486, 604], [486, 702], [486, 789], [486, 872], [486, 958], [486, 1044], [486, 1132], [486, 1318], [486, 1485], [486, 1572], [486, 1660], [486, 1766], [486, 1876], [486, 1993], [486, 0], [617, 130], [617, 267], [617, 404], [617, 541], [617, 678], [617, 815], [617, 960], [617, 1104], [617, 1248], [617, 1401], [617, 1574], [617, 1754], [617, 1934], [617, 0], [754, 161], [754, 396], [754, 691], [754, 968], [754, 1202], [754, 1434], [754, 1569], [754, 1813], [754, 1965], [754, 0], [903, 169], [903, 339], [903, 507], [903, 666], [903, 970], [903, 1159], [903, 1297], [903, 1434], [903, 1571], [903, 1706], [903, 1852], [903, 1999], [903, 0], [1043, 150], [1043, 300], [1043, 694], [1043, 1082], [1043, 1471], [1043, 1858], [1043, 0], [1188, 113], [1188, 224], [1188, 336], [1188, 452], [1188, 563], [1188, 674], [1188, 784], [1188, 897]];
var c = document.getElementById("hplogo");
for (var i = 0; i < d.length; i++) {
var s = document.createElement("div");
s.id = "hplogo" + i;
s.style.left = d[i][0]+"px";
s.style.top = d[i][1] + "px";
s.style.width = d[i][2] + "px";
s.style.height = d[i][3] + "px";
s.style.background = "url(http://www.google.com.hk/logos/2011/graham11-hp-sprite.png) no-repeat scroll -" + r[i][1] + "px -" + r[i][0] + "px transparent;";
c.appendChild(s);
}
go();
}
var i = 0;
function go() {
window.setInterval(google, 83);
}
function google() {
if (i <= 154) {
var logo = document.getElementById("hplogo" + i);
logo.style.display = 'block';
}
i++;
}
</script>
</head>
<body onload="gg()">
<div id="hplogo">
<img src="http://www.google.com.hk/logos/2011/graham11-hp-start.png" alt="现代舞先驱玛莎·葛兰姆 117 周年诞辰" border="0" title="现代舞先驱玛莎·葛兰姆 117 周年诞辰" />
</div>
</body>
</html>
你在设置background属性的时候多了一个分号。
s.style.background = "url(http://www.google.com.hk/logos/2011/graham11-hp-sprite.png) no-repeat scroll -" + r[i][1] + "px -" + r[i][0] + "px transparent;";