Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   TBDev (http://www.bvlist.com/forumdisplay.php?f=20)
-   -   Adding Java to Download Links (http://www.bvlist.com/showthread.php?t=6444)

shempsall2009 17th May 2011 19:56

Adding Java to Download Links
 
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("&nbsp;&nbsp;&nbsp;<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 :mad:

Thanks


All times are GMT +2. The time now is 12:28.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.