Click here to Skip to main content
6,596,602 members and growing! (21,687 online)
Email Password   helpLost your password?
Web Development » Client side scripting » General     Intermediate License: The GNU Lesser General Public License

euDock 2.0.06 JScript Emulation of Dock style MAC OS X bar

By Pier...

An Open Source (customizable) JavaScript Emulation of Dock style MAC OS X bar
Javascript, CSS, HTML, Windows, Visual Studio, Dev
Posted:13 Mar 2006
Updated:19 Jun 2007
Views:67,019
Bookmarked:58 times
Announcements
Loading...
 
Search    
Advanced Search
Add to IE Search
printPrint   add Share
      Discuss Discuss   Broken Article?Report  
37 votes for this article.
Popularity: 6.90 Rating: 4.40 out of 5
4 votes, 10.8%
1
1 vote, 2.7%
2

3
5 votes, 13.5%
4
27 votes, 73.0%
5

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

About the Author

Pier...


Member

Occupation: Web Developer
Location: Italy Italy

Other popular Client side scripting articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 25 of 66 (Total in Forum: 66) (Refresh)FirstPrevNext
GeneralCompatibility with IE 8 PinmemberMember 9916351:34 29 Sep '09  
GeneralRe: Compatibility with IE 8 PinmemberPier...3:28 1 Oct '09  
GeneralRe: Compatibility with IE 8 PinmemberMember 9916355:45 7 Oct '09  
GeneralRe: Compatibility with IE 8 PinmemberPier...23:48 7 Oct '09  
GeneralRe: Compatibility with IE 8 PinmemberMember 9916352:26 8 Oct '09  
GeneralChanging menu without postback PinmemberMember 9916353:54 31 Oct '08  
GeneralRe: Changing menu without postback PinmemberMember 9916356:40 31 Oct '08  
GeneralRe: Changing menu without postback PinmemberPier...23:34 2 Nov '08  
QuestionTrouble using labels PinmemberJordan Van Schyndel11:41 21 Jul '08  
AnswerRe: Trouble using labels PinmemberPier...3:13 22 Jul '08  
GeneralRe: Trouble using labels PinmemberJordan Van Schyndel4:26 22 Jul '08  
GeneralRe: Trouble using labels PinmemberPier...4:56 22 Jul '08  
GeneralThis is possible in Windows Forms .net ? Pinmemberjoaoalbertofn5:25 10 Oct '07  
GeneralNew Link Target in version 2.0.0.6 PinmemberMynetguy9:40 20 Jun '07  
GeneralRe: New Link Target in version 2.0.0.6 PinmemberPier...12:13 20 Jun '07  
Generalin asp.net how i generate clik event for enery image in the dock Pinmemberram krishna pattnayak5:24 6 Jun '07  
GeneralRe: in asp.net how i generate clik event for enery image in the dock PinmemberPier...12:20 19 Jun '07  
GeneralAdd target element to clicks to work on frames. PinmemberMario Zaizar16:55 27 Feb '07  
GeneralRe: Add target element to clicks to work on frames. PinmemberPier...22:14 27 Feb '07  
QuestionNot working - Labels? Pinmembervectran20:05 2 Feb '07  
AnswerRe: Not working - Labels? PinmemberPier...0:45 3 Feb '07  
GeneralDelete a Icon and replace image of selected icon Pinmemberjllopezm23:58 24 Nov '06  
Generallarger initial start size Pinmemberheyitssteve17:03 19 Sep '06  
GeneralRe: larger initial start size PinmemberPier...22:48 19 Sep '06  
GeneralRe: larger initial start size Pinmemberheyitssteve14:34 20 Sep '06  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 19 Jun 2007
Editor: Deeksha Shenoy
Copyright 2006 by Pier...
Everything else Copyright © CodeProject, 1999-2009
Web21 | Advertise on the Code Project