fckurlparams.js
上传用户:li2971742
上传日期:2021-11-18
资源大小:39096k
文件大小:1k
源码类别:

OA系统

开发平台:

C#

  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: fckurlparams.js
  14.  *  Defines the FCKURLParams object that is used to get all parameters
  15.  *  passed by the URL QueryString (after the "?").
  16.  * 
  17.  * File Authors:
  18.  *  Frederico Caldeira Knabben (fredck@fckeditor.net)
  19.  */
  20. // #### URLParams: holds all URL passed parameters (like ?Param1=Value1&Param2=Value2)
  21. var FCKURLParams = new Object() ;
  22. var aParams = document.location.search.substr(1).split('&') ;
  23. for ( var i = 0 ; i < aParams.length ; i++ )
  24. {
  25. var aParam = aParams[i].split('=') ;
  26. var sParamName  = aParam[0] ;
  27. var sParamValue = aParam[1] ;
  28. FCKURLParams[ sParamName ] = sParamValue ;
  29. }