ظƒظˆط¯ ظ…ط±ظƒط² طھط*ظ…ظٹظ„ megaupload ظپظ‰ ظ…ظˆظ‚ط¹ظƒ ط¨ط§ظ„ظ„ط؛ط© ط§ظ„ط¹ط±ط¨ظٹط© ظˆط¨ط¯ظˆظ† ط§ط®ط·ط§ط،



السلام عليكم ورحمة الله وبركاته
اولا اشكر اخى الكريم HASsouni
على طرحه للكود code السابق ولكن كان باللغة الفرنسية وبه بعض الاخطاء
وكان على هذا الرابط
كود code مركز تحميل الملفات على موقعك من الموقع العالمي megaupload



الان هذا الكود code باللعة العربية وبدون اخطاء
فقط الصق الكود code فى اخر قالب template FORUMHOME
مثال على الكود code
http://www.saad6.com

الكود code


رمز PHP:
<code style="white-space:nowrap"> <code> <vb:literal>
<
div style="position: relative;">


<
style>

div.fileinputs
{
position: relative;
}
div.fakefile
{
position: absolute;
top: -5px;
left: 0px;
z-index: 1;
}
input.file
{
position: relative;
text-align: right;
-
moz-opacity:0 ;
filter:alpha(opacity: 0);
opacity: 0;
z-index: 2;

width:440px;

cursor:default;
}


.
file2
{
position: relative;
text-align: right;
-
moz-opacity:0 ;
filter:alpha(opacity: 0);
opacity: 0;
z-index: 2;
width:540px;
cursor:default;
}
</
style>

<
script type="text/javascript">

var
uploading = false;
var
percentage = 0;
var
status = 'Initalizing upload';
var
progress ='';
var
time_elapsed = '00:00:00';
var
speed = '0 KB/sec';
var
downloadurl='';
var
error='';
var
trnsfrd='';
var
speed = 'unknown';
var
multiuploads=false;
var
multiresult = new Array();

function
getFlashMovieObject()
{
return
document.getElementById('progress_bar');
}
function
SendDataToFlashMovie(per)
{
var
flashMovie=getFlashMovieObject();
flashMovie.SetVariable("/ercentage", per);
}


function
uploaddone()
{
uploading = false;
i=0;

// var resulthtml='<center><font style="color:#2ED100; font-family:arial; font-size:19px; font-weight:bold;">لقد اكتمل تحميل ملفك</font><br><br><br>';
var resulthtml='<center>';

while (
i < multiresult.length)
{

resulthtml = resulthtml + '<center><div style="position:relative; line-height:40px; margin-top:20px; margin-bottom:20px;"><font style="font-family:arial; font-size:18px; color:#000000; font-weight:bold;">' + multiresult&#91;i&#93;&#91;0&#93; + '</font> <font style="font-size:16px; font-family:arial;">(' + multiresult&#91;i&#93;&#91;1&#93; + ')</font><br><a href="' + multiresult&#91;i&#93;&#91;2&#93; + '" target="_blank" style="font-weight:normal; font-family:arial; font-size:18px; color:#FA5F03;">' + multiresult&#91;i&#93;&#91;2&#93; + '</a></div>';

if (
i !== multiresult.length-1)
{
resulthtml = resulthtml + '<IMG SRC="http://wwwstatic.megaupload.com/gui2/orange_line.gif" WIDTH="600" HEIGHT="1" BORDER="0" ALT=""></div></center>';
}
else
{
resulthtml = resulthtml + '</div></center>';
}

i=i+1;
}

var
height = 115*(multiresult.length+1);

document.getElementById('progresswindow').style.height = 260 + height;
document.getElementById('height1').style.height = 75 + height;
document.getElementById('top1').style.top = 236 + height;

document.getElementById('progress').style.display = 'none';
document.getElementById('uploadresult').innerHTML = resulthtml;
document.getElementById('uploadresult').style.display = '';

SendDataToFlashMovie(200);

}
function
showresult()
{
uploaddone();
}
function
showerror()
{

}

function
postprogress()
{
if (
uploading)
{
document.getElementById('progressform').submit();
}
}


function
extractFileName(fullpath)
{
var
maxlength = 30;
if (
fullpath.length > maxlength)
return
fullpath.substring(0, 10) + '..' + fullpath.substring(fullpath.length - maxlength - 3, fullpath.length);
else
return
fullpath;
}

