|
this.blur() defunct... :( |
|
|
|
|
Written by Administrator
|
|
Friday, 18 May 2007 00:00 |
|
Today I came across some css code that annoyed me. Apparently
a:focus{
outline: none;
}
will do the same (and neater of course) job as my uber tasty this.blur() script. I've not tested it yet mind, but it should work. Grr, hours wasted and it was in css the whole time! edit - Finally (like 4 months later lol) had a chance to test this... definitely works in Firefox, not checked IE yet though. |
|
Last Updated ( Monday, 29 October 2007 21:13 )
|
|
|
Written by Administrator
|
|
Tuesday, 17 April 2007 00:00 |
|
You know those dotted boxes that appear round links when you click on them? Bloody irritating aren't they. For quite some time I've been adding a javascript function to every link... which frankly is damn annoying, because I often forget. So with my extremely limited Javascripting skills, and a little help from the guys at codingforums.com, I came up with the following script that just needs including in the header.
|
|
Last Updated ( Thursday, 07 June 2007 12:29 )
|
|
Read more...
|
|
First Update - Ternary Operators |
|
|
|
|
Written by Administrator
|
|
Saturday, 17 February 2007 14:19 |
Yesterday I started to make a point of using ternary operators. I see them used in other peoples scripts all the time, and just decided that I ought to finally learn how to use them. Example: echo (isset($var)) ? 'SET' : 'NOT SET'; will print SET or NOT SET, depending upon the status of the variable $var
The basics seem easy enough, but I can't deny that when it comes to actually using them, I'm struggling a bit. It appears that ternary operators are best used in the middle of an echo, but I'm coming a bit unstuck with it. Another problem is, that I can't seem to find any good guides on the intarweb, I certainly can't find anything really indepth with lots of examples. Ah well, I'll get there eventually. |
|
Mousepilot and Joomla kissing in a tree |
|
|
|
|
Written by Administrator
|
|
Wednesday, 07 February 2007 14:17 |
|
Welcome to the new Mousepilot site. "What new Mousepilot site?" I hear you ask.. well, for the less observant bots out there (cos lets face it, there aren't actually any real people reading this.. only search engine bots), I've moved the site over to Joomla powah! The old site was vBulletin driven, with alot of custom code. I did contemplate using wordpress.. but after a very bad experience with skinning it.. that got thrown out the window. Actually, I'm going to take this opportunity to have a bloody good rant about wordpress... do it's developers actually use it? Have they ever actually tried to skin it? It's so unuserfriendly that it should really get some sort of award. I genuinely didn't realise that there could be scripts out there that are just that difficult to skin. What I really don't get, is why it's so freaking popular! The admin section could've been written by a guide dog for the blind, and don't even get me started again on the skinning! Er, anyway.. Joomla is better. Totally overkill for what it will actually be used for, but it only took me 2 hours to skin (I was drunk at the time, I think I deserve a prize for that really), and it will allow for some expansion should the urge take me. So what am I using the site for now? Well, just really as a place to make notes of my coding learning. I'll post when i've discovered (or written) useful new functions. Just sort of a timeline of my n00bness if I'm perfectly honest. You might find that I post some drunken rants at times too, it's bound to happen.
|
|
|