The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
I need someone good with html/javascript: Rapidshare Uploader
Ok I am working on a nicely working rapidshare uploader because there arent any good working ones right now. I have everything coded except one thing. I need the upload script to open in a new window. The page is: http://mac-warez.org/rapid.html. When you click browse and select a file, the upload button comes up. Once you click the upload button, it runs the script in the same window. I want this to open in a new window. this causes problems because the page runs in an iframe below the new topic part. the iframe has no scrolling and when the link comes up, you cant view it. If you need a better explanation or you have a question about it just reply. Please help! here is the code:
Code:
<body background="http://mac-warez.org/iSkin/misc/rapid.png"> <script type="text/javascript"> <!-- var multi = false; function switchfiles() { alert("Please note, the total sum of the files simultaneously uploading, cannot exceed 200 MB."); var text = ""; for (i=1;i<11;i++) { if (i < 10) text += '0'; text += i+'.'; text += '<input type="file" size="65" onchange="zeigeUploadBtn();"'; text += ' id="dateiname'; if (i > 1) text += i; text += '" name="filecontent'; if (i > 1) text += i; text += '"><br />'; } document.getElementById('files').innerHTML = text; multi = true; } var ok = false; function zeigeUploadBtn() { var dn = document.getElementById("dateiname").value; dn = dn.replace(/^\s+|\s+$/g, ''); var Woerter = dn.split("\\"); var dateiname = Woerter[Woerter.length-1]; if (dn.length < 1) { ok = false; return false; } ok = true; document.getElementById("btnupload").style.visibility = "visible"; var elem = document.getElementById("dname"); elem.firstChild.nodeValue = dateiname; if (multi) { for (i=2;i<11;i++) { dn = document.getElementById("dateiname"+i).value; dn = dn.replace(/^\s+|\s+$/g, ''); Woerter = dn.split("\\"); dateiname = Woerter[Woerter.length-1]; if (dn.length > 1) { elem.firstChild.nodeValue += ", "+dateiname; } } } } function zeigeProcess() { if (!ok) return false; document.getElementById("dateiwahl").style.display = "none"; document.getElementById("progbar").style.display = "block"; return true; } //--> </script> <form name="ul" method="post" action="http://rs337l3.rapidshare.com/cgi-bin/upload.cgi?rsuploadid=115526482266981846" enctype="multipart/form-data" onSubmit="return zeigeProcess();"> <div id="progbar" style="display:none;"> <iframe src="http://rs337l3.rapidshare.com/progress.html?uploadid=115526482266981846" name="pframe" width="100%" height="120" frameborder=0 marginwidth="0" marginheight="0" scrolling="no"></iframe> </div> <div id="dateiwahl"> <p> </p> <br> <center><table width="355" style="font-size:8pt;color:#002760;><tr><td align=left> <div id="files"> <input type="file" size="30" id="dateiname" name="filecontent" onChange="zeigeUploadBtn();" /> </div> </td></tr></table> <br /> <input type=image id="btnupload" name="u" src="http://mac-warez.org/iSkin/misc/rapid_submit.png" style="visibility:hidden;" /> </div></center> </form> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|