function
updateprogress()
{
document.getElementById("progress1").innerHTML = progress;
document.getElementById("progress2").innerHTML = time_elapsed;;
document.getElementById("progress3").innerHTML = speed;
SendDataToFlashMovie(percentage);
}


function
transferdone()
{
SendDataToFlashMovie(100);
}



function
showfileuploads(num)
{
var
i=2;
while (
i < 11)
{
if (
i > (num+1))
{
document.getElementById('fileupload' + i).style.display = 'none';
}
else
{
document.getElementById('fileupload' + i).style.display = '';




}
i=i+1;
}
uploadsvar=num;
}

function
startupload()
{
if (
document.getElementById('multifile_0').value == '')
{

alert('يجب عليك تحديد ملف واحد على الأقل للتحميل.');

}
else if (
document.getElementById('multimessage_0').value == '')
{
document.getElementById('multimessage_0').focus();

alert('يرجى إدخال وصف للملف.');

}
else
{
i=1;
ul=true;
while ((
i < 10) && (ul))
{
if ((
document.getElementById('multifile_' + i).value !== '') && (document.getElementById('multimessage_' + i).value == ''))
{
document.getElementById('multimessage_' + i).focus();

alert('يجب عليك إدخال وصف للملف.' + (i+1) + '.');

ul=false;
}
i=i+1;
}
if (
ul)
{
document.getElementById('uploadform').submit();
document.getElementById('uploadwindow').style.display = 'none';
document.getElementById('tabs').style.display = 'none';
document.getElementById('progresswindow').style.display = '';
uploading = true;
setTimeout("postprogress();",1500);
}
}
}

function
cancelupload()
{

if (
confirm('هل أنت متأكد من أنك تريد إلغاء تحميلك؟'))

{

document.location='http://www.megaupload.com/';

}
}




</script>





<div style="position: relative; width: 970px; height: 410px; display: none;" id="progresswindow">

<div style="position: absolute; left: -1px; top: -4px; background-image: url(&quot;http://wwwstatic.megaupload.com/gui2/upload2.jpg&quot; width: 994px; height: 165px;"></div>

<div style="position: absolute; width: 994px; height: 225px; top: 161px; left: -1px; background-image: url(&quot;http://wwwstatic.megaupload.com/gui2/sub_tab_mid.gif&quot;" id="height1"></div>
<div style="position: absolute; width: 994px; height: 16px; top: 386px; left: -1px; background-image: url(&quot;http://wwwstatic.megaupload.com/gui2/sub_tab_bot.gif&quot;" id="top1"></div>

<div style="position: absolute; left: 3px; top: -4px;">
<script type="text/javascript">
var fo = new FlashObject("http://wwwstatic.megaupload.com/gui2/upload.swf", "progress_bar", "984", "256", 0, "#ffffff");
fo.addParam("wmode", "transparent");
fo.addVariable("ver", "عملية التحقق");
fo.addVariable("cancel", "");
fo.addVariable("upp", "تقدّم التحميل");
fo.addVariable("upc", "اكتمل التحميل");
fo.write();
</script><embed pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" src="http://wwwstatic.megaupload.com/gui2/upload.swf" id="progress_bar" bgcolor="#ffffff" quality="high" wmode="transparent" flashvars="ver=عملية التحقق&amp;cancel=&amp;upp=تقدّم التحميل&amp;upc=اكتمل التحميل" allowscriptaccess="always" align="middle" height="256" width="984">
</div>








<div style="position: absolute; left: 100px; top: 256px;" id="progress">
<table style="font-family: arial; line-height: 40px; font-size: 18px;" cellpadding="0" cellspacing="0">

<tbody><tr>
<td align="right" width="400">الوقت المتبقي المقدر:&nbsp;&nbsp;</td>
<td align="left" width="400"><div id="progress1" style="font-weight: bold;">...</div></td>
</tr>
<tr>
<td align="right">الوقت المنقضي:&nbsp;&nbsp;</td>
<td align="left"><div id="progress2" style="font-weight: bold;">...</div></td>
</tr>
<tr>

<td align="right">سرعة النقل:&nbsp;&nbsp;</td>
<td align="left"><div id="progress3" style="font-weight: bold;">...</div></td>
</tr>
</tbody></table>
</div>


<div style="position: absolute; left: 45px; top: 256px; width: 900px;" id="uploadresult">&nbsp;</div>









</div>

<div style="position: relative; margin-left: -1px; margin-top: 0px; margin-bottom: 6px; height: 472px; display: none;" id="multiuploader">
<script type="text/javascript">

function enterdescription() { alert('يرجى إدخال وصف للملف.');}

var fo = new FlashObject("http://wwwstatic.megaupload.com/gui2/multiupload.swf", "multiuploaderswf", "992", "472", 0, "#ffffff");
fo.addParam("wmode", "transparent");
fo.addParam("scale", "noscale");
fo.addParam("salign", "lt");
fo.addVariable("txt01", "إضافة ملفات");
fo.addVariable("txt02", "تحميل ملفات");
fo.addVariable("txt03", "أدخل وصفاً");
fo.addVariable("txt04", "إزالة جميع الملفات");
fo.addVariable("txt05", "خطأ في الاتصال بالمخدّم يرجى المحاولة مرة أخرى لاحقاً");
fo.addVariable("txt06", "أضيف الملف");
fo.addVariable("txt07", "اصطفّ الملف");
fo.addVariable("txt08", "انتهى");
fo.addVariable("txt09", "خطأ");
fo.addVariable("txt10", "ألغي");
fo.addVariable("txt11", "وصف ملف جديد: ");
fo.addVariable("txt12", " ملفات جديدة معلّقة");
fo.addVariable("txt13", "وصف للملف:");
fo.addVariable("txt14", " ملفات معلّقة");
fo.addVariable("txt15", "ملف ");
fo.addVariable("txt16", " من ");
fo.addVariable("txt17", "لن يكون باستطاعتك تحميل ملف دون إدراج وصف له.");
fo.addVariable("txt18", "حفظ");
fo.addVariable("txt19", "إلغاء التحميل");
fo.addVariable("txt20", "الوقت التقديري: ");
fo.addVariable("txt21", "ابدأ من جديد");
fo.addVariable("txt22", "حجم الحزمة:");
fo.addVariable("txt23", "الزمن الإجمال المتبقي:");
fo.addVariable("txt24", "سرعة النقل:");
fo.addVariable("txt25", "(ماهذا؟)");
fo.addVariable("txt26", "(اختياري)");
fo.addVariable("txt27", "وصف الملف");
fo.addVariable("txt28", "تبادل الزوّار");
fo.addVariable("txt29", "بريد المستلم");
fo.addVariable("txt30", "بريدك الإلكتروني");
fo.addVariable("txt31", "أربطه بكلمة مرور");
fo.addVariable("txt32", "عدّة مستلمين");
fo.addVariable("txt33", "ابدأ من جديد");
fo.addVariable("txt34", "غير معروف");
fo.addVariable("txt35", "للعضو المتميز فقط");
fo.addVariable("txt36", "Close");
fo.addVariable("txt37", "Warning - files dropped");
fo.addVariable("txt38", "Some files were dropped because you exceeded the limit (");
fo.addVariable("txt39", " files). Please remove some files before adding new ones.");
fo.addVariable("txt40", "Warning - file limit reached");
fo.addVariable("txt41", "It is not possible to add more files because you reached the limit (");
fo.addVariable("txt42", " files). Please remove some files before adding new ones.");
fo.addVariable("txt43", "Export files to a text file");

