Rank: Member
Groups: Administration
Joined: 6/12/2007(UTC) Posts: 28
|
Code:<script type="text/javascript">
//Create JavaScript object that will embed Image Uploader to the page.
var iu = new ImageUploaderWriter("ImageUploader1", 750, 350);
//For ActiveX control full path to CAB file (including file name) should be specified.
iu.activeXControlCodeBase = "../includes/ImageUploader4.cab";
iu.activeXControlVersion = "4,1,60,0";
//For Java applet only path to directory with JAR files should be specified (without file name).
iu.javaAppletCodeBase = "../includes/";
iu.javaAppletCached = true;
iu.javaAppletVersion = "2.1.60.0";
iu.showNonemptyResponse = "off";
//Configure appearance.
iu.addParam("PaneLayout", "ThreePanes");
iu.addParam("FolderView", "Thumbnails");
iu.addParam("BackgroundColor", "#eff1f9");
iu.addParam("ShowUploadListButtons", "true");
iu.addParam("ButtonRemoveFromUploadListText", "");
iu.addParam("ButtonRemoveAllFromUploadListText", "Remove All");
iu.addParam("ShowDescriptions", "false");
iu.addParam("EnableRotate", "true");
iu.addParam("ShowButtons", "false");
//Hide standard upload pane.
iu.addParam("FolderPaneHeight", "-1");
//iu.addParam("UploadSourceFile", "false");
//Configure thumbnail settings.
iu.addParam("UploadThumbnail1FitMode", "Width");
iu.addParam("UploadThumbnail1Width", "550");
iu.addParam("UploadThumbnail1JpegQuality", "75");
iu.addParam("UploadThumbnail1CopyExif", "false");
iu.addParam("UploadThumbnail1ResizeQuality", "High");
iu.addParam("UploadThumbnail1FallbackMode", "SourceFile");
iu.addParam("FilesPerOnePackageCount", "1");
iu.addParam("AutoRecoverMaxTriesCount", "2");
//Configure URL files are uploaded to.
iu.addParam("Action", "iu_upload.pl");
//Configure URL where to redirect after upload.
iu.addParam("RedirectUrl", "images.pl");
//Add event handlers.
iu.addEventListener("UploadFileCountChange", "ImageUploader_UploadFileCountChange");
iu.addEventListener("BeforeUpload", "ImageUploader_BeforeUpload")
iu.fullPageLoadListenerName = "fullPageLoad";
// File Restrictions
iu.addParam("FileMask", "*.*");
//Tell Image Uploader writer object to generate all necessary HTML code to embed
//Image Uploader to the page.
iu.writeHtml();
</script>
Edited by user Friday, February 22, 2008 5:07:27 PM(UTC)
| Reason: Not specified
|