JS Analysis HTML code IMG Image code

Source: Internet
Author: User
Tags save file

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>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.