Click here to Skip to main content
11,495,869 members (54,820 online)
Click here to Skip to main content

euDock 2.0.06 JScript Emulation of Dock style MAC OS X bar

, 19 Jun 2007 LGPL3 107.2K 1.1K 60
Rate this:
Please Sign up or sign in to vote.
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

 
GeneralSubmenus Pin
PajeroExceed26-Jan-10 10:42
memberPajeroExceed26-Jan-10 10:42 
GeneralRe: Submenus Pin
Pier...27-Jan-10 3:45
memberPier...27-Jan-10 3:45 
GeneralRe: Submenus Pin
PajeroExceed27-Jan-10 4:55
memberPajeroExceed27-Jan-10 4:55 
GeneralRe: Submenus Pin
Pier...27-Jan-10 9:18
memberPier...27-Jan-10 9:18 
GeneralRe: Submenus Pin
PajeroExceed27-Jan-10 10:57
memberPajeroExceed27-Jan-10 10:57 
GeneralCompatibility with IE 8 Pin
Member 99163529-Sep-09 1:34
memberMember 99163529-Sep-09 1:34 
GeneralRe: Compatibility with IE 8 Pin
Pier...1-Oct-09 3:28
memberPier...1-Oct-09 3:28 
GeneralRe: Compatibility with IE 8 Pin
Member 9916357-Oct-09 5:45
memberMember 9916357-Oct-09 5:45 
GeneralRe: Compatibility with IE 8 Pin
Pier...7-Oct-09 23:48
memberPier...7-Oct-09 23:48 
GeneralRe: Compatibility with IE 8 Pin
Member 9916358-Oct-09 2:26
memberMember 9916358-Oct-09 2:26 
GeneralRe: Compatibility with IE 8 Pin
Riepi22-Feb-10 4:08
memberRiepi22-Feb-10 4:08 
GeneralRe: Compatibility with IE 8 Pin
Pier...25-Feb-10 0:41
memberPier...25-Feb-10 0:41 
GeneralRe: Compatibility with IE 8 Pin
Riepi26-Feb-10 2:09
memberRiepi26-Feb-10 2:09 
GeneralChanging menu without postback Pin
Member 99163531-Oct-08 3:54
memberMember 99163531-Oct-08 3:54 
GeneralRe: Changing menu without postback Pin
Member 99163531-Oct-08 6:40
memberMember 99163531-Oct-08 6:40 
GeneralRe: Changing menu without postback Pin
Pier...2-Nov-08 23:34
memberPier...2-Nov-08 23:34 
QuestionTrouble using labels Pin
Jordan Van Schyndel21-Jul-08 11:41
memberJordan Van Schyndel21-Jul-08 11:41 
AnswerRe: Trouble using labels Pin
Pier...22-Jul-08 3:13
memberPier...22-Jul-08 3:13 
GeneralRe: Trouble using labels Pin
Jordan Van Schyndel22-Jul-08 4:26
memberJordan Van Schyndel22-Jul-08 4:26 
GeneralRe: Trouble using labels Pin
Pier...22-Jul-08 4:56
memberPier...22-Jul-08 4:56 
QuestionThis is possible in Windows Forms .net ? Pin
joaoalbertofn10-Oct-07 5:25
memberjoaoalbertofn10-Oct-07 5:25 
GeneralNew Link Target in version 2.0.0.6 Pin
Mynetguy20-Jun-07 9:40
memberMynetguy20-Jun-07 9:40 
GeneralRe: New Link Target in version 2.0.0.6 Pin
Pier...20-Jun-07 12:13
memberPier...20-Jun-07 12:13 
Generalin asp.net how i generate clik event for enery image in the dock Pin
ram krishna pattnayak6-Jun-07 5:24
memberram krishna pattnayak6-Jun-07 5:24 
GeneralRe: in asp.net how i generate clik event for enery image in the dock Pin
Pier...19-Jun-07 12:20
memberPier...19-Jun-07 12:20 

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

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

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150520.1 | Last Updated 19 Jun 2007
Article Copyright 2006 by Pier...
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid