From e67f4e7b19d3c78b07ca26662e83c506b2c2cfa4 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Tue, 26 Jul 2011 17:20:34 +0200 Subject: try mcdropdown instead --- src/main/webapp/css/jquery.mcdropdown.min.css | 1 + .../webapp/images/mcdropdown/mcdd_icon_hover.gif | Bin 0 -> 333 bytes .../webapp/images/mcdropdown/mcdd_icon_normal.gif | Bin 0 -> 121 bytes .../mcdropdown/mcdd_select_button_sprite.gif | Bin 0 -> 1495 bytes src/main/webapp/images/mcdropdown/shadow.png | Bin 0 -> 6117 bytes src/main/webapp/js/jquery.bgiframe.js | 100 ++ src/main/webapp/js/jquery.mcdropdown.js | 1139 ++++++++++++++++++++ src/main/webapp/js/jquery.mcdropdown.min.js | 22 + src/main/webapp/wayf-ndn.jsp | 14 +- 9 files changed, 1272 insertions(+), 4 deletions(-) create mode 100644 src/main/webapp/css/jquery.mcdropdown.min.css create mode 100644 src/main/webapp/images/mcdropdown/mcdd_icon_hover.gif create mode 100644 src/main/webapp/images/mcdropdown/mcdd_icon_normal.gif create mode 100644 src/main/webapp/images/mcdropdown/mcdd_select_button_sprite.gif create mode 100644 src/main/webapp/images/mcdropdown/shadow.png create mode 100644 src/main/webapp/js/jquery.bgiframe.js create mode 100644 src/main/webapp/js/jquery.mcdropdown.js create mode 100644 src/main/webapp/js/jquery.mcdropdown.min.js (limited to 'src/main/webapp') diff --git a/src/main/webapp/css/jquery.mcdropdown.min.css b/src/main/webapp/css/jquery.mcdropdown.min.css new file mode 100644 index 0000000..12ec51e --- /dev/null +++ b/src/main/webapp/css/jquery.mcdropdown.min.css @@ -0,0 +1 @@ +div.mcdropdown{position:absolute;border:1px solid #8e9daa;padding:1px;display:-moz-inline-block;display:inline-block;width:408px;height:14px;padding:2px;}div.mcdropdown input,div.mcdropdown div{position:absolute;background-color:#fff;left:0;top:0;width:98%;border:0;padding:2px 0 0 3px;font:11px Arial,Helvetica,sans-serif;}div.mcdropdown a{position:absolute;right:1px;top:1px;background:transparent url(../images/mcdropdown/mcdd_select_button_sprite.gif) no-repeat top left;display:-moz-inline-block;display:inline-block;height:16px;width:15px;text-decoration:none;font-size:0;z-index:2;outline:0;}div.mcdropdown a:hover,div.mcdropdown a:focus{background-position:0 -16px;}div.mcdropdown a:active{background-position:0 -32px;outline:none;}div.mcdropdownDisabled{background-color:#e1e0e0;filter:alpha(opacity=75);-moz-opacity:.75;opacity:.75;-khtml-user-select:none;-o-user-select:none;-moz-user-select:none;-moz-user-focus:ignore;-moz-user-input:disabled;}div.mcdropdownDisabled input{cursor:default;}div.mcdropdownDisabled a:hover,div.mcdropdownDisabled a:focus{background-position:0 0;cursor:default;}ul.mcdropdown_menu{display:none;margin:0;padding:0;list-style-type:none;float:left;clear:both;z-index:10000;-khtml-user-select:none;-o-user-select:none;-moz-user-select:none;-moz-user-focus:ignore;-moz-user-input:disabled;}ul.mcdropdown_menu ul{display:none;font:11px Arial,Helvetica,sans-serif;}ul.mcdropdown_menu ul{position:absolute;list-style-type:none;margin:0;margin-left:30px;padding:0;z-index:10000;}ul.mcdropdown_menu ul li{margin:0;min-width:150px;_width:150px;}ul.mcdropdown_menu{height:auto;background-color:#e1e0e0;padding:5px 5px;font:11px Arial,Helvetica,sans-serif;}ul.mcdropdown_menu li{padding:2px 20px 2px 6px;}ul.mcdropdown_menu li.mc_root{cursor:pointer;white-space:nowrap;color:#666;border-top:1px solid #fff;padding:2px 20px 2px 6px;margin:0 10px;}ul.mcdropdown_menu>li.mc_endcol{border-bottom:1px solid #fff;}ul.mcdropdown_menu li.mc_hover{background-color:#ccc!important;}ul.mcdropdown_menu>li:hover{border-top:1px solid #999;background-color:#999!important;color:#fff;}ul.mcdropdown_menu>li:hover.mc_endcol{border-bottom:1px solid #999;}ul.mcdropdown_menu>li:hover+li:not(.mc_firstrow){border-top:1px solid #999;}ul.mcdropdown_menu li.mc_parent{padding-right:20px!important;background:url(../images/mcdropdown/mcdd_icon_normal.gif) no-repeat 100% 50%;}ul.mcdropdown_menu li:hover.mc_parent{background:#999 url(../images/mcdropdown/mcdd_icon_hover.gif) no-repeat 100% 50%!important;color:#fff!important;}ul.mcdropdown_menu ul{background:#f0f0f0;border:1px solid #d0d0d0;padding-bottom:10px;visibility:hidden;}ul.mcdropdown_menu ul li{background:#f0f0f0;padding-left:16px!important;border-top:1px solid #fff;color:#666;white-space:nowrap;}ul.mcdropdown_menu ul li.mc_firstrow{border-top:1px solid #f0f0f0;}ul.mcdropdown_menu ul li.mc_endcol{border-bottom:1px solid #fff;}ul.mcdropdown_menu ul li:hover{background-color:#d6d6d6;border-top:1px solid #dedede;color:#666;}ul.mcdropdown_menu ul li.mc_endcol:hover{border-bottom:1px solid #dedede;}ul.mcdropdown_menu ul li:hover+li:not(.mc_firstrow){border-top:1px solid #dedede;}div.mcdropdown_shadow{display:none;position:absolute;margin:3px 0 0 3px;background:#000;filter:alpha(opacity=33);}html>body div.mcdropdown_shadow{margin:5px 0 0 5px;padding:5px 0 0 5px;background:transparent url(../images/mcdropdown/shadow.png) right bottom no-repeat!important;filter:none;}ul.mcdropdown_autocomplete{display:block;position:absolute;height:auto;max-height:210px;overflow-x:hidden;overflow-y:auto;clear:both;padding:5px 10px;background-color:#e1e0e0;z-index:10000;margin:0;list-style-type:none;width:392px;font:11px Arial,Helvetica,sans-serif;}ul.mcdropdown_autocomplete ul{display:none;list-style-type:none;margin:0;padding:0;}ul.mcdropdown_autocomplete ul li{margin:0;}ul.mcdropdown_autocomplete li{display:block;font:11px Arial,Helvetica,sans-serif;cursor:pointer;white-space:nowrap;color:#666;border-top:1px solid #fff;padding:2px 26px 2px 6px;}ul.mcdropdown_autocomplete li.mc_endcol{border-bottom:1px solid #fff;}ul.mcdropdown_autocomplete li.mc_parent{padding-right:20px!important;background:url(../images/mcdropdown/mcdd_icon_normal.gif) no-repeat 100% 50%;}ul.mcdropdown_autocomplete li.mc_hover{border-top:1px solid #999;background-color:#999!important;color:#fff;}ul.mcdropdown_autocomplete li.mc_hover_parent{background:#999 url(../images/mcdropdown/mcdd_icon_hover.gif) no-repeat 100% 50%!important;color:#fff!important;} \ No newline at end of file diff --git a/src/main/webapp/images/mcdropdown/mcdd_icon_hover.gif b/src/main/webapp/images/mcdropdown/mcdd_icon_hover.gif new file mode 100644 index 0000000..468f85b Binary files /dev/null and b/src/main/webapp/images/mcdropdown/mcdd_icon_hover.gif differ diff --git a/src/main/webapp/images/mcdropdown/mcdd_icon_normal.gif b/src/main/webapp/images/mcdropdown/mcdd_icon_normal.gif new file mode 100644 index 0000000..8e1d43b Binary files /dev/null and b/src/main/webapp/images/mcdropdown/mcdd_icon_normal.gif differ diff --git a/src/main/webapp/images/mcdropdown/mcdd_select_button_sprite.gif b/src/main/webapp/images/mcdropdown/mcdd_select_button_sprite.gif new file mode 100644 index 0000000..3412dbc Binary files /dev/null and b/src/main/webapp/images/mcdropdown/mcdd_select_button_sprite.gif differ diff --git a/src/main/webapp/images/mcdropdown/shadow.png b/src/main/webapp/images/mcdropdown/shadow.png new file mode 100644 index 0000000..64e7dc6 Binary files /dev/null and b/src/main/webapp/images/mcdropdown/shadow.png differ diff --git a/src/main/webapp/js/jquery.bgiframe.js b/src/main/webapp/js/jquery.bgiframe.js new file mode 100644 index 0000000..3a01f6e --- /dev/null +++ b/src/main/webapp/js/jquery.bgiframe.js @@ -0,0 +1,100 @@ +/* Copyright (c) 2006 Brandon Aaron (http://brandonaaron.net) + * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) + * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. + * + * $LastChangedDate: 2007-07-21 18:44:59 -0500 (Sat, 21 Jul 2007) $ + * $Rev: 2446 $ + * + * Version 2.1.1 + */ + +(function($){ + +/** + * The bgiframe is chainable and applies the iframe hack to get + * around zIndex issues in IE6. It will only apply itself in IE6 + * and adds a class to the iframe called 'bgiframe'. The iframe + * is appeneded as the first child of the matched element(s) + * with a tabIndex and zIndex of -1. + * + * By default the plugin will take borders, sized with pixel units, + * into account. If a different unit is used for the border's width, + * then you will need to use the top and left settings as explained below. + * + * NOTICE: This plugin has been reported to cause perfromance problems + * when used on elements that change properties (like width, height and + * opacity) a lot in IE6. Most of these problems have been caused by + * the expressions used to calculate the elements width, height and + * borders. Some have reported it is due to the opacity filter. All + * these settings can be changed if needed as explained below. + * + * @example $('div').bgiframe(); + * @before

Paragraph

+ * @result