Half a day ago, I suddenly had a very strong feeling while showering, so I tweeted this:
How I Code HTML on Seasons:<em>Spring</em> <big>Summer</big> <strong>Autumn</strong> <div style="visibility:hidden"><del>Winter</del></div>.
Now I came up with this (wait for 10 seconds, or reload page to see it again):
Four Seasons: Spring, Summer, Autumn, Winter.
<div id="seasons" style="background-color:#444;border:2px solid #888;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;padding:5px;">Four Seasons: <em style="color:#4c4">Spring</em>, <big style="color:#f00">Summer</big>, <strong style="color:#ea4">Autumn</strong>, <span style="color:#cee">Winter</span>.</div> <script type="text/javascript" src="http://www.google.com/jsapi"></script> <script type="text/javascript"> google.load('jquery', '1'); function kill_slowly() { var t = $('#seasons span del').text(); if (t.length > 0) $('#seasons span del').text(t.substring(0, t.length - 1)); if ($('#seasons span del').text()) setTimeout(kill_slowly, 1000) else { $('#seasons span').remove(); $('#seasons').html($('#seasons').html() .replace(/Four/, '<em>Three</em>') .replace(/Spring/, 'Spring (Something new!)') .replace(/Summer/, 'Summer (Hot, Beach, Bikinis! XD)') .replace(/Autumn/, 'Autumn (Falling leaves, beautiful!)') .replace(/, \./, '. <span style="color:#f00;font-style:italic;">Awesome!</span>')); } } google.setOnLoadCallback(function(){ setTimeout(function() { $('#seasons span').wrapInner('<del></del>').append(' (Freaking f**king cold!)'); setTimeout(function() { $('#seasons span').fadeOut(6000); kill_slowly(); }, 1000); }, 10000); }); </script>
Really don’t like Winter much.
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.