Click here to Skip to main content
15,879,474 members
Articles / Web Development / HTML

euDock 2.0.06 JScript Emulation of Dock style MAC OS X bar

Rate me:
Please Sign up or sign in to vote.
4.89/5 (38 votes)
19 Jun 2007LGPL31 min read 151K   1.1K   60   75
An Open Source (customizable) JavaScript Emulation of Dock style MAC OS X bar

Live Demo

[on-Line Examples] euDock

Introduction

euDock is a JavaScript emulation of the Dock style MAC OS X bar.
It uses PNG, GIF, JPG (or other Web type) images, objects and transformation functions. PNG images in Internet Explorer are supported.

Using the Code

euDock has a lot of features described in the tutorial.

In the following code, I show the basic configuration of euDock bar.

Place the following inside your <HEAD></HEAD> HTML tag:

HTML
<HEAD>
   <script language="JavaScript1.3" src="js/euDock.2.0.js"></script>
   <script language="JavaScript1.3" src="js/euDock.Image.js"></script>
</HEAD>

Later, place everywhere:

JavaScript
<script>
   euEnv.imageBasePath="js/";

   var dock = new euDock();
   
   dock.setBar({
        left      :{euImage:{image:"barImages/dockBg-l.png"}},
        horizontal:{euImage:{image:"barImages/dockBg-c-o.gif"}},
        right     :{euImage:{image:"barImages/dockBg-r.png"}}
       });
   
   dock.setIconsOffset(2);
           
   dock.addIcon(new Array({euImage:{image:"iconsEuDock/cube.png"}}),
                {link:"http://www.codeproject.com"});
   dock.addIcon(new Array({euImage:{image:"iconsEuDock/cube.png"}}),
                {link:"http://www.codeproject.com"});
   dock.addIcon(new Array({euImage:{image:"iconsEuDock/cube.png"}}),
                {link:"http://www.codeproject.com"});
   dock.addIcon(new Array({euImage:{image:"iconsEuDock/cube.png"}}),
                {link:"http://www.codeproject.com"});
   dock.addIcon(new Array({euImage:{image:"iconsEuDock/cube.png"}}),
                {link:"http://eudock.jules.it"});
   dock.addIcon(new Array({euImage:{image:"iconsEuDock/cube.png"}}),
                {link:"http://eudock.jules.it"});
   dock.addIcon(new Array({euImage:{image:"iconsEuDock/cube.png"}}),
                {link:"http://eudock.jules.it"});
   dock.addIcon(new Array({euImage:{image:"iconsEuDock/cube.png"}}),
                {link:"http://eudock.jules.it"});
</script>

I suggest you download the tutorial/demos and take a look at the features. I can't explain everything here.

History

Ver 2.0.06 (17 June 2007) features

  • BUG FIX: euDock will SURVIVE on Safari... (I don't have enough money for a Mac)
  • Added delete Icon feature
  • Added (optional) Target Link Location
  • Now Cursor Pointer will change
  • [Examples]

Ver 2.0.04 (9 November 2006) features

  • BUG FIX: euDock can (now) SURVIVE with all kinds of prototype scripts
  • Added euCENTER align feature to euLabel object
  • Added a NEW tutorial page
  • [EXTERNAL FUNCTIONS EXAMPLES]

Ver 2.0.02 (12 July 2006) features

  • Added new generic align functions (euCENTER euHORIZONTAL euVERTICAL)
  • [ALIGN EXAMPLES]

Ver 2.0 (6 July 2006) features

  • Various Effect objects
  • Improved performances with PNG images on Internet Explorer
  • Programmable zooming functions
  • New tutorial and examples

Ver 2.00a (28 June 2006) features

Ver 1.06 features

  • Hook and align to a fixed position
  • Some bug fixes

Ver 1.04 features

  • Hook and align to HTML objects

Ver 1.02 features

  • Screen align: top, bottom, left, right
  • Resizing images
  • Link to external events
  • Fading images

License

This article, along with any associated source code and files, is licensed under The GNU Lesser General Public License (LGPLv3)


Written By
Web Developer
Italy Italy
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralChanged to support multiple docks [modified] Pin
dherbe6-Jun-06 2:06
dherbe6-Jun-06 2:06 
GeneralRe: Changed to support multiple docks [modified] Pin
Pier...6-Jun-06 21:55
Pier...6-Jun-06 21:55 
GeneralRe: Changed to support multiple docks [modified] Pin
Pier...6-Jun-06 22:15
Pier...6-Jun-06 22:15 
GeneralRe: Changed to support multiple docks [modified] Pin
dherbe7-Jun-06 0:26
dherbe7-Jun-06 0:26 
GeneralRe: Changed to support multiple docks [modified] Pin
dherbe7-Jun-06 0:28
dherbe7-Jun-06 0:28 
Hum..
I've just found out that for some reason
IE is not behaving as expected, like when using Mozilla firefox

I apologize for that.
In the meantime I will try to fix this!

regards
GeneralRe: Changed to support multiple docks [modified] Pin
Pier...7-Jun-06 23:35
Pier...7-Jun-06 23:35 
QuestionRe: Changed to support multiple docks Pin
Varij10-Jun-06 2:43
Varij10-Jun-06 2:43 
AnswerRe: Changed to support multiple docks Pin
Pier...10-Jun-06 4:17
Pier...10-Jun-06 4:17 
AnswereuDock 2.0a Pin
Pier...27-Jun-06 22:53
Pier...27-Jun-06 22:53 
GeneralRe: Changed to support multiple docks Pin
Pier...5-Jul-06 23:45
Pier...5-Jul-06 23:45 
QuestionApple Patent ? Pin
Nicolas MEURET29-May-06 1:19
Nicolas MEURET29-May-06 1:19 
AnswerRe: Apple Patent ? Pin
Pier...29-May-06 6:02
Pier...29-May-06 6:02 
GeneralRe: Apple Patent ? Pin
Nicolas MEURET30-May-06 2:00
Nicolas MEURET30-May-06 2:00 
GeneralRe: Apple Patent ? Pin
Pier...30-May-06 5:12
Pier...30-May-06 5:12 
GeneralRe: Apple Patent ? Pin
DiIVO4-Jun-06 8:02
DiIVO4-Jun-06 8:02 
GeneralCool, Mr. Tripletta Pin
DiIVO28-May-06 5:39
DiIVO28-May-06 5:39 
GeneralRe: Cool, Mr. Tripletta Pin
Pier...28-May-06 21:53
Pier...28-May-06 21:53 
GeneralRe: Cool, Mr. Tripletta [modified] Pin
Pier...30-May-06 4:55
Pier...30-May-06 4:55 
GeneralRe: Cool, Mr. Tripletta Pin
Pier...4-Jun-06 22:06
Pier...4-Jun-06 22:06 
QuestionGreat Work. Would you consider LGPL? Pin
scubaduba13-Mar-06 22:30
scubaduba13-Mar-06 22:30 
AnswerRe: Great Work. Would you consider LGPL? Pin
Pier...13-Mar-06 23:23
Pier...13-Mar-06 23:23 
AnswerOK... Now is LGPL... Pin
Pier...13-Mar-06 23:42
Pier...13-Mar-06 23:42 
GeneralRe: OK... Now is LGPL... Pin
scubaduba14-Mar-06 1:47
scubaduba14-Mar-06 1:47 
GeneralRe: OK... Now is LGPL... Pin
Jeff Circeo29-Mar-06 12:14
Jeff Circeo29-Mar-06 12:14 
Generalcool Pin
Varindir Rajesh Mahdihar13-Mar-06 5:39
Varindir Rajesh Mahdihar13-Mar-06 5:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.