Help - Search - Members - Calendar
Full Version: Javascript on Phpnuke???
Hostony Board > General Support > PHP/MySQL
Alejo
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&amp;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
Please tell me the link to the page with this code.
Alejo
Ok. thisis the link:

http://www.emedicina.biz/modules.php?name=...breviations_2.5

As 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
So, you have fixed the problem?
Alejo
No, it's not fixed, but you couldn't visit the site...

Now the link works, but the java still doesn't....
Alec
Fatal error: Call to undefined function: downloadfooter() in /home2/emedicin/public_html/modules/Downloads/index.php
Alejo
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
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.
Invision Power Board © 2001-2024 Invision Power Services, Inc.
IPS Driver Error

IPS Driver Error

There appears to be an error with the database.
You can try to refresh the page by clicking here