Half on-topic, half off-topic: WebGL Lemmings port: http://webglgaming.com/lemmings/index.php
Actually, that is a copy of DHTML lemmings from before the age of WebGL, Ajax, CSS sprites (alistapart only came up with an article about CSS sprites a year later), html5, or any of that fancy modern stuff kids these days play with. The original is at http://www.elizium.nu/scripts/lemmings/ . And background info / blogpost, written seven years later by the author: http://crisp.tweakblogs.net/blog/3881/dhtml-lemmings-…
Lemmings 404 page
71–78 of 78 posts
Re: Lemmings 404 page
#72I've said it before, but: What's the deal with 404 pages? If the content has moved, I should get a 30x redirect. If the server has a way of guessing what I wanted, I should get 300 Multiple Choices. If the server knows that what I'm looking for isn't anywhere, I should get 410 Gone. 404 is supposed to mean that the server has no idea what I'm looking for, no idea how to find it, no idea where to look. In that case, I…
Re: Lemmings 404 page
#73Save them all! (firefox only) MutationObserver(function(event) { $(event[0].addedNodes[0]).mouseover(); }).observe($('body')[0], {childList: true}); $('img').mouseover();
I just resized my browser to be about an inch wide, and then they all fall in a straight line past the cursor. I guess you could call that a workaround :-)
Re: Lemmings 404 page
#74var ims = document.getElementsByTagName('img'); var event = document.createEvent("MouseEvent"); event.initMouseEvent("mouseover", true, true, window); for(var i=0;i :(
Re: Lemmings 404 page
#75Earlier quoted context omitted.
You're spot on that's the cleanest conceptual way to do it in jQuery. In more recent versions of jQuery, though, $.live is technically deprecated (1.7+). The equivalent new syntax is: $(document).on('mouseover', 'img', function() {});
That creates a event handler for all images on mouseover, even images that haven't been created yet. You want to trigger the mouseover event, not bind to it. And you want to trigger it after the image has been inserted. Unfortunately there's no jquery event for dom insertions. But on firefox you can use a MutationObserver: MutationObserver(function(event) { $(event[0].addedNodes[0]).mouseover(); }).observe($('body')[…
Re: Lemmings 404 page
#76I've said it before, but: What's the deal with 404 pages? If the content has moved, I should get a 30x redirect. If the server has a way of guessing what I wanted, I should get 300 Multiple Choices. If the server knows that what I'm looking for isn't anywhere, I should get 410 Gone. 404 is supposed to mean that the server has no idea what I'm looking for, no idea how to find it, no idea where to look. In that case, I…
You're heartless, those poor lemmings were plummeting to their deaths!
Re: Lemmings 404 page
#77I've said it before, but: What's the deal with 404 pages? If the content has moved, I should get a 30x redirect. If the server has a way of guessing what I wanted, I should get 300 Multiple Choices. If the server knows that what I'm looking for isn't anywhere, I should get 410 Gone. 404 is supposed to mean that the server has no idea what I'm looking for, no idea how to find it, no idea where to look. In that case, I…
You're heartless, those poor lemmings were plummeting to their deaths!
Re: Lemmings 404 page
#78Save them all! (firefox only) MutationObserver(function(event) { $(event[0].addedNodes[0]).mouseover(); }).observe($('body')[0], {childList: true}); $('img').mouseover();
$('img').trigger('mouseenter')