dress up your interface >> daily fresh clickable icons / at a click

Office 2007 style tooltip in JavaScript

by domagoj 11. August 2007
I've made a very simple implementation of tooltip in JavaScript, it looks very similar to original found in Office 2007. Feel free to use, tweak or improve this script.

 

Below are screenshots and here is the demo page

Simple tooltip

Elements: title, text

Office 2007

Our tooltip

  Function call for this tooltip:

onmouseover="showTooltip('Simple tooltip,'This is simple tooltip')"

 

Simple tooltip with additional help info

Elements = title, text, additional help icon, additional help text

Office 2007

Our tooltip

Function call for this tooltip:

onmouseover="showTooltip('Simple tooltip with additioanl info','This is simple tooltip with additional info','Press F1 for more help','helpicon.png')"

 

Complex tooltip

Elements: title, text, additional help icon, additional help text, picture

Office 2007

Our tooltip

Function call for this tooltip:

onmouseover="showTooltip('Simple tooltip with additioanl info','This is simple tooltip with additional info','Press F1 for more help','helpicon.png','graf.png')"

 

 

The script is not finished, I've put it only for demonstration, but if you find useful, feel free to grab source code.

The only thing I couldn’t copy was the gradient background, so I used something in between as background and put in variable tooltipBackColor (as you can see on screenshots I use black color scheme in Office 2007) .

How to use?

Just call function showTooltip() in onmouseover event and onmouseout call hideTooltip.

Sample:

<a href=”#” onmouseover="showTooltip('Caption’,'Tooltiptext')" onmouseout="hideTooltip()" />

What parameters can I use?

showTooltip (‘Caption’,’Tooltip text’,’Additional help text’,’Additional help image path’, ‘Main image path’)

Compatibility

Tested on: IE 6 & 7, Firefox 2, Opera 9.2, Safari 3 for Windows

Summary

This script is not finished yet, all comments, bug reports and suggestion are welcomed.

Download in 1 zip file

Demo page

 

 

8 kick-ass JavaScript OS X style docks

by domagoj 30. July 2007
JavaScript is a very powerful language. When combined with nice design and dock functionality you get desktop-like feeling. Even though I don't have any of Apple's products (hope this will change soon) I am in love with that company. The introduction of Mac OS X Dock brought us innovative ideas of handling menus. Here's the list of the best ones I came across.

 

CSS Dock Menu

Browsers: IE 6, IE 7, Opera 9, Firefox 2, and Safari 2

Demo

 

MacStyleDock

 

Browsers: Firefox 1.5 on Mac OS X, Firefox 2 on Ubuntu Linux, Firefox 2 on Windows , IE 6, IE 7, Konqueror 3.5 on Ubuntu Linux, Opera 9 on Windows, Safari 2 on Mac OS X

Demo

 

iconDock

Browsers: PC & Windows XP:Mozilla Firefox 2.0, IE 6, IE 7. Apple Mac & Mac OS X : Mozilla Firefox 1.5, Safari 2.0

Demo

 

Dojo Fisheye Widget

Browsers: ?

Demo

 

MOOTOOLS Fisheye

Browsers:?

Demo

  

iFishEye

Browsers: IE, Firefox , Opera and Safari

Demo

 

eudock

Browsers: ?

Demo

 

Corner Dock

Browsers: IE 7, FireFox 2.0.0.4, Opera 9.21, Safari (for windows) 3.0.1

Demo

Powered by BlogEngine.NET 1.2.0.0
Theme by Itookia.com

Calendar

<<  August 2008  >>
MoTuWeThFrSaSu
28293031123
45678910
11121314151617
18192021222324
25262728293031
1234567

View posts in large calendar

Categories


Archive

Skype us

Djurdjica

My status



Domagoj

My status



Our friends


Axialis Software - Icon, Cursor and Screensaver Authoring Tools for Windows