HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: copy only text + flash errors
Author: hghh
Date: 09/07/2008 13:48
 
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="-1">
<title>Test</title>

<script language=javascript>

  var aicc_sid = '';
  var aicc_url = '';

 
//---------------------------------------------------------------------------
  // closeSession - handler on beforeunload BODY
  // LK 07.12.05
  //
  // parametry: 
  // url - øetìzec specifikující komunikaèní stránku
  // sid - øetìzec specifikující session_id pro komunikaci AICC
  //            
  function closeSession() {

    //pokud nebylo ještì odesláno exitAU, odešli právì teï
	  if(exitAU!=1) {
	    sendExitAU(aicc_url, aicc_sid);
	  }

	} /*** closeSession ***/
		
 
//---------------------------------------------------------------------------
  // sendExitAU - pošle ExitAU na komunikaèní stránku
  // LK 07.12.05
  //
  // parametry: 
  // url - øetìzec specifikující komunikaèní stránku
  // sid - øetìzec specifikující session_id pro komunikaci AICC
  //            
  function sendExitAU(url, sid) {

      //vytvoø objekt xmlhttp
      var xmlhttp = createMSXMLActiveXObject('XmlHttp');
      
      //odešli ExitAU
      xmlhttp.open('POST', url, false);
      xmlhttp.setRequestHeader('Content-Type',
'application/x-www-form-urlencoded');
     
xmlhttp.send('command=ExitAU&version=2.1&session_id='+sid+'&aicc_data=');

      //pokud došlo k chybì, zobraz hlášení
      if(xmlhttp.responseText.substring(0,7)!='error=0') {
        alert('Error while trying to send ExitAU.\n\n' +
xmlhttp.responseText);
      }
     
  } /*** sendExitAU ***/

  //-------------------------------------------------------------------
  // createMSXMLActiveXObject
  // LK 27.07.04
  //
  // Vytvoøí objekt MSXML dle nainstalované verze na klientu
  //
  // parametry: 
  // component_name - název tøídy ActiveX z knihovny MSXML, 
  //                  jejíž instance má být vytvoøena
  //
  function createMSXMLActiveXObject(component_name)
  {
      var prefixes = ["MSXML2", "Microsoft", "MSXML", "MSXML3", "MSXML4",
"MSXML5", "MSXML6"];
      var obj;
      
      for (var i=0; i<prefixes.length; i++)
      {
        try 
        {
          obj = new ActiveXObject(prefixes[i] + "." + component_name);
          return obj;
        }
        catch (ex)
        {
          //
        }
      }
      throw new Error("Could not find an installed XML parser");

  } /*** createMSXMLActiveXObject ***/

	</script>
</head>
<body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0"
bgcolor="#ffffff" onbeforeunload="javascript: return close_movie();"
onunload="closeSession()" onload="javascript: setparams();">
<script language='JavaScript'>
<!--
var exitAU = 0;

var InternetExplorer = navigator.appName.indexOf('Microsoft') != -1;
function close_movie(){
   if(exitAU != 1){
      return('Test musíte vždy ukonèit pomoci akce Konec v nabídce kurzu
!\n\nStisknìnì tlaèítko Storno !');
   }
}
function test1_DoFSCommand(command,args){
   var test1Obj = InternetExplorer ? test1 : document.test1;
   if(command == 'exit'){
      exitAU = 1;
      self.close();
   }
   if(command == 'openpicture'){
	var arg1 = "";
	var arg2 = "";
	var arg3 = "";
	var index1 = 0;
	var index2 = 0;

	index1 = args.indexOf(",",0);
	index2 = args.indexOf(",",index1+1);
	arg1 = args.substring(0,index1);
	arg2 = args.substring(index1+1,index2);
	arg3 = args.substr(index2+1);
	window.open(arg1,arg2,arg3);
   }

}

function TheoryLinkPressed(){
 var test1Obj = InternetExplorer ? test1 : document.test1;
	test1Obj.TCallLabel("/","TheoryLinkCallBack");
}


if (navigator.appName && navigator.appName.indexOf('Microsoft') != -1 &&
navigator.userAgent.indexOf('Windows') != -1 &&
navigator.userAgent.indexOf('Windows 3.1') == -1) {
   document.write('<SCRIPT LANGUAGE=VBScript\> \n');
   document.write('on error resume next \n');
   document.write('Sub test1_FSCommand(ByVal command, ByVal args)\n');
      document.write('call test1_DoFSCommand(command, args)\n');
   document.write('end sub\n');
   document.write('</SCRIPT\> \n');
}
function setparams(){
   var par = document.location.search;
   par = par.substr(1,par.length-1);
   par = par.split('&');
   for(var i=0; i< par.length;i++){	  
      j = par[i].indexOf('=');
      if(j > 0)
		   
window.document.test1.SetVariable(par[i].substr(0,j),par[i].substr(j+1));
        if (par[i].substr(0,j).toLowerCase()=='aicc_url') {
          aicc_url = par[i].substr(j+1);
        }
        if (par[i].substr(0,j).toLowerCase()=='aicc_sid') {
          aicc_sid = par[i].substr(j+1);
        }
      }	

	window.frame1.document.write('<script language="JavaScript">\n');
	window.frame1.document.write('function TheoryLinkPressed(){\n');
	window.frame1.document.write('parent.TheoryLinkPressed();}\n');
	window.frame1.document.write('</script>\n');

}
//-->
</script>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"

codebase=http://active.macromedia.com/flash2/cabs/swflash.cab#version=6,0,0,0
 id=test1 width=790 height=570>
 <param name=movie value="test1.swf">

 <param name=quality value=high> 
 <param name=bgcolor value=#ffffff> 
 <param name=menu value=false>
 <param name=swLiveConnect value=true>
<EMBED name="test1" src="test1.swf" 
  quality="high" menu="false" swLiveConnect="true" bgcolor=#ffffff width=790
height=570 
  type="application/x-shockwave-flash" 
 
pluginspage=http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash
</EMBED>
</object>
<iframe id='frame1' name='frame1' width=0 height=0
style='visibility:hidden;position:absolute'></iframe> 
</body>
</html>

 
Reply Create subthread


All articles

Subject Author Date
copy only text + flash errors

05/29/2008 17:26
Re: copy only text + flash errors

05/29/2008 17:57
Re: copy only text + flash errors

05/29/2008 18:03
Re: copy only text + flash errors

05/30/2008 05:23
Re: copy only text + flash errors

09/07/2008 13:48




5

Created with FORUM 2.0.11