I've been messing around with the code some to enhance the menus a bit. Formerly, the menus only showed the top-level categories (the ones without any parent category). Ofcourse, the goal is that you should reach the content you're looking for in as few clicks as possible, so now it should display a list of subcategories if you hold your mouse over a category that has any subcategories.
The Yahoo! User Interface Library (YUI) is used for this, which also has many other possibilities for creating a more dynamic site. For those of you who do not have Javascript enabled, this will not work. However, the subcategories are accessible by going to the category itself, so you're always able to reach the page you're looking for even without Javascript. Yes, I feel it is important to emphasize this because some websites tend to forget that not every user has Javascript enabled.
If you're trying to read something and you're only getting errors, wait a few seconds and try again, it should be working. I'll be messing around with the CSS some to make this look a bit better (and intuitive), but this shouldn't bring you any errors.
Introduction to CSS
On to a completely different subject. Due to the lack of any good norwegian CSS tutorials (that I could find anyways), I've written a short introduction to CSS in norwegian. Check it out :)
I realise that the navigation is still in english even though the content is in norwegian, and I'll be trying to figure out the best way to fix the translations.
In case you're wondering, the syntax highlighting there uses dpSyntaxHighlighter, another Javascript library, to highlight the code. Again, if you've got Javascript disabled, the code will simply look like code inside a regular <pre>-tag.


Add comment
Comments