ciframe.html 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <!--
  3. Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
  4. For licensing, see LICENSE.html or http://ckeditor.com/license
  5. -->
  6. <html>
  7. <head>
  8. <title></title>
  9. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  10. <script type="text/javascript">
  11. function gup( name )
  12. {
  13. name = name.replace( /[\[]/, '\\\[' ).replace( /[\]]/, '\\\]' ) ;
  14. var regexS = '[\\?&]' + name + '=([^&#]*)' ;
  15. var regex = new RegExp( regexS ) ;
  16. var results = regex.exec( window.location.href ) ;
  17. if ( results )
  18. return results[ 1 ] ;
  19. else
  20. return '' ;
  21. }
  22. var interval;
  23. function sendData2Master()
  24. {
  25. var destination = window.parent.parent ;
  26. try
  27. {
  28. if ( destination.XDTMaster )
  29. {
  30. var t = destination.XDTMaster.read( [ gup( 'cmd' ), gup( 'data' ) ] ) ;
  31. window.clearInterval( interval ) ;
  32. }
  33. }
  34. catch (e) {}
  35. }
  36. function onLoad()
  37. {
  38. interval = window.setInterval( sendData2Master, 100 );
  39. }
  40. </script>
  41. </head>
  42. <body onload="onLoad()"><p></p></body>
  43. </html>