Tagged: javascript [x]
Orðavinda
Framlag mitt til keppninar Þú átt orðið var tölvuleikurinn Orðavinda. Hann byggir á þekktri hugmynd og reyndar langri sögu orðaleikja. Það kom mér skemmtilega á óvart að leikurinn hreppti fyrstu verðlaun í keppninni og að því er virðist af viðbrögðunum hefur mér tekist að stöðva skrifstofuvinnu á Íslandi. Leikurinn er búinn til í HTML og [...]
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 [...]
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 [...]
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 [...]
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 [...]
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 [...]
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/ [...]
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 [...]
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 [...]