Ciao a tutti, sono un nuovo utente
Vorrei chiedervi gentilmente una mano con uno script open source, dovete sapere che è il mio primo vero avvicinamento a Js quindi non saprei che fare per risolvere il mio problema.
Lo script è una semplice gallery che mette delle miniature delle foto in alto e appena sotto, al clic su ognuna delle miniature, si visualizza la foto in dimensioni reali.
Io ho impostato, come vedrete nel codice che incollo, la src dell'img in dimensioni ridotte e anche il link href con l'immagine in dimensioni reali. Solo che al clic, mi si apre una nuova finestra e non viene mica visualizzata sotto la foto.
Sapete dirmi come potrei fare?
-----------------------------------------
<!-- Place the name (and path, if necessary) of the regular size images in the 'href' attribute. Do not give the size of this image. Place the name (and path, if necessary) of the smaller size images in the 'src' attribute. Place the descriptions in the 'title' attribute. Be sure to change the number of each paragraph, e.g., 'para1', 'para2', to match the image below. -->
<ul>
<li><a onclick="toggleMe('para1'); showPic(this); return false;" href="http://forum.mrwebmaster.it/flash/Carla.jpg" title="Collezione 2008 1 di Carla Massara"><img src="http://forum.mrwebmaster.it/flash/Carla.jpg" width="50" height="38"></a></li>
<li><a onclick="toggleMe('para2'); showPic(this); return false;" href="http://forum.mrwebmaster.it/flash/pix2.jpg" title="Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat."><img src="http://forum.mrwebmaster.it/flash/pix2-smaller.gif" width="50" height="38"></a></li>
<li><a onclick="toggleMe('para3'); showPic(this); return false;" href="http://forum.mrwebmaster.it/flash/pix3.jpg" title="It va esser tam simplic quam Occidental: in fact, it va esser Occidental. A un Angleso it va semblar un simplificat Angles, quam un skeptic Cambridge amico dit me que Occidental es."><img src="http://forum.mrwebmaster.it/flash/pix3-smaller.gif" width="50" height="38"></a></li>
</ul>
<!-- Place the title of each image here. -->
<div id="para1" style="display:none; font-size: 1.2em; font-weight: 800;">Foto Collezione Estate 2008 1</div>
<div id="para2" style="display:none; font-size: 1.2em; font-weight: 800;">The Spacious Lake</div>
<div id="para3" style="display:none; font-size: 1.2em; font-weight: 800;">The Lonely, Barren Tree</div>
<!-- Place the name of any image you want to initially display here. Do not give the size of this image. -->
<img id="placeholder" src="http://forum.mrwebmaster.it/flash/Carla.jpg">
<
<div id="desc">Chose an image to begin</div>
<!-- If you want the smaller images to display at the bottom, place the images in the list above (with the 'onclick' events) here. -->
-------------------------------------------------------------
Non ho capito il testo evidenziato, sarà li la chiave di tutto?
Ciao!:fonzie:
edit: scusate, ho sbagliato sezione, potete spostare? grazie!
Vorrei chiedervi gentilmente una mano con uno script open source, dovete sapere che è il mio primo vero avvicinamento a Js quindi non saprei che fare per risolvere il mio problema.
Lo script è una semplice gallery che mette delle miniature delle foto in alto e appena sotto, al clic su ognuna delle miniature, si visualizza la foto in dimensioni reali.
Io ho impostato, come vedrete nel codice che incollo, la src dell'img in dimensioni ridotte e anche il link href con l'immagine in dimensioni reali. Solo che al clic, mi si apre una nuova finestra e non viene mica visualizzata sotto la foto.
Sapete dirmi come potrei fare?
-----------------------------------------
<!-- Place the name (and path, if necessary) of the regular size images in the 'href' attribute. Do not give the size of this image. Place the name (and path, if necessary) of the smaller size images in the 'src' attribute. Place the descriptions in the 'title' attribute. Be sure to change the number of each paragraph, e.g., 'para1', 'para2', to match the image below. -->
<ul>
<li><a onclick="toggleMe('para1'); showPic(this); return false;" href="http://forum.mrwebmaster.it/flash/Carla.jpg" title="Collezione 2008 1 di Carla Massara"><img src="http://forum.mrwebmaster.it/flash/Carla.jpg" width="50" height="38"></a></li>
<li><a onclick="toggleMe('para2'); showPic(this); return false;" href="http://forum.mrwebmaster.it/flash/pix2.jpg" title="Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat."><img src="http://forum.mrwebmaster.it/flash/pix2-smaller.gif" width="50" height="38"></a></li>
<li><a onclick="toggleMe('para3'); showPic(this); return false;" href="http://forum.mrwebmaster.it/flash/pix3.jpg" title="It va esser tam simplic quam Occidental: in fact, it va esser Occidental. A un Angleso it va semblar un simplificat Angles, quam un skeptic Cambridge amico dit me que Occidental es."><img src="http://forum.mrwebmaster.it/flash/pix3-smaller.gif" width="50" height="38"></a></li>
</ul>
<!-- Place the title of each image here. -->
<div id="para1" style="display:none; font-size: 1.2em; font-weight: 800;">Foto Collezione Estate 2008 1</div>
<div id="para2" style="display:none; font-size: 1.2em; font-weight: 800;">The Spacious Lake</div>
<div id="para3" style="display:none; font-size: 1.2em; font-weight: 800;">The Lonely, Barren Tree</div>
<!-- Place the name of any image you want to initially display here. Do not give the size of this image. -->
<img id="placeholder" src="http://forum.mrwebmaster.it/flash/Carla.jpg">
<
<div id="desc">Chose an image to begin</div>
<!-- If you want the smaller images to display at the bottom, place the images in the list above (with the 'onclick' events) here. -->
-------------------------------------------------------------
Non ho capito il testo evidenziato, sarà li la chiave di tutto?
Ciao!:fonzie:
edit: scusate, ho sbagliato sezione, potete spostare? grazie!