"Life is brought down to the basics: if you are warm, regular, healthy, not thirsty or hungry, then you are not on a mountain... Climbing at altitude is like hitting your head against a brick wall - it's great when you stop."

Chris Darwin

What's new




Blogs etc.


Auto-magic, take 2

I went on and replaced the "web 2.0" links available on some of the pages with JavaScript menu, which I reckon is less obtrusive and ultimately better from the maintenance point of view as well, as it would not require changes in markup. The script used on the site is based on JavaScript Context Menu by Luke Breuer.

The sample has been changed quite a bit though. Unfortunately my tweaking seemed to have broken compatibility with Internet Explorer 7, though. I tested the script with Firefox (3.0.7 and 3.1 beta), Internet Explorer 8, Chrome 2.0 beta and Safari 4 beta. Furthermore, it should work just fine with other browsers as well as long as they allow replacing right-click menu. The best part of this approach is that whenever the integrated services syntax requires changing or if I want to add new services, all I need to do is change the JavaScript. At this point, the integrated services are:

Essentially, the functionality pulled off with the JavaScript is rather similar to Accelerators, introduced in Internet Explorer 8. Those are pretty handy BTW; if you are using Firefox, IE8 Activities for Firefox comes highly recommended.

Related posts