Hello all,

I've done my research and couldn't find an answer but I couldn't. I need javascript code which I will paste into navigation bar in format like this.


I want to write a JavaScript code which will click swf button and open it to read image file from Hard Drive and upload it to web form. Or any other solution which would upload image from Hard Drive for me.

This the HTML code of the form

    <ul id="plupload-container_post-ad_image-select" class="image-container-droppable">
    <li id="image-upload-trigger-container" style="visibility: visible;">
    <a id="plupload-select_post-ad_image-select" class="secondary button" href="#">Add image</a>
    <div id="p17fn085741qvovjsbhpcse1ff90_flash_container" class="plupload flash" style="position: absolute; top: 0px; background: none repeat scroll 0% 0% transparent; z-index: 99999; width: 90px; height: 27px; left: 0px; cursor: pointer;">
    <object id="p17fn085741qvovjsbhpcse1ff90_flash" width="100%" height="100%" style="outline:0" data="/common/plupload/plupload.flash.swf" type="application/x-shockwave-flash">
    <param value="/common/plupload/plupload.flash.swf" name="movie">
    <param value="id=p17fn085741qvovjsbhpcse1ff90" name="flashvars">
    <param value="transparent" name="wmode">
    <param value="always" name="allowscriptaccess">
In FireBug I see that there is a function that might trigger the uploading.


And here goes the code of function if it's necessary.


So once I have to JS code I will execute it in navigation bar.