javascript 彈出浮動窗口二

  1. /*
  2.  * FCKeditor - The text editor for internet
  3.  * Copyright (C) 2003-2006 Frederico Caldeira Knabben
  4.  * 
  5.  * Licensed under the terms of the GNU Lesser General Public License:
  6.  *      http://www.opensource.org/licenses/lgpl-license.php
  7.  * 
  8.  * For further information visit:
  9.  *      http://www.fckeditor.net/
  10.  * 
  11.  * "Support Open Source software. What about a donation today?"
  12.  * 
  13.  * File Name: common.js
  14.  *  Common objects and functions shared by all pages that compose the
  15.  *  File Browser dialog window.
  16.  * 
  17.  * File Authors:
  18.  *      Frederico Caldeira Knabben ([email protected])
  19.  */
  20. function AddSelectOption( selectElement, optionText, optionValue )
  21. {
  22.     var oOption = document.createElement("OPTION") ;
  23.     oOption.text    = optionText ;
  24.     oOption.value   = optionValue ; 
  25.     selectElement.options.add(oOption) ;
  26.     return oOption ;
  27. }
  28. var oConnector  = window.parent.oConnector ;
  29. var oIcons      = window.parent.oIcons ;
  30. function StringBuilder( value )
  31. {
  32.     this._Strings = new Array( value || '' ) ;
  33. }
  34. StringBuilder.prototype.Append = function( value )
  35. {
  36.     if ( value )
  37.         this._Strings.push( value ) ;
  38. }
  39. StringBuilder.prototype.ToString = function()
  40. {
  41.     return this._Strings.join( '' ) ;
  42. }

 ------------------------------------------------------------------------------------------------------------------------------------------------------------

  1. /**
  2.  * POPUP CONTAINER STYLES
  3.  */
  4. #popupMask {
  5.     position: absolute;
  6.     z-index: 200;
  7.     top: 0px;
  8.     left: 0px;
  9.     width: 100%;
  10.     height: 100%;
  11.     opacity: .7; 
  12.     filter: alpha(opacity=70);
  13.     /* this hack is so it works in IE
  14.      * I find setting the color in the css gives me more flexibility 
  15.      * than the PNG solution.
  16.      */
  17.     background-color:transparent !important;
  18.     background-color: #333333;
  19.     /* this hack is for opera support
  20.      * you can uncomment the background-image if you don't care about opera.
  21.      * this gives you the flexibility to use any bg color that you want, instead of the png
  22.      */
  23.     background-image/**/: url("/images/album/maskBG.png") !important; // For browsers Moz, Opera, etc.
  24.     background-image:none;
  25.     background-repeat: repeat;
  26.     display:none;
  27. }
  28. #popupContainer {
  29.     position: absolute;
  30.     z-index: 201;
  31.     top: 0px;
  32.     left: 0px;
  33.     display:none;
  34.     padding: 0px;
  35. }
  36. #popupInner {
  37.     border: 2px solid #d7d7d7;
  38.     background-color: #ffffff;
  39. }
  40. #popupFrame {
  41.     margin: 0px;
  42.     width: 100%;
  43.     height: 100%;
  44.     position: relative;
  45.     z-index: 202;
  46. }
  47. #popupTitleBar {
  48.     
  49.     background-color: #ffffff;
  50.     color: #ffffff;
  51.     font-weight: bold;
  52.     height: 53px;
  53.     
  54.      
  55.     
  56.      
  57.     /*
  58.     background:url("/images/album/xc_01.gif") repeat ;
  59.     padding: 1px;
  60.     border-bottom: 2px solid #000000;
  61.     border-top: 1px solid #78A3F2;
  62.     border-left: 1px solid #78A3F2;
  63.     border-right: 1px solid #204095;
  64.     */
  65.     
  66.     position: relative;
  67.     z-index: 203;
  68.     
  69. }
  70. #popupTitle {
  71.     float:left;
  72.     font-size: 1.1em;
  73. }
  74. #popupControls {
  75.     float: right;
  76.     cursor: pointer;
  77.     cursor: hand;
  78. }
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章