Sto cercando di realizzare un menu simile a questo: http://www.ski.it/index.asp?p=1&s=0&L=IT
Mi piacerebbe che una volta cliccato in una sezione (es Folgarida) l'immagine cambiasse.
Il problema è che vorrei integrare il codice nel file theme.php di phpnuke.
Io ho provato a scrivere una cosa del genere ma non funziona:
Qualche idea?Codice PHP:
echo"<table id=\"Table_01\" align=\"center\" width=\"770\" height=\"120\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">"
. "<tr>"
. "<td colspan=\"6\">"
. "<img src=\"themes/Cirrus/images/Giabar_01.png\" width=\"770\" height=\"93\" alt=\"\"></td>"
. "</tr>"
. "<tr>"
if (defined('INDEX_FILE')) {
echo"<td><img src=\"themes/Cirrus/images/Home_On.png\" width=\"115\" height=\"27\" alt=\"\"></td>\n";
} else {
echo"<td><img src=\"themes/Cirrus/images/Home_Off.png\" width=\"115\" height=\"27\" alt=\"\"></td>\n";
}
echo"<td>"
. "<img src=\"themes/Cirrus/images/About Us_Off.png\" width=\"106\" height=\"27\" alt=\"\"></td>"
. "<td>"
. "<img src=\"themes/Cirrus/images/Portfolio_Off.png\" width=\"106\" height=\"27\" alt=\"\"></td>"
. "<td>"
. "<img src=\"themes/Cirrus/images/Store_Off.png\" width=\"106\" height=\"27\" alt=\"\"></td>"
. "<td>"
. "<img src=\"themes/Cirrus/images/Links_Off.png\" width=\"106\" height=\"27\" alt=\"\"></td>"
. "<td>"
. "<img src=\"themes/Cirrus/images/Giabar_07.png\" width=\"231\" height=\"27\" alt=\"\"></td>"
. "</tr>"
. "</table>"