fo.addVariable("site", "0");
fo.write();
</script><embed pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" src="http://wwwstatic.megaupload.com/gui2/multiupload.swf" id="multiuploaderswf" bgcolor="#ffffff" quality="high" wmode="transparent" scale="noscale" salign="lt" flashvars="txt01=إضافة ملفات&amp;txt02=تحميل ملفات&amp;txt03=أدخل وصفاً&amp;txt04=إزالة جميع الملفات&amp;txt05=خطأ في الاتصال بالمخدّم يرجى المحاولة مرة أخرى لاحقاً&amp;txt06=أضيف الملف&amp;txt07=اصطفّ الملف&amp;txt08=انتهى&amp;txt09=خطأ&amp;txt10=ألغي &amp;txt11=وصف ملف جديد: &amp;txt12= ملفات جديدة معلّقة&amp;txt13=وصف للملف:&amp;txt14= ملفات معلّقة&amp;txt15=ملف &amp;txt16= من &amp;txt17=لن يكون باستطاعتك تحميل ملف دون إدراج وصف له.&amp;txt18=حفظ&amp;txt19=إلغاء التحميل&amp;txt20=الوقت التقديري: &amp;txt21=ابدأ من جديد&amp;txt22=حجم الحزمة:&amp;txt23=الزمن الإجمال المتبقي:&amp;txt24=سرعة النقل:&amp;txt25=(ماهذا؟)&amp;txt26=(اختياري)&amp; txt27=وصف الملف&amp;txt28=تبادل الزوّار&amp;txt29=بريد المستلم&amp;txt30=بريدك الإلكتروني&amp;txt31=أربطه بكلمة مرور&amp;txt32=عدّة مستلمين&amp;txt33=ابدأ من جديد&amp;txt34=غير معروف&amp;txt35=للعضو المتميز فقط&amp;txt36=Close&amp;txt37=Warning - files dropped&amp;txt38=Some files were dropped because you exceeded the limit (&amp;txt39= files). Please remove some files before adding new ones.&amp;txt40=Warning - file limit reached&amp;txt41=It is not possible to add more files because you reached the limit (&amp;txt42= files). Please remove some files before adding new ones.&amp;txt43=Export files to a text file&amp;site=0" allowscriptaccess="always" align="middle" height="472" width="992">
</div>



<div style="position: relative; margin-top: 8px; margin-bottom: 15px; height: 150px;" id="singleuploader">


<div style="position: absolute; left: 0px; top: -12px; width: 994px; height: 165px; background-image: url(&quot;http://wwwstatic.megaupload.com/gui2/upload2.jpg&quot; display: none;" id="singleuploadbg1"></div>
<div style="position: absolute; width: 994px; height: 220px; top: 153px; left: 0px; background-image: url(&quot;http://wwwstatic.megaupload.com/gui2/sub_tab_mid.gif&quot; display: none;" id="singleuploadbg2"></div>
<div style="position: absolute; width: 994px; height: 16px; top: 373px; left: 0px; background-image: url(&quot;http://wwwstatic.megaupload.com/gui2/sub_tab_bot.gif&quot; display: none;" id="singleuploadbg3"></div>



<div style="position: absolute; top: -5px; left: 0px; width: 986px;">
<script type="text/javascript">

function resizeuploader(state)
{
if (state == 1)
{
document.getElementById('singleuploaderswf').heigh t = 150;
document.getElementById('singleuploader').style.he ight = 150;
}
else if(state == 2)
{
document.getElementById('singleuploaderswf').heigh t = 320;
document.getElementById('singleuploader').style.he ight = 320;
}
else if(state == 3)
{
document.getElementById('singleuploaderswf').heigh t = 380;
document.getElementById('singleuploader').style.he ight = 380;
document.getElementById('singleuploadbg1').style.d isplay = '';
document.getElementById('singleuploadbg2').style.d isplay = '';
document.getElementById('singleuploadbg3').style.d isplay = '';
}
}

