Click here to Skip to main content
14,328,723 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

 
GeneralSmall Request [modified] Pin
Peter.Chan11-Jul-06 20:54
memberPeter.Chan11-Jul-06 20:54 
GeneralRe: Small Request Pin
Pier...11-Jul-06 22:15
memberPier...11-Jul-06 22:15 
GeneralRe: Small Request Pin
Pier...12-Jul-06 0:16
memberPier...12-Jul-06 0:16 
GeneralRe: Small Request [modified] Pin
Peter.Chan12-Jul-06 2:17
memberPeter.Chan12-Jul-06 2:17 
GeneralRe: Small Request [modified] Pin
Pier...12-Jul-06 6:52
memberPier...12-Jul-06 6:52 
GeneralRe: Small Request Pin
Pier...13-Jul-06 0:18
memberPier...13-Jul-06 0:18 
GeneralRe: Small Request Pin
Peter.Chan20-Aug-06 21:17
memberPeter.Chan20-Aug-06 21:17 
GeneralASCII ART [modified] Pin
Pier...12-Jul-06 0:39
memberPier...12-Jul-06 0:39 

........................................................
........................|----|..........................
..................|---|.|----|.|---|....................
.............|--|.|---|.|----|.|---|.|--|...............
=======[].[].|--|.|---|.|----|.|---|.|--|.[].[]========.
........................................................
........................................................
..................___..|----|..___......................
._._._._._._._._.|---|.|----|.|---|._._._._._._.........
.¯.¯.¯.¯.¯.¯.¯.¯.|---|.|----|.|---|.¯.¯.¯.¯.¯.¯.........
..................¯¯¯..|----|..¯¯¯......................
........................................................

Poke tongue | ;-P ;P;P AH Man... Poke tongue | ;-P ;P;P
Poke tongue | ;-P ;P;P You have a lot to learn Poke tongue | ;-P ;P;P

P.S.
!!!WOF!!!
I've modified this article 7 times to make right ascii euArt

When you finish your site, (if you want) can you send me the URL.
My idea is to include in my site a link to all euDock pages in the world.

Another idea is to make a thumbnail viewer with eudock Like engine.


-- modified at 6:42 Wednesday 12th July, 2006
GeneralRequest for label Pin
Peter.Chan10-Jul-06 22:54
memberPeter.Chan10-Jul-06 22:54 
GeneralRe: Request for label Pin
Pier...11-Jul-06 2:21
memberPier...11-Jul-06 2:21 
GeneralRe: Request for label Pin
Peter.Chan11-Jul-06 5:59
memberPeter.Chan11-Jul-06 5:59 
GeneralRe: Request for label Pin
Pier...11-Jul-06 6:26
memberPier...11-Jul-06 6:26 
Generalopen in new window ( or tab) Pin
anga16-Jun-06 3:21
memberanga16-Jun-06 3:21 
GeneralRe: open in new window ( or tab) [modified] Pin
Pier...16-Jun-06 4:57
memberPier...16-Jun-06 4:57 
GeneralRe: open in new window ( or tab) ANOTHER EXAMPLE [modified] Pin
Pier...16-Jun-06 5:04
memberPier...16-Jun-06 5:04 
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 

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

131.6K views
1.1K downloads
60 bookmarked