‘Web Development’ Archive

How to hide Facebook’s Like Box social plugin border May 26, 2010 1 Comment

I was trying to make my own rounded-colored-cooler-looking border for the Like Box social plugin, and Facebook’s default border was getting in the way. That’s what I eventually used: <div id="likebox" style="background-image: url(../images/likebg.png); width: 286px; height: 156px; padding: 7px;"> <div id="likebox-frame" style="width: 286px; height: 156px; overflow: hidden;"> <iframe style=" width: 288px; height: 155px; margin: -1px [...]

Internet Explorer “Unspecified Error” with jQuery and getBoundingClientRect May 8, 2010 No Comments

I’ve been getting “Unspecified Error” errors from Internet Explorer with some jQuery code. I traced the cause to jQuery’s “getBoundingClientRect” which comes from a call to $(…).offset({top: X, left: T}). After looking around in some forums/blogs, it seems the error is coming from some handling of internet explorer with offsetParent in some specific cases. to [...]

jQuery shake() function December 29, 2009 No Comments

I needed a quick function for jQuery to shake an absolute or static positioned (can be easily modified to support other positions too, but it doesn’t at the moment) element up&down that isn’t depended on jQuery UI (I’m using to shake simplemodal‘s container). This is what I came up with that: 1 2 3 4 [...]

CSSJanus: Convert LTR CSS to RTL December 25, 2009 No Comments

I found CSSJanus couple days ago, an online tool that attempts to change CSS from left-to-right to right-to-left, by changing properties like text-align, float and direction from “left” to “right”, “ltr” to “rtl” (and vice-versa), dealing with CSS properties that has “something: top left bottom right” (like margin: 10px 5px 1px 3px), and also some [...]

How to create a link that doesn’t send a referrer header December 25, 2009 1 Comment

I was looking for a way to create a link that won’t send a referrer header at all, for my torrentz.com greasemonkey script (some trackers didn’t like other sites linking directly to their .torrent file), and came up with that (with the help of a Christmas present from anonymous). It should work on all browsers [...]