|
From: FlorinCB <ory...@us...> - 2008-09-18 00:44:12
|
Update of /cvsroot/mxbb/mx_music/phpbb2/mx_mod/mx_shared/mygosumenu In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv19367/mx_mod/mx_shared/mygosumenu Added Files: ie5.js index.htm license.txt readme.txt todo.txt Log Message: upgrade --- NEW FILE: ie5.js --- // +----------------------------------------------------------------+ // | Array functions that are missing in IE 5.0 | // | Author: Cezary Tomczak [www.gosu.pl] | // | Free for any use as long as all copyright messages are intact. | // +----------------------------------------------------------------+ // Removes the last element from an array and returns that element. if (!Array.prototype.pop) { Array.prototype.pop = function() { var last; if (this.length) { last = this[this.length - 1]; this.length -= 1; } return last; }; } // Adds one or more elements to the end of an array and returns the new length of the array. if (!Array.prototype.push) { Array.prototype.push = function() { for (var i = 0; i < arguments.length; ++i) { this[this.length] = arguments[i]; } return this.length; }; } // Removes the first element from an array and returns that element. if (!Array.prototype.shift) { Array.prototype.shift = function() { var first; if (this.length) { first = this[0]; for (var i = 0; i < this.length - 1; ++i) { this[i] = this[i + 1]; } this.length -= 1; } return first; }; } // Adds one or more elements to the front of an array and returns the new length of the array. if (!Array.prototype.unshift) { Array.prototype.unshift = function() { if (arguments.length) { var i, len = arguments.length; for (i = this.length + len - 1; i >= len; --i) { this[i] = this[i - len]; } for (i = 0; i < len; ++i) { this[i] = arguments[i]; } } return this.length; }; } // Adds and/or removes elements from an array. if (!Array.prototype.splice) { Array.prototype.splice = function(index, howMany) { var elements = [], removed = [], i; for (i = 2; i < arguments.length; ++i) { elements.push(arguments[i]); } for (i = index; (i < index + howMany) && (i < this.length); ++i) { removed.push(this[i]); } for (i = index + howMany; i < this.length; ++i) { this[i - howMany] = this[i]; } this.length -= removed.length; for (i = this.length + elements.length - 1; i >= index + elements.length; --i) { this[i] = this[i - elements.length]; } for (i = 0; i < elements.length; ++i) { this[index + i] = elements[i]; } return removed; }; } --- NEW FILE: todo.txt --- - DynamicTree different icons for nodes - DropDownMenuX support selectboxes on IE5.5 --- NEW FILE: license.txt --- Copyright (c) 2003,2004 Cezary Tomczak All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - Neither the name of the Cezary Tomczak nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -------------------------------------------------------------------------------- For more information on the mygosuMenu project, please see http://gosu.pl/dhtml/mygosumenu.html --- NEW FILE: index.htm --- <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> </body> </html> --- NEW FILE: readme.txt --- ---------------- ! ABOUT ---------------- mygosuMenu is a set of simple DHTML menus Link: http://gosu.pl/dhtml/mygosumenu.html This software has been released under a BSD-style licence. This essentially means free for any use, with the one condition that the author of this software be credited in appropriate documentation. Let me know if you find any of the menus useful. If you have any suggestions feel free to email me. My email: cagret[at]yahoo.com You can subscribe to new releases here: http://freshmeat.net/projects/mygosumenu ---------------- ! MENU TYPES ---------------- #1.0 DropDownMenu1 - 1 level drop down menu (horizontal, vertical). #1.1 DropDownMenuX - Drop down menu with unlimited nesting (horizontal, vertical). #1.2 TreeMenu #1.3 ClickShowHideMenu #1.4 XulMenu - windows like menu, unlimited nesting (horizontal, vertical) #1.5 DynamicTree & DynamicTreeBuilder ---------------- ! NOTES ---------------- Some of the menus include additional file to support IE 5.0: <script type="text/javascript" src="../ie5.js"></script> If you want to support IE 5.0 then you have to set a proper path to file ie5.js, if you don't wanna support this version of browser just remove that line. -- When no doctype is specified, Internet Explorer runs in "quirks" mode. It is for backward compatibility, and many css bugs appear. If you want to avoid them, use a doctype, not necessary xhtml. for example: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> or <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> -- IE Bug #1 (nested tables): Example not working on IE: <table><tr><td><table><tr><td> <table id="menu">....</table> <script>.. init menu ... </script> </td></tr></table></td></tr></table> Example that works on IE: <table><tr><td><table><tr><td> <table id="menu">....</table> </td></tr></table></td></tr></table> <script>.. init menu ... </script> Difference: Looks like initializing the menu on IE must be done after closing some tables. So if you are using nested tables, initialize the menu at the end of the page or use window.onload event: <script> window.onload = function() { .. init menu .. } </script> ---------------- ! CHANGELOG ---------------- *** 1.5.3 *** - #1.5 DynamicTree, added an example with folders as links, see /1.5/tests/foldersAsLinks.html - #1.3 ClickShowHideMenu, added an example that highlights active item, see /1.3/tests/highlightActive.html *** 1.5.2 *** - #1.5 DynamicTreeBuilder, a bug that could affect you if you had more than 20 records in a tree when starting editing. *** 1.5.1 *** - #1.1 menu works with selectboxes on IE6 - some bug fixes in #1.5 menu - some updates in readmes *** 1.5.0 *** - Added #1.5 menu, DynamicTree & DynamicTreeBuilder *** 1.4.1 *** - Added support for IE 5.0 & IE 5.5 in #1.0 / #1.1 / #1.4 menus - [js] fixed a bug that prevented #1.3 menu working on Konqueror - [html] fixed a bug with positioning in example 2 of #1.0 and #1.1 menu that appeared on some versions of IE6 (6.0.2600 on XP, 6.0.3790 on Windows Server 2003) *** 1.4.0 *** - Fixed a bug in #1.0 menu that appeared on IE 5.5 - Added new #1.4 menu and 2 examples *** 1.3.5 *** - Fixed a bug in menu #1.3 that appeared on newest Mozilla 1.7 & Firefox 0.9 - updated /1.1/DropDownMenuX.txt *** 1.3.4 *** - fixed a few bugs in #1.0 menu - #1.1 menu has been rewritten, now it supports vertical menus, a few bugs has been fixed, new features added. *** 1.3.3 *** - #1.0 menu has been rewritten, a few bugs fixed, new features added, see /1.0/DropDownMenu1.txt for more info - done some cleaning: file names etc *** 1.3.2 *** - Added another example of #1.1 menu See /1.1/menu2.html |