⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cross-domain.html

📁 基于actionscript3.0的flashLoading控件
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="style.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>

<body>
<div id="Layer1" style="position:absolute; left:10px; top:13px; width:725px; height:36px; z-index:1">
  <h2 class="title">Flash Player Security</h2>
  <p class="title"><font size="2"><span style="font-weight: 400">The Flash 
	Player 7 includes an additional security feature that does not allow scripts 
	to be read across domains. It also does not recognize two URLs for the same 
	site, with and without &quot;www&quot;, as being on the same domain. For example, </span>
	http://www.yourdomain.com<span style="font-weight: 400"> or not recognized 
	as being the same as </span>http://yourdomain.com</font></p>
	<p class="title"><font size="2"><span style="font-weight: 400">If you chose 
	to specify a full URL in the &quot;PHP Path&quot; and &quot;Image Path&quot; parameters of the bannerRotator component, 
	for example </span>http://www.yourdomain.com/banner_scripts<span style="font-weight: 400">, 
	and your site is accessed by the URL </span>http://yourdomain.com<span style="font-weight: 400">, 
	a security message will appear from the Flash 7 Player, asking to verifying 
	the transfer of data.</span></font></p>
	<p class="title"><font size="2"><span style="font-weight: 400">The solution 
	that Macromedia have is to create a </span>crossdomain.xml<span style="font-weight: 400"> 
	policy file on your webserver. This is how you would create it:</span></font></p>
	<p class="title"><font size="2"><span style="font-weight: 400">1. Open a new 
	document in a text editor, such as Notepad.<br>
	2. Paste the following code into the document:</span></font></p>
	<p class="title"><font size="2" color="#008000">
	<span style="font-weight: 400">&lt;?xml version=&quot;1.0&quot;?&gt;<br>
	&lt;!DOCTYPE cross-domain-policy SYSTEM &quot;http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd&quot;&gt;<br>
	&lt;cross-domain-policy&gt;<br>
	&lt;allow-access-from domain=&quot;yourdomain.com&quot; /&gt;<br>
	&lt;/cross-domain-policy&gt;</span></font></p>
	<p class="title"><font size="2"><span style="font-weight: 400">3. Change &quot;yourdomain.com&quot; 
	with your own domain, without the &quot;www&quot;.<br>
	4. Save this file under the name: </span>crossdomain.xml<span style="font-weight: 400"><br>
	5. Upload this file to the root of your webserver (usually the same place 
	where the HTML files reside).</span></font></p>
	<p class="title"><font size="2"><span style="font-weight: 400"><br>
	</span></font><font size="2"><span style="font-weight: 400">For more 
	information on the cross-domain policy file, please see the following 
	Macromedia article:<br>
	<a href="http://www.macromedia.com/support/flash/ts/documents/loadvars_security.htm">
	http://www.macromedia.com/support/flash/ts/documents/loadvars_security.htm</a></span></font></p>
	<p class="title">&nbsp;</p>
	<p class="title">&nbsp;</p>
<p class="title"></div>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -