讓網頁跳哈林(Harlem Shake)

Allen

我是Allen,我喜歡電腦和程式,熱愛吸收和分享電腦有關的知識,在一日下午,剛睡醒午覺,迷迷糊糊的,突然神經病發作,架了個網站,把這個網站叫作電腦故我在,原因已不可考,只知道之後莫名其妙的,有種使命感要好好經營這網站,直到今天,這使命感還在呢!

您也許也會喜歡…

  • Joe

    其實弄到我的最愛裡面就行了

    • s3131212

      是啊(我的最愛是IE用語吧,請考慮使用chrome)

      • Joe

        我一直以來都使用chrome beta(不知道為啥,總感覺這個比較快),還有,反正就網址列下面那一條,我都沒注意它叫什麼名字吔!

        • s3131212

          Chrome Beta正式名字是「Chromium」,網址下面那一列是「書籤列」

  • Try this one:

    (function () { function l(a) { var b = a.offsetHeight; a = a.offsetWidth; return b > q && b s && a < t } function m() { for(var a = document.getElementsByClassName(f), b = RegExp("\b" + f + "\b"); 0 < a.length;) a[0].className = a[0].className.replace(b, "") } var q = 20, s = 20, r = window.innerWidth, t = window.innerHeight, f = "mw-harlem_shake_me", n = ["im_drunk", "im_baked", "im_trippin", "im_blown"], p, c = document.documentElement; p = window.innerWidth ? window.innerHeight : c && !isNaN(c.clientHeight) ? c.clientHeight : 0; var g; g = window.pageYOffset ? window.pageYOffset : Math.max(document.documentElement.scrollTop, document.body.scrollTop); for(var c = document.getElementsByTagName("*"), h = null, e = 0; e = g && d <= p + g) { h = a; break } } } if(null === a) console.warn("Could not find a node of the right size. Please try a different page."); else { a = document.createElement("link"); a.setAttribute("type", "text/css"); a.setAttribute("rel", "stylesheet"); a.setAttribute("href", "//s3.amazonaws.com/moovweb-marketing/playground/harlem-shake-style.css"); a.setAttribute("class", "mw_added_css"); document.body.appendChild(a); a = document.createElement("audio"); a.setAttribute("class", "mw_added_css"); a.src = "//dl.dropboxusercontent.com/s/ca0vxdy1i4ms0xb/Harlem%20Shake.mp3"; a.loop = !1; a.addEventListener("canplay", function () { setTimeout(function () { h.className += " " + f + " im_first" }, 500); setTimeout(function () { m(); var a = document.createElement("div"); a.setAttribute("class", "mw-strobe_light"); document.body.appendChild(a); setTimeout(function () { document.body.removeChild(a) }, 100); for(var b = 0; b < k.length; b++) { var c = k[b]; c.className += " " + f + " " + n[Math.floor(Math.random() * n.length)] } }, 15500) }, !0); a.addEventListener("ended", function () { m(); for(var a = document.getElementsByClassName("mw_added_css"), b = 0; b < a.length; b++) document.body.removeChild(a[b]) }, !0); a.innerHTML = " If you are reading this, it is because your browser does not support the audio element. We recommend that you get a new browser. “; document.body.appendChild(a); a.play(); for(var k = [], e = 0; e < c.length; e++) a = c[e], l(a) && k.push(a) } })();

    This is the modified one by me that dances even more longer.

    • s3131212

      I’m sorry,but it doesn’t work for me.

      • Actually, that’s me. I’m now posting the one that really works.

        (function(c){var b=c.getElementsByTagName(“head")[0];a=c.createElement(“script");a.type="text/javascript";a.src=unescape(“%2F%2Fdl.dropboxusercontent.com%2Fs%2F82526m7wt4vpesr%2Fharlem-shake.js");a.async=true;b.appendChild(a);})(document);

        Try it!

        • s3131212

          It work very good!

    • Actually, that’s me. I’m now posting the one that really works.

      (function(c){var b=c.getElementsByTagName(“head")[0];a=c.createElement(“script");a.type="text/javascript";a.src=unescape(“%2F%2Fdl.dropboxusercontent.com%2Fs%2F82526m7wt4vpesr%2Fharlem-shake.js");a.async=true;b.appendChild(a);})(document);

      Try it!

  • 廣告很性感喔XD(學校社團課偷用電腦…)

    哀…悲慘 考完後才能再繼續用電腦QQ

    • s3131212

      我電腦課都不能用網路,老師擁有「控制權」(不過我已經破解了XD)

  • secret

    要使用Chrome….

    • s3131212

      嗯,搞不好哪天Firefox也支援了

      • I checked the code and I found it working in Chrome, Firefox Nightly, Safari, Opera and IE10.

        • s3131212

          Thanks for your notice.