Featured News
/** * hoverIntent is similar to jQuery's built-in "hover" function except that * instead of firing the onMouseOver event immediately, hoverIntent checks * to see if the user's mouse has slowed down (beneath the sensitivity * threshold) before firing the onMouseOver event. * * hoverIntent r5 // 2007.03.27 // jQuery 1.1.2+ * * * hoverIntent is currently available for use in all personal or commercial * projects under both MIT and GPL licenses. This means that you can choose * the license that best suits your project, and use it accordingly. * * // basic usage (just like .hover) receives onMouseOver and onMouseOut functions * $("ul li").hoverIntent( showNav , hideNav ); * * // advanced usage receives configuration object only * $("ul li").hoverIntent({ * sensitivity: 7, // number = sensitivity threshold (must be 1 or higher) * interval: 100, // number = milliseconds of polling interval * over: showNav, // function = onMouseOver callback (required) * timeout: 0, // number = milliseconds delay before onMouseOut function call * out: hideNav // function = onMouseOut callback (required) * }); * * @param f onMouseOver function || An object with configuration options * @param g onMouseOut function || Nothing (use configuration options object) * @author Brian Cherne */ (function($) { $.fn.hoverIntent = function(f,g) { // default configuration options var cfg = { sensitivity: 7, interval: 100, timeout: 0 }; // override configuration options with user supplied object cfg = $.extend(cfg, g ? { over: f, out: g } : f ); // instantiate variables // cX, cY = current X and Y position of mouse, updated by mousemove event // pX, pY = previous X and Y position of mouse, set by mouseover and polling interval var cX, cY, pX, pY; // A private function for getting mouse position var track = function(ev) { cX = ev.pageX; cY = ev.pageY; }; // A private function for comparing current and previous mouse position var compare = function(ev,ob) { ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); // compare mouse positions to see if they've crossed the threshold if ( ( Math.abs(pX-cX) + Math.abs(pY-cY) ) < cfg.sensitivity ) { $(ob).unbind("mousemove",track); // set hoverIntent state to true (so mouseOut can be called) ob.hoverIntent_s = 1; return cfg.over.apply(ob,[ev]); } else { // set previous coordinates for next time pX = cX; pY = cY; // use self-calling timeout, guarantees intervals are spaced out properly (avoids JavaScript timer bugs) ob.hoverIntent_t = setTimeout( function(){compare(ev, ob);} , cfg.interval ); } }; // A private function for delaying the mouseOut function var delay = function(ev,ob) { ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); ob.hoverIntent_s = 0; return cfg.out.apply(ob,[ev]); }; // A private function for handling mouse 'hovering' var handleHover = function(e) { // next three lines copied from jQuery.hover, ignore children onMouseOver/onMouseOut var p = (e.type == "mouseover" ? e.fromElement : e.toElement) || e.relatedTarget; while ( p && p != this ) { try { p = p.parentNode; } catch(e) { p = this; } } if ( p == this ) { return false; } // copy objects to be passed into t (required for event object to be passed in IE) var ev = jQuery.extend({},e); var ob = this; // cancel hoverIntent timer if it exists if (ob.hoverIntent_t) { ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); } // else e.type == "onmouseover" if (e.type == "mouseover") { // set "previous" X and Y position based on initial entry point pX = ev.pageX; pY = ev.pageY; // update "current" X and Y position based on mousemove $(ob).bind("mousemove",track); // start polling interval (self-calling timeout) to compare mouse coordinates over time if (ob.hoverIntent_s != 1) { ob.hoverIntent_t = setTimeout( function(){compare(ev,ob);} , cfg.interval );} // else e.type == "onmouseout" } else { // unbind expensive mousemove event $(ob).unbind("mousemove",track); // if hoverIntent state is true, then call the mouseOut function after the specified delay if (ob.hoverIntent_s == 1) { ob.hoverIntent_t = setTimeout( function(){delay(ev,ob);} , cfg.timeout );} } }; // bind the function to the two event listeners return this.mouseover(handleHover).mouseout(handleHover); }; })(jQuery);
CC #127: Week of March 27, 2005

CC #127: Week of March 27, 2005

Week of March 27, 2005

Snape: THOSE aren’t my clothes!
Kirk: …And this isn’t Burger King. Beam us up, Scotty.

‘Bones… I’m reading… high… levels… of teenage hormones!’

Harry realized with a growing sense of dread that Hogwarts had once again been invaded by a rival franchise.

Kirk: ‘I knew we should have turned left at Albuquerque.’

Ron: ‘When did the new uniforms come in? I want one!’

Kirk: Sulu… I want you… to find out… what’s… blocking my scanner…
Harry: *Whispers* Alright, who cast the Hesitation spell?

Dr. McCoy: You see, Jim, this is what happens when you put a budget on the transport repairs. JK Rowling is going to be furious.

‘According to these readings, we’ve just arrived on Earth in a fantasy story called Harry Potter,’ Kirk spoke.
‘But Jim, I’m a doctor, not a wizard!‘ McCoy said outraged.

‘If we go to Warp Factor 9, then we might manage the Thursday/Friday deadline and still get this in while it’s still March!’

McCoy: It’s Hogwarts, Jim, but not as we know it.
Kirk: Beam us up, Scotty!
Hermione: When are they going to read ‘Hogwarts: A History’?! Everyone knows you can’t beam up from inside the grounds!
-Mel B.

‘Scotty, about those new ‘Portkeys’ you wanted us to invest in…’

Star Trek XIX: The Search for the Half-Blood Prince:
In a ground-breaking decision, Gene Roddenberry sends the crew back in time to 20th Century Britain instead of 20th Century America, where they encounter a fandom that spawned a bigger geek following than their own

Harry: Ron, I think those first two guys only have three legs altogether!
Ron: What do you want me to do about it? I’m a wizard, not a doctor!

Harry: Ron, look! It’s Captain Kirk and Doctor McCoy!
Ron: They must be our new Defense Against Klingons and Romulans teachers.

McCoy: He’s dead, Jim.
Kirk: Who?
McCoy: Sirius Black.
Kirk: Curse you! I hadn’t finished Book Five yet!

Harry: I hate it when people make crossover fanfics! It’s almost like someone just continually Copy/Pastes stuff into our universe! Ruddy authors!

Kirk: Bones, my Tricorder is detecting numerous small creatures with pointy ears like Spock!
Dr. McCoy: Well, Jim, try to reach him on your Communicator!
Kirk: Kirk to Spock, Spock, do you read me?
Spock: All is well, Captain, the house elves are teaching me how to make Spotted Dick.
Sulu: Oh, noooo

Kirk: Doctor, it appears we have finally pinpointed the original beam-up location of those strange black robes…

Harry: I thought you told Errol to mail your card to enter for the prize, not to go get the Enterprise!
Ron: Bloody bird…

Even with the throw-back costumes from Star Trek, William Shatner could not get the sequel to Invasion Iowa, Invasion Hogwarts, to become popular.
-Joey S.

Harry: Okay, Ron, let’s grab them and change into their clothes. I can be Kirk, you can be Bones, and Hermione can be Sulu.
Ron: This isn’t going to end well – Hermione’s been practicing her Spock impersonation for years!

Harry: Ron, it could be worse. At least it isn’t Frodo, Gandalf, and Aragorn.
Ron: Give them time – there’s years of Maniacal Marches ahead and no one to hear us scream…

Kirk: Enterprise, three to beam up.
Scotty: Aren’t there four of you?
Kirk: I’m afraid our red-shirted friend won’t be returning. He tried to pick up what he thought was a large Tribble. It actually turned out to be something called a Hairy MacBoon. Bones couldn’t help him.
Bones: Damnit, Jim, I’m a doctor – not an executioner for the Committee for the Disposal of Dangerous Creatures!

Harry expected that McGonagall had transfigured more than just chess pieces, but nothing could have prepared him for stumbling across her stash of action figures, and realizing the terrible truth that their Transfiguration teacher was, indeed, a Trekkie.
-Miri G.

Harry: Just think, Ron. This is the last weird experience in March we’ll ever have to endure this year.
Ron: I’m not so sure, Harry. Eric might come up with an Atomic April…
Both: *Shudder*

Harry: They look strange, don’t they?
Ron: Like some extra-concentrated ghosts or something…
Harry: I was talking about the bellbottoms.

Harry: ‘Um, since when is it Parents’ Day for the Ravenclaws and Hufflepuffs?’

Our mission… to boldly go where no Muggle has gone before

Share on Facebook0Tweet about this on Twitter0Share on Reddit0Share on Google+0Share on StumbleUpon0Share on TumblrDigg thisEmail this to someone