Lightbox sur aera shape
Dernière réponse : dans Programmation
Bonjour à tous,
Je suis confronté à un petit problème lors de la réalisation de mon site/portfolio.
en gros, j'aimerais utiliser lightbox pour l'affichage de ma galerie d'images, je l'avais fais sans problèmes sur mon site précédent, (la j'avais un tableau avec des miniatures à l'intérieur qui servaient de lien vers les images)
mais cette fois ci j'utilise des "aera shape" , des zones cliquable sur l'écran tout simplement, qui servent de liens vers mes images.
Impossible de faire fonctionner lightbox, lorsque je click sur la zone, l'écran s'assombrit mais l'image ne s'ouvre pas (sans lightbox l'image apparait dans un nouvel onglet)
étant spécialisé dans la 3D et non dans le web, je bloque la, voici mon code, l'un de vous saurait il m'aider ? Merci .
Je suis confronté à un petit problème lors de la réalisation de mon site/portfolio.
en gros, j'aimerais utiliser lightbox pour l'affichage de ma galerie d'images, je l'avais fais sans problèmes sur mon site précédent, (la j'avais un tableau avec des miniatures à l'intérieur qui servaient de lien vers les images)
mais cette fois ci j'utilise des "aera shape" , des zones cliquable sur l'écran tout simplement, qui servent de liens vers mes images.
Impossible de faire fonctionner lightbox, lorsque je click sur la zone, l'écran s'assombrit mais l'image ne s'ouvre pas (sans lightbox l'image apparait dans un nouvel onglet)
étant spécialisé dans la 3D et non dans le web, je bloque la, voici mon code, l'un de vous saurait il m'aider ? Merci .
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "<a href="http://www.w3.org/TR/html4/loose.dtd" target="_blank">http://www.w3.org/TR/html4/loose.dtd</a>"> <html> <head> <title>Graphline - portfolio - 3D gallery</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="keywords" content="3d , 3ds max , 3d max , modélisation , illustrator , photoshop , sony vegas , sound forge , dessin , sculpture , photos , photo"/> <meta name="description" content="illustrator - 2D"/> <meta name="Creation_Date" content="mars 2010"/> <meta name="robots" content="index, follow, all"/> <meta name="identifier-url" content="<a href="http://www.Graphline.be" target="_blank">www.Graphline.be</a>"/> <meta name="revisit-after" content="5 days"/> <meta name="author" content="Grégoire Arnaud"/> <meta name="rating" content="general"/> <link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" /> <script type="text/javascript" src="js/prototype.js"></script> <script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script> <script type="text/javascript" src="js/lightbox.js"></script> <script language="JavaScript"> <!-- function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } //--> </script> </head> <body bgcolor="#50637A" onLoad="MM_preloadImages('portfolio_r2_c1_f2.jpg','portfolio_r2_c2_f2.jpg','portfolio_r2_c3_f2.jpg','portfolio_r2_c4_f2.jpg');"> <table width="1024" border="0" align="center" cellpadding="0" cellspacing="0"> <!-- fwtable fwsrc="BASE.png" fwbase="portfolio.jpg" fwstyle="Dreamweaver" fwdocid = "1963897273" fwnested="0" --> <tr> <td><img src="spacer.gif" width="166" height="1" border="0" alt=""></td> <td><img src="spacer.gif" width="167" height="1" border="0" alt=""></td> <td><img src="spacer.gif" width="112" height="1" border="0" alt=""></td> <td><img src="spacer.gif" width="166" height="1" border="0" alt=""></td> <td><img src="spacer.gif" width="413" height="1" border="0" alt=""></td> <td><img src="spacer.gif" width="1" height="1" border="0" alt=""></td> </tr> <tr> <td colspan="5"><img name="portfolio_r1_c1" src="portfolio_r1_c1.jpg" width="1024" height="145" border="0" alt=""></td> <td><img src="spacer.gif" width="1" height="145" border="0" alt=""></td> </tr> <tr> <td><a href="index.html" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('portfolio_r2_c1','','portfolio_r2_c1_f2.jpg',1);"><img name="portfolio_r2_c1" src="portfolio_r2_c1.jpg" width="166" height="44" border="0" alt=""></a></td> <td><a href="portfolio.html" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('portfolio_r2_c2','','portfolio_r2_c2_f2.jpg',1);"><img name="portfolio_r2_c2" src="portfolio_r2_c2.jpg" width="167" height="44" border="0" alt=""></a></td> <td><a href="cv.html" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('portfolio_r2_c3','','portfolio_r2_c3_f2.jpg',1);"><img name="portfolio_r2_c3" src="portfolio_r2_c3.jpg" width="112" height="44" border="0" alt=""></a></td> <td><a href="contact.html" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('portfolio_r2_c4','','portfolio_r2_c4_f2.jpg',1);"><img name="portfolio_r2_c4" src="portfolio_r2_c4.jpg" width="166" height="44" border="0" alt=""></a></td> <td rowspan="2"><img src="3dgallerydroite.jpg" width="413" height="755" border="0" usemap="#Map2"></td> <td><img src="spacer.gif" width="1" height="44" border="0" alt=""></td> </tr> <tr> <td colspan="4"><img src="3dgallery-gauche.jpg" width="611" height="711" border="0" usemap="#Map"></td> <td><img src="spacer.gif" width="1" height="711" border="0" alt=""></td> </tr> </table> <map name="Map"> <area shape="rect" coords="478,676,535,700" href="portfolio.html"> <area shape="rect" coords="56,103,112,264" href="3D Gallery/perso_TFA.jpg" rel="lightbox" alt="tfa"> <area shape="rect" coords="159,101,217,264" href="3D Gallery/maison.jpg"> <area shape="rect" coords="264,101,322,264" href="3D Gallery/peppertbot.jpg"> <area shape="rect" coords="368,101,425,264" href="3D Gallery/Seau.jpg"> <area shape="rect" coords="473,102,530,265" href="3D Gallery/Perso_Le Souffle.jpg"> <area shape="rect" coords="577,102,655,264" href="3D Gallery/Le Puit.jpg"> </map> <map name="Map2"><area shape="rect" coords="-2,146,24,309" href="3D Gallery/Le Puit.jpg"> </map></body> </html>
Autres pages sur : lightbox aera shape
Lassé par la pub ? Créez un compte
Lassé par la pub ? Créez un compte