bhe' si tratta della beta della beta del sito
non c'è ancora niente come immagini caricate stanno provando tutte le altre funzioni
le prove con le imm sono state cancellate
cmq lo script e' questo
echo"<SCRIPT LANGUAGE=\"JavaScript\">"
. "nb_photo_ligne = 6;"
. "numero_photo = 1;"
. "ejs_vignet = new Array;"
. "ejs_big = new Array;"
. "ejs_des = new Array;";
$cerca2 = $db->sql_query("SELECT * from ".$prefix."_house_imm where id_house='".$codice."'");
$row = $db->sql_fetchrow($cerca);
for ($m=0; $m < $db->sql_numrows($cerca2); $m++) {
$row = $db->sql_fetchrow($cerca2);
$id_house = $row['id_house'];
$percorso = $row['percorso'];
echo "ejs_vignet[".$m."]= '".$percorso."';";
echo "ejs_big[".$m."]= '".$percorso."';";
}
echo "function ChageImage(num){if(document.getElementById)"
. ""
. "document.getElementById(\"ejs_dyn_img\").innerHTM L = '<A HREF=\"javascript:killImage()\"><IMG SRC=\"'+ejs_big[num]+'\" BORDER=0 HSPACE=5 VSPACE=5 ALT=\"Clicca qui per chiudere\"></A>';else window.open(ejs_big[num],\"_blank\")};"
. ""
. ""
. "function killImage(num){if(document.getElementById)document .getElementById(\"ejs_dyn_img\").innerHTML = \"\";}</SCRIPT>"
. "<div align=\"center\">"
. "<SCRIPT type=\"text/javascript\" LANGUAGE=\"JavaScript\">"
. "document.write('<TABLE border=0 width=100% height=68>');"
. "for(a=0;a<ejs_big.length; a++){"
. "if(numero_photo == 1)document.write('<TR>');"
. "if(numero_photo == ejs_big.length)"
. "document.write('<TD ALIGN=center COLSPAN='+(((ejs_big.length)+1)-numero_photo)+'>');"
. "else document.write('<TD ALIGN=center>');"
. "document.write('<A HREF=\"javascript:ChageImage('+a+')\">"
. "<IMG SRC=\"'+ejs_vignet[a]+'\" width=\"70\" height=\"50\" ALT=\"Clicca qui per ingrandire\" BORDER=0></A></TD>');"
. "if(numero_photo == nb_photo_ligne){document.write('</TR>');"
. "numero_photo=0;}numero_photo++;}"
. "document.write('<TR><TD COLSPAN='+ejs_big.length+' ALIGN=center><DIV ID=ejs_dyn_img></DIV></TD></TR></TABLE>');"
. "</SCRIPT></div>";
ciao