ciframe.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <!--
  3. * FCKeditor - The text editor for Internet - http://www.fckeditor.net
  4. * Copyright (C) 2003-2010 Frederico Caldeira Knabben
  5. *
  6. * == BEGIN LICENSE ==
  7. *
  8. * Licensed under the terms of any of the following licenses at your
  9. * choice:
  10. *
  11. * - GNU General Public License Version 2 or later (the "GPL")
  12. * http://www.gnu.org/licenses/gpl.html
  13. *
  14. * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
  15. * http://www.gnu.org/licenses/lgpl.html
  16. *
  17. * - Mozilla Public License Version 1.1 or later (the "MPL")
  18. * http://www.mozilla.org/MPL/MPL-1.1.html
  19. *
  20. * == END LICENSE ==
  21. -->
  22. <html>
  23. <head>
  24. <title></title>
  25. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  26. <script type="text/javascript">
  27. function gup( name )
  28. {
  29. name = name.replace( /[\[]/, '\\\[' ).replace( /[\]]/, '\\\]' ) ;
  30. var regexS = '[\\?&]' + name + '=([^&#]*)' ;
  31. var regex = new RegExp( regexS ) ;
  32. var results = regex.exec( window.location.href ) ;
  33. if( results == null )
  34. return '' ;
  35. else
  36. return results[ 1 ] ;
  37. }
  38. function sendData2Master()
  39. {
  40. var destination = parent.parent ;
  41. try
  42. {
  43. if ( destination.XDTMaster )
  44. {
  45. var t = destination.XDTMaster.read( [ gup( 'cmd' ), gup( 'data' ) ] ) ;
  46. window.clearInterval( interval ) ;
  47. }
  48. }
  49. catch (e) {}
  50. }
  51. function onLoad()
  52. {
  53. interval = window.setInterval( sendData2Master, 100 );
  54. }
  55. </script>
  56. </head>
  57. <body onload="onLoad()">
  58. <p></p>
  59. </body>
  60. </html>