Click here to Skip to main content
14,241,327 members

euDock 2.0.06 JScript Emulation of Dock style MAC OS X bar

Rate this:
4.89 (38 votes)
Please Sign up or sign in to vote.
4.89 (38 votes)
19 Jun 2007LGPL3
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:

<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:

<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)

Share

About the Author

Pier...
Web Developer
Italy Italy
No Biography provided

Comments and Discussions

 
GeneralChanged to support multiple docks [modified] Pin
dherbe6-Jun-06 2:06
memberdherbe6-Jun-06 2:06 
GeneralRe: Changed to support multiple docks [modified] Pin
Pier...6-Jun-06 21:55
memberPier...6-Jun-06 21:55 
GeneralRe: Changed to support multiple docks [modified] Pin
Pier...6-Jun-06 22:15
memberPier...6-Jun-06 22:15 
GeneralRe: Changed to support multiple docks [modified] Pin
dherbe7-Jun-06 0:26
memberdherbe7-Jun-06 0:26 
GeneralRe: Changed to support multiple docks [modified] Pin
dherbe7-Jun-06 0:28
memberdherbe7-Jun-06 0:28 
GeneralRe: Changed to support multiple docks [modified] Pin
Pier...7-Jun-06 23:35
memberPier...7-Jun-06 23:35 
QuestionRe: Changed to support multiple docks Pin
Varij10-Jun-06 2:43
memberVarij10-Jun-06 2:43 
AnswerRe: Changed to support multiple docks Pin
Pier...10-Jun-06 4:17
memberPier...10-Jun-06 4:17 
AnswereuDock 2.0a Pin
Pier...27-Jun-06 22:53
memberPier...27-Jun-06 22:53 
GeneralRe: Changed to support multiple docks Pin
Pier...5-Jul-06 23:45
memberPier...5-Jul-06 23:45 
QuestionApple Patent ? Pin
Nicolas MEURET29-May-06 1:19
memberNicolas MEURET29-May-06 1:19 
AnswerRe: Apple Patent ? Pin
Pier...29-May-06 6:02
memberPier...29-May-06 6:02 
GeneralRe: Apple Patent ? Pin
Nicolas MEURET30-May-06 2:00
memberNicolas MEURET30-May-06 2:00 
GeneralRe: Apple Patent ? Pin
Pier...30-May-06 5:12
memberPier...30-May-06 5:12 
GeneralRe: Apple Patent ? Pin
DiIVO4-Jun-06 8:02
memberDiIVO4-Jun-06 8:02 
GeneralCool, Mr. Tripletta Pin
DiIVO28-May-06 5:39
memberDiIVO28-May-06 5:39 
GeneralRe: Cool, Mr. Tripletta Pin
Pier...28-May-06 21:53
memberPier...28-May-06 21:53 
GeneralRe: Cool, Mr. Tripletta [modified] Pin
Pier...30-May-06 4:55
memberPier...30-May-06 4:55 
GeneralRe: Cool, Mr. Tripletta Pin
Pier...4-Jun-06 22:06
memberPier...4-Jun-06 22:06 
QuestionGreat Work. Would you consider LGPL? Pin
scubaduba13-Mar-06 22:30
memberscubaduba13-Mar-06 22:30 
AnswerRe: Great Work. Would you consider LGPL? Pin
Pier...13-Mar-06 23:23
memberPier...13-Mar-06 23:23 
AnswerOK... Now is LGPL... Pin
Pier...13-Mar-06 23:42
memberPier...13-Mar-06 23:42 
GeneralRe: OK... Now is LGPL... Pin
scubaduba14-Mar-06 1:47
memberscubaduba14-Mar-06 1:47 
GeneralRe: OK... Now is LGPL... Pin
Jeff Circeo29-Mar-06 12:14
memberJeff Circeo29-Mar-06 12:14 
Generalcool Pin
Varindir Rajesh Mahdihar13-Mar-06 5:39
memberVarindir 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.

Article
Posted 13 Mar 2006

Stats

130.7K views
1.1K downloads
60 bookmarked