background preloader

CSS Dock Menu

CSS Dock Menu
May 08, 2007 270 Comments Tags: Javascript If you are a big Mac fan, you will love this CSS dock menu. CSS dock menu screenshot Update: I no longer support the questons regard this dock menu. View Demo | Download 1. Download the CSS dock menu zip package. 2. In between the HTML <head> tag, add the following code The first part is the Javascript, second part is CSS stylesheet, and last part is the PNG hack for IE 6. 3. Don’t forget to add the following code to anywhere within the <body> tag: 4. To add menu item to the top dock (note: span tag is after the img tag): <a class="dock-item" href="#"><img src="images/home.png" alt="home" /><span>Home</span></a> To add menu item to the bottom dock (note: span tag is before the img tag): <a class="dock-item2" href="#"><span>Home</span><img src="images/home.png" alt="home" /></a> Browser Compatibility I have tested on IE 6, IE 7, Opera 9, Firefox 2, and Safari 2 (although there are some minor rendering issues with Safari). Collapse All Expand All

Raphaël · Australia New South Wales New South Wales (abbreviated as NSW) is Australia’s oldest and most populous state, located in the south-east of the country, north of Victoria and south of Queensland. It was founded in 1788 and originally comprised much of the Australian mainland, as well as Lord Howe Island and Norfolk Island. New Zealand was not initially part of the colony, although when Britain annexed New Zealand in 1840 it was briefly a part of New South Wales. Victoria Victoria is a state located in the south-eastern corner of Australia. Western Australia Western Australia is a state occupying the entire western third of the Australian continent. South Australia South Australia is a state of Australia in the southern central part of the country. Northern Territory The Northern Territory is a federal territory of Australia, occupying much of the center of the mainland continent, as well as the central northern regions. Queensland Tasmania Tasmania is an Australian island and state of the same name.

A CSS Sticky Footer A CSS Sticky Footer that just works We've all tried to use a CSS Sticky Footer one time or another, but they never seem to come out right, do they? Well, the days of a hard to understand CSS Sticky Footer are thankfully over. With just a few simple CSS classes with minimal extra HTML markup, I've fashioned a CSS Sticky Footer that even beginners can get a handle on. It's been tested in IE 5 and up, Chrome, Firefox, Safari and Opera. Usage of the CSS Sticky Footer Great! Absolutely. View the CSS or learn about using it NEW: HTML5 Sticky Footer Google Releases AJAX Language API Google today opened up the machine translation software they implemented on their own Google Translate site via a public API. The AJAX Language API allows developers to perform translations in their applications for all 13 supported languages and 29 translation pairs. As an example, Google engineer Ben Lisbakken cooked up a Google Gadget that uses the AJAX Language API to create a simple language learning quiz (it asks question like: "What is 'moutain' in Spanish?"). The example also leverages Google's AJAX Search API to display image hints. There are potentially a host of applications for the language API beyond simple localization. Google already released a bunch of translation bots on its GoogleTalk IM service that repeat back whatever you say to it in a translated language (each bot handles a different language pair), but imagine that being a setting you could just flip on at the client level? What other sort of applications can you envision for the Google translation API?

Writing with script Be careful when writing with script. If script is not available, that content will not be created. You should limit your use of this to parts of the page that are not needed to access page content. Writing while the page is still loading If your code is being executed while the page is still loading (in other words, if it is run as part of the initial page layout) put the following: <script type="text/javascript"> document.write('<p>What ever you want to write<\/p>'); document.writeln('<p>What ever you want to write<\/p>'); </script> It will write whatever you put, in whatever part of the page the script is currently running. Note that if you write content using an event handler (such as the onload handler for an image), it will be treated as if the page has completed loading, even if it has not. Writing after the page has loaded After the page has completed loading, the rules change. That will remove everything that is currently being shown and replace it with what you write in there.