var fo = new FlashObject("http://wwwstatic.megaupload.com/gui2/ru.swf", "singleuploaderswf", "986", "150", 0, "#ffffff");
fo.addParam("wmode", "transparent");
fo.addParam("scale", "noscale");
fo.addParam("salign", "lt");
fo.addVariable("language", "sa");
fo.addVariable("latin", "0");
fo.addVariable("server", "http://www707.megaupload.com/");
fo.addVariable("txt01", "الوقت المتبقي المقدر");
fo.addVariable("txt02", " of ");
fo.addVariable("txt03", "حدّد ملفاً من فضلت كي تحمّله");
fo.addVariable("txt04", "متقدم");
fo.addVariable("txt05", "تبادل الزوّار:");
fo.addVariable("txt06", "ما هذا؟?");
fo.addVariable("txt07", "متقدم");
fo.addVariable("txt08", "إغلاق");
fo.addVariable("txt09", "إيميل المستلم");
fo.addVariable("txt10", "بريدك الإلكتروني");
fo.addVariable("txt11", "كلمة سر الارتباط");
fo.addVariable("txt12", "عدة مستلمين");
fo.addVariable("txt13", "(اختياري)");
fo.addVariable("txt14", "(للعضو المتميز فقط)");
fo.addVariable("txt15", "إحضار الملفات HTTP / FTP");
fo.addVariable("txt16", "ألغي التحميل");
fo.addVariable("txt17", "الوقت المتبقي المقدر:");
fo.addVariable("txt18", "الزمن المنقضي:");
fo.addVariable("txt19", "سرعة النقل:");
fo.addVariable("txt20", "حدّد ملفاً من فضلت كي تحمّله");
fo.addVariable("txt21", "أدخل وصفاً للملف من فضلك");
fo.addVariable("txt22", "بإرسالك الملفات عن طريق ميغاآبلود تشير إلى موافقتك على شروط الخدمة المتعلقة بموقعنا.");
fo.addVariable("txt23", "وصلة تبادل الزّوار (للعضو المتميز فقط).");
fo.addVariable("txt24", "المحمّل المتعدّد");
fo.addVariable("txt25", "ما معنى تبادل الزوّار");
fo.addVariable("txt26", " (المزيد من المعلومات) ");
fo.addVariable("txt27", "An error occured, please try again.");
fo.addVariable("txt28", "This file's size exceeds the size limit of 2GB per file.");
fo.addVariable("txt29", "To upload files larger than 2 GB please click here.");
fo.addVariable("txt30", "إغلاق");
fo.addVariable("upp_size","16");
fo.addVariable("bigfileurl", "http://www.megaupload.com/multiupload/");
fo.addVariable("cancel", "إلغاء");
fo.addVariable("upp", "تقدّم التحميل");
fo.addVariable("ver", "عملية التحقق");
fo.addVariable("upc", "اكتمل التحميل");
fo.write();
</script><embed pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" src="http://wwwstatic.megaupload.com/gui2/ru.swf" id="singleuploaderswf" bgcolor="#ffffff" quality="high" wmode="transparent" scale="noscale" salign="lt" flashvars="language=sa&amp;latin=0&amp;server=http ://www707.megaupload.com/&amp;txt01=الوقت المتبقي المقدر&amp;txt02= of &amp;txt03=حدّد ملفاً من فضلت كي تحمّله&amp;txt04=متقدم&amp;txt05=تبادل الزوّار:&amp;txt06=ما هذا؟?&amp;txt07=متقدم&amp;txt08=إغلاق&amp;txt09=إي ميل المستلم&amp;txt10=بريدك الإلكتروني&amp;txt11=كلمة سر الارتباط&amp;txt12=عدة مستلمين&amp;txt13=(اختياري)&amp;txt14=(للعضو المتميز فقط)&amp;txt15=إحضار الملفات HTTP / FTP&amp;txt16=ألغي التحميل&amp;txt17=الوقت المتبقي المقدر:&amp;txt18=الزمن المنقضي:&amp;txt19=سرعة النقل:&amp;txt20=حدّد ملفاً من فضلت كي تحمّله&amp;txt21=أدخل وصفاً للملف من فضلك&amp;txt22=بإرسالك الملفات عن طريق ميغاآبلود تشير إلى موافقتك على شروط الخدمة المتعلقة بموقعنا.&amp;txt23=وصلة تبادل الزّوار (للعضو المتميز فقط).&amp;txt24=المحمّل المتعدّد&amp;txt25=ما معنى تبادل الزوّار&amp;txt26= (المزيد من المعلومات) &amp;txt27=An error occured, please try again.&amp;txt28=This file's size exceeds the size limit of 2GB per file.&amp;txt29=To upload files larger than 2 GB please click here.&amp;txt30=إغلاق&amp;upp_size=16&amp;bigfileu rl=http://www.megaupload.com/multiupload/&amp;cancel=إلغاء&amp;upp=تقدّم التحميل&amp;ver=عملية التحقق&amp;upc=اكتمل التحميل" allowscriptaccess="always" align="middle" height="150" width="986">
</div>

</div>
</vb:literal>
</code> </code>






التعديل الأخير كان بواسطة ابو عيسى; 25 - 11 - 2014 الساعة 05:53




©المشاركات المنشورة تعبر عن وجهة نظر صاحبها فقط، ولا تُعبّر بأي شكل من الأشكال عن وجهة نظر إدارة المنتدى©