Sign in to follow this  
Followers 0
Delta01

Including javascript

2 posts in this topic

As the title says, I've found some javascript that can upload to imageshack w/o the need for a browser. The code is below and I want to know if/how I can put it in a script.

<form method="post" action="http://www.imageshack.us/" enctype="multipart/form-data" onsubmit="return checkemail()" id="upform">
<script type="text/javascript" src="/scripts/common/magicbutton.js"></script>
<table cellspacing="0" cellpadding="0" border="0" style="width:100%">
    <tr>
        <td colspan="3" nowrap="NOWRAP">
            <div id="upfile">
                <input type="file" name="fileupload" size="50" style="height:20px;" onchange="showoptions(this)" id="fileupload"/>
            </div>
            <div id="upurl" style="display: none"><input type="text" id="fileupload" value="paste image url here" style="color: #888;height:20px" onfocus="focusfield(this)" name="url" size="50">
            </div>
            <div id="upvideo" style="display: none">
                <input type="text" value="" disabled="DISABLED" size="50" style="height:20px"/>&nbsp;<script type="text/javascript">_magic_button('height:20px;width:70px;background-color:#cccccc;')</script>
            </div>
            <div id="upflash" style="display: none">
            </div>
        </td>
    </tr>
</table>
    <input type="hidden" name="MAX_FILE_SIZE" value="13145728">
    <input type="hidden" name="refer" value="">
    <input type="hidden" name="brand" value="">
    <input id="butan" style="width:135px;border:2px solid #FF6600" type="submit" value="host it!" />
    <input id="swfbutan" style="width:135px;display:none;border:2px solid #FF6600" type="button" value="start upload!" onclick="uploadstart()"/>
</form>

Thanks

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

You just provided the HTML code. Are we to assume that you also have the magicbutton.js file?

Edit:

Never mind. I just downloaded the javascript file. I hope you realize that it will only work if you have the ImageShack Toolbar installed and it does require a browser.

Edited by GEOSoft

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0