Ten Javascript Tools Everyone Should Have Filed: Sun, Mar 04 2007 under Programming|| Tags: toolbox javascript popular list Javascript frameworks have exploded on the scene over the last few years but they're no replacement for a good toolbox: those little snippets of code you seem to include in every single project. Here's my list of 10 essential Javascript tools everyone should have at their fingertips! #0 - Trim. Trim is one of the things that leave you scratching your head wondering why it was never included in the language to begin with. Thanks to prototyping however it's fairly easy to make up for the original oversight. String.prototype.trim = function() { return this.replace(/^\s+|\s+$/g,""); } String.prototype.ltrim = function() { return this.replace(/^\s+/g,""); } String.prototype.rtrim = function() { return this.replace(/\s+$/g,""); } Usage… var test = " Test "; var test1 = test.ltrim(); // returns "Test " var test2 = test.rtrim(); // returns " Test" var test3 = test.trim(); // returns "Test" #1 - Numeric Sort.

Computing Your Skill Summary: I describe how the TrueSkill algorithm works using concepts you’re already familiar with. TrueSkill is used on Xbox Live to rank and match players and it serves as a great way to understand how statistical machine learning is actually applied today. I’ve also created an open source project where I implemented TrueSkill three different times in increasing complexity and capability. In addition, I’ve created a detailed supplemental math paper that works out equations that I gloss over here. Feel free to jump to sections that look interesting and ignore ones that seem boring. Introduction It seemed easy enough: I wanted to create a database to track the skill levels of my coworkers in chess and foosball. But, there’s a problem. Machine learning is a hot area in Computer Science— but it’s intimidating. “Not knowing something doesn’t mean you’re dumb— it just means you don’t know it.” Skill ≈ Probability of Winning Skill is tricky to measure. What Exactly is Probability Anyway? See?

CSS tutorial Bert Bos CWI, Amsterdam, Netherlands the 12th of May, 2006 Part 1 – Principles CSS annotates a tree with style properties Colors backgrounds Fonts, weights, styles Margins, padding, borders List numbering Basic shapes (inline, block, list, table…) Line height Justification Underlining, etc. <h2>Ellipsis Points</h2> <h3>Their Function</h3> <p>Ellipsis points indicate that either a few letters of a word or one or more words have been omitted. <p>Grammar calls this omission of words ellipsis. <p>A poet writes: <blockquote> <p>I do not know what it could mean<br> that I am saddened so. Ellipsis Points Their Function Ellipsis points indicate that either a few letters of a word or one or more words have been omitted. Grammar calls this omission of words ellipsis. A poet writes: I do not know what it could mean that I am saddened so. The style in a typical browser Binding in CSS is done with selectors CSS has selectors for Example: <h2>An <em>example</em> header</h2><p>First para not indented. Third, too. <!

The birth of AJAX – an amazing story | Techtracer I have for long wanted to trace the story behind the evolution of the AJAX technology. Did I just say “technology”; many bloggers might want to thrash me for referring AJAX to being a technology because I have come across heated arguments between bloggers who actually know what made the existence of AJAX as we see today. There are vendors who make AJAX sound lucrative as a new technology for luring some hapless customers into buying their products which are now running the hot property called AJAX into their applications. Surely the customers be lured but its still a mystery to me as to how this has taken place silently in the hoods without the inventor not giving in a fight. Are the patent issues gone with the wind or are proprietary concepts being diluted when they fall in the web domain. I wont be starting a wasted discussion on who are fighting for whom and what is right or what is wrong. I attribute the success of AJAX to and .

10 Smart Javascript Techniques For Manipulating Content Jan 11 2009 Delivering informative structure is the primary task an interactive user interface should be able to cope with. The more intuitive layout structure is designed, the better users can understand the content. Whatever content you have to present, you can present them in a more interactive & more responsive ways. “Page Sliders”, “Hiding Content”, “Image or Content Sliders”, “Animated Slideshows”, “Carousels”, “Tabbed content” as well as “resizable, draggable & slidable” & “lightboxes” modules that you can use for effective presentations of your content (text or images). 1. jQuery pageSlide jQuery pageSlide is a plugin for jQuery that slides the viewable webpage off-screen, revealing and populating a secondary interaction pane. The primary window is reserved for content; secondary interactions do not require additional space on the page — the area they need is created and removed on demand. Check OUt the Demo Here 2. Here is the javascript code to enable slideOut() effect: 3. 4.

Related: