Borgar.net

— Jump to the navigation index

Tagged: javascript

CSS :target

jQuery (or Sizzle) supports :target in browsers where it runs querySelectorAll to handle the work. In older browsers, it doesn’t offer fallback support. I guess that this is simply because :target is such an uncommon selector?
I have no idea why you would want to use it, but because I have this selector extension and nowhere [...]

Published: 5. ágú 2009.

Sōkoban

A few days without internet do strange things to a computer addict. In my case I start to rummage frenetically though old projects to see if there is anything I can finish, polish, or do something with that doesn’t require internet access.

So I found my old Sokoban game. Originally a Windows application, I though it [...]

Published: 13. júl 2009.

Node members or Node attributes

Having given it a bit of thought I think that this problem stems from a slight confusion as to how DOM nodes’ attributes work.
You would expect javascript code to execute when you apply it to an attribute:
someNode.onclick = “alert(‘foo’);”;
And you expect this to work because this is exactly what you do in your HTML. And [...]

Published: 29. maí 2008.

What is the column index of a table cell

A peculiar but fascinating problem presented itself to me today. It was one of those; “oh yeah, I’d better look at that” kind of problems that you think you’ll solve in a few minutes but eventually grow to take hours.
Given a cell in a HTML table, what is it’s column index?
This seems like it’s simple. [...]

Published: 27. feb 2008.

Safe fun with Object.prototype.

Lets look at two “shortcommings” of Javascript in todays browsers. The first is that you should stay away from Object.prototype (so as not to break other peoples programs). The second is that Javascript only has a single thread. We can fix the first using the advantage of the second.
My idea is that if we have [...]

Published: 11. nóv 2007.

Lesefni handa upprennandi vefurum

Læra eins og margföldunartöfluna og þjóðsönginn:

HTTP://www.w3.org/Protocols/
HTTP://www.w3.org/MarkUp/#recommendations
HTTP://www.w3.org/Style/CSS/#specs

Möst lesning:

HTTP://www.thinkvitamin.com/features/design/stand-up-for-your-rights
HTTP://webtypography.net/
HTTP://www.alistapart.com/
HTTP://diveintoaccessibility.org/
HTTP://joeclark.org/book/sashay/serialization/
HTTP://javascript.crockford.com/
HTTP://mar.anomy.net/entry/2006/10/04/09.44.54/

Fylgjast með:

HTTP://blogs.msdn.com/ie/default.aspx
HTTP://yuiblog.com/blog
HTTP://bitesizestandards.com/
HTTP://www.webstandards.org/
HTTP://web-graphics.com/
HTTP://www.quirksmode.org/bugreports/
HTTP://webkit.org/blog/

Gúrú:

HTTP://ln.hixie.ch/
HTTP://simonwillison.net/
HTTP://meyerweb.com/
HTTP://dean.edwards.name/weblog/
HTTP://mezzoblue.com/
HTTP://www.zeldman.com/
HTTP://molly.com/
HTTP://www.quirksmode.org/blog/
HTTP://www.shauninman.com/
HTTP://www.andybudd.com/
HTTP://snook.ca/jonathan/
HTTP://www.stopdesign.com/
HTTP://annevankesteren.nl/
HTTP://mar.anomy.net/
HTTP://blog.fawny.org/
HTTP://diveintomark.org/
HTTP://www.crockford.com/

CSS display:

HTTP://cssvault.com/
HTTP://www.stylegala.com/
HTTP://www.cssbeauty.com/

Tæki og tól:

HTTP://dean.edwards.name/packer/
HTTP://jslint.com/
HTTP://infohound.net/tidy/
HTTP://getfirebug.com/
HTTP://riddle.pl/emcalc/
HTTP://dojotoolkit.org/~david/recss.html

Gott reference:

HTTP://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference
HTTP://developer.mozilla.org/en/docs/Gecko_DOM_Reference

Published: 12. feb 2007.

Javascript vs. Demoscene

What you are looking at is a javascript remake of a demoscreen from the world famous Union Demo (1989). The screen was originally designed and programed by the TNT-Crew. It firmly remains one of my all time favorite screens from my all time favorite demo.
I built it yesterday as a test. The Starballs screen was [...]

Published: 9. des 2006.

Browser detection in Javascript

I have a need for a good, but not precise, browser sniffing script for purposes of web visitor logging. I have hacked together such a script. I would be very grateful if my visitors would tell me if the blue box is telling them the truth (javascript needed):

It’s been confirmed to work on:

Mac : [...]

Published: 17. okt 2006.