Alejo
Mar 5 2005, 07:53 PM
I'm trying to add a banner to the download's module, so that they have to click on it in order to enable the download button.
This is the code I'm working on:
echo "<table border=0><tr><td onClick=\"habilitar \" align=\"center\">";
echo "<script src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\" type=\"text/javascript\">
***here goes banner's code****</script>";
echo "<center><br><form name=\"formula\"
action=\"modules.php?name=$module_name&d_op=getit&lid=$lid\"
method=post>"
. "<input name=\"download\" type=submit value='Click on the banner to activate the download' disabled>"
. "</form></center>";
echo "\n";
echo "<script type=\"javascript\">\n"
."function habilitar {\n"
."document.forms[\"formula\"].descargar.disabled=false;\n"
."document.forms[\"formula\"].descargar.value='?Now you can download!';\n"
. "}\n"
. "</script>\n";
The problem is that the banner and the button are not "connected" I don't know what's wrong in here
Lots of thanks!!!!!!!!!!!!!!!!1
Alec
Mar 5 2005, 08:17 PM
Please tell me the link to the page with this code.
Alejo
Mar 5 2005, 08:21 PM
Ok. thisis the link:
http://www.emedicina.biz/modules.php?name=...breviations_2.5As you see it is on the Details of each download. Currently the ad is not properly set up, but, still, the "connection" doesn't work.
Glups!!! This module wasn't active!!! Sorry, I just activated it now
Alec
Mar 5 2005, 09:26 PM
So, you have fixed the problem?
Alejo
Mar 5 2005, 09:33 PM
No, it's not fixed, but you couldn't visit the site...
Now the link works, but the java still doesn't....
Alec
Mar 5 2005, 09:49 PM
Fatal error: Call to undefined function: downloadfooter() in /home2/emedicin/public_html/modules/Downloads/index.php
Alejo
Mar 5 2005, 10:23 PM
Forget about that function, it's another thing, it's not related. I could erase it but I don't wanna do that now, and it wouldn't solve the problem
Alec
Mar 5 2005, 10:48 PM
Could you open a trouble ticket, we'll forward it to our programmers.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.