Hi all,
This has been doing my head in all day.
Sorry if in wrong place but I'm using NZBStrike and need to add a Javascript to Download Links.
The Function is fully working and tested but when I include it on the site it don't work :(
I need 'function amt()' to be added to the main download links shown below.
PHP Code:
print(" <input type=\"submit\" name=\"dlnzb\" value=\"Download As NZB\" class=\"codebuttons\" style=\"width:150px;height:25px;\" >");
print("<input type=\"submit\" name=\"dlzip\" value=\"Download As Zip File\" class=\"codebuttons\" style=\"width:150px;height:25px;\">");
On the above I have tried
onClick="amt()"
onClick="return amt()"
onClick="javascript
:amt()"
onClick="return javascript
:amt()
all with and without the ';' symbol at the end
I have also tried all the above with onSubmit=""
I also need the Javascript adding to the below also
PHP Code:
print("<td class=\"row2\" rowspan=\"2\" align=\"center\"><a href=\"nzbdownload.php/$id/" . rawurlencode($row["name"]) . ".nzbdlzip\"><img border=\"0\" src=\"".$pic_base_url."zip.gif\" alt=\"Download Zip (".mksize($row["size"]).")\" title=\"Download Zip (".mksize($row["size"]).")\" /></a></td>\n");
print("<td class=\"row2\" rowspan=\"2\" align=\"center\"><a href=\"nzbdownload.php/$id/" . rawurlencode($row["name"]) . ".nzbdlnzb\"><img border=\"0\" src=\"".$pic_base_url."xml.gif\" alt=\"Download NZB (".mksize($row["size"]).")\" title=\"Download NZB (".mksize($row["size"]).")\" /></a></td>\n");
Same again I have tried all the above onClick="" and onSubmit=""
Please can somebody help as this is giving me a really big headache
Thanks