JS Analysis HTML code IMG Image code
<script type= "Text/javascript" src= "Fckeditor.js" ></script>
<script language= "JavaScript" >
var dialog = Window.parent;
var oeditor = dialog. Innerdialogloaded ();
var Fcklang = Oeditor.fcklang;
var xeditor = OEDITOR.FCK;
Dialog. Setokbutton (FALSE);
function Ok () {
return true;
}
</script>
<body bgcolor= "#E3E3C7" leftmargin= "0" rightmargin= "0" >
<span id= "T" ></span>
<script language= "JavaScript" >
<!--
document.getElementById ("T"). Innerhtml= "In the analysis ...";
function GetFiles ()
{
var a=window.opener.fck.editordocument.body.innerhtml;
var a=xeditor.getxhtml ();
var re=/http://(w+.) + (NET|COM|CN|ORG|CC|TV) (s*/) (S) +. (Gif|jpg|png|bmp|jpeg)/gi;
var url=a.match (re);
if (url = null)
{
Url= "";
}
var ljflag=0;
var s= "";
s=s+ "<form method=post action=" save.php ' name= ' allfiles ' id= ' allfiles ' > ';
s=s+ "<table width=" 100% "cellspacing=" 0 "cellpadding=" 0 ">";
s=s+ "<tr height=" ><td colspan= "2" > Please select the picture to save:<br></td></tr> ";
for (Var i=0;i<url.length;i++)
{
for (Var ljtemp=0;ljtemp<i;ljtemp++)
{
if (Url[i]==url[ljtemp])
{
ljflag=1;
Break
}
Else
{
ljflag=0;
}
}
if (!ljflag)
{
s=s+ "<tr bgcolor=" #F1F1E3 "height=" ><td><input type= "checkbox" Checked name= "files[" "value=" "+url" [i]+ "" ></td><td><a href= "" +url[i]+ "" target= "_blank" > "+url[i]+" </a></td></tr > ";
}
}
s=s+ "<tr height=" ><td colspan= "2" ><br><input type= "submit" style= "color: #000000; border:1px solid #737357; Background-color: #C7C78F "name=" Button1 "value= Save to local" ><br/> save file may take a long time, please wait patiently after saving ......</td> </tr> ";
s=s+ "</table>";
s=s+ "</FORM>";
document.getElementById ("T"). Innerhtml=s;
}
SetTimeout ("GetFiles ()", 3000);
-->
</SCRIPT>