OK,
merci pour le conseil...je surmonte mon apréhension
Le probleme c'est que toutes les grandes images cliquées pointent vers le meme lien...
Voici la page :
http://www.fightingwords.ie/index-new2.php
<script type="text/javascript">
jQuery(function($){
var settings = {
thumbListId: "thumbs",
imgViewerId: "viewer",
activeClass: "active",
activeTitle: "Photo en cours de visualisation",
loaderTitle: "Chargement en cours",
loaderImage: "images/loader.gif"
};
var thumbLinks = $("#"+settings.thumbListId).find("a"),
firstThumbLink = thumbLinks.eq(0),
highlight = function(elt){
thumbLinks.removeClass(settings.activeClass).removeAttr("title");
elt.addClass(settings.activeClass).attr("title",settings.activeTitle);
},
loader = $(document.createElement("img")).attr({
alt: settings.loaderTitle,
title: settings.loaderTitle,
src: settings.loaderImage
});
var thumbLinks = $("#"+settings.thumbListId).find("a"),
firstThumbLink = thumbLinks.eq(0);
highlight = function(elt){
thumbLinks.removeClass(settings.activeClass).removeAttr("title");
elt.addClass(settings.activeClass).attr("title",settings.activeTitle);
};
$("#"+settings.thumbListId).after(
$(document.createElement("p"))
.attr("id",settings.imgViewerId)
.append(
$(document.createElement("a"))
.attr("href",firstThumbLink.attr("id") )
.append(
$(document.createElement("img")).attr({
alt: "",
src: firstThumbLink.attr("href")
})
)
)
);
var imgViewerLink = $("#"+settings.imgViewerId).children(),
bigPic = imgViewerLink.children();
showLoader = function(){
imgViewerLink.html(loader);
},
loadNewImg = function(){
imgViewerLink.html($(this).fadeIn(250));
},
selectActiveThumb = function(){
return thumbLinks.filter("." + settings.activeClass);
};
thumbLinks.click(function(e){
e.preventDefault();
var $this = $(this),
target = $this.attr("href");
if (bigPic.attr("src") == target) return;
highlight($this);
showLoader();
bigPic
.load(loadNewImg)
.attr("src",target);
});
var bigPicLien = imgViewer.children("a");
imgViewerLink.click(function(e){
e.preventDefault();
var $this = $(this),
target = $this.attr("id");
if (bigPicLien.attr("href") == target) return;
selectActiveThumb().parent().next().children();
bigPicLien
.attr("href",target);
});
});
</script>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
<div id="frame">
<!-- Container for the whole header-->
<div id="contentheader">
<div id="header">
<img src="images/logo.jpg" alt="Fighting Words" width="307" height="92" hspace="0" vspace="0" border="0" />
</div>
<!-- Extra links in the header-->
<!-- END Extra links in the header-->
<div id="tab_container">
<div id="navcontainer-new">
<a href="http://www.fightingwords.ie/index.php"> <img src="images/newDesign/T-home.jpg" width="9%"/> </a>
<a href="http://www.fightingwords.ie/news/index.php"><img src="images/newDesign/T-news.jpg" width="8%"/></a>
<a href="http://www.fightingwords.ie/whats_the_story/index.php"><img src="images/newDesign/T-work.jpg" width="15%"/></a>
<a href="http://www.fightingwords.ie/volunteers/index.php"><img src="images/newDesign/T-volunteers.jpg" width="15%"/></a>
<a href="http://www.fightingwords.ie/EventsList/index.php"><img src="images/newDesign/T-event-celendar.jpg" width="15%"/></a>
<a href="http://www.fightingwords.ie/news/list-stories-web.php"><img src="images/newDesign/T-stories.jpg" width="11%"/></a>
<a href="http://www.fightingwords.ie/summerCamps/summer-camp.php"><img src="images/newDesign/T-summercamp.jpg" width="15%"9/></a>
</div>
</div>
</div>
<!-- END Container for the whole header-->
<div id="frame33">
<div id="textFrontPage2">
<br/>
<a href="http://www.fightingwords.ie/quotes/index.php">
<img src="images/zarastQuote.jpg" />
</a>
</div>
<div id ="photo-quote">
<a href="http://www.fightingwords.ie/summerCamps/summer-camp.php">
<img src="images/triplette.jpg" />
</a>
</div>
</div>
<ul id="thumbs">
<br/><br/><br/>
<li>
<a href="images/newDesign/poster-news.jpg" id="http://www.fightingwords.ie/news/index.php">
<img src="images/newDesign/news-rouge.jpg" alt="pics news fighting words centre"/>
</a>
</li>
<br/><br/><br/>
<li>
<a href="images/newDesign/poster-the-work.jpg" id="http://www.fightingwords.ie/whats_the_story/index.php" >
<img src="images/newDesign/theWork-rouge.jpg"/>
</a>
</li>
<br/><br/><br/>
<li>
<a href="images/newDesign/rossa-head.jpg" id="http://www.fightingwords.ie/volunteers/index.php" >
<img src="images/newDesign/volunteers-rouge.jpg"/>
</a></li>
<br/><br/><br/>
<li>
<a href="images/newDesign/poster-story.jpg" id="http://www.fightingwords.ie/news/list-stories-web.php" >
<img src="images/newDesign/stories-rouge.jpg"/>
</a></li>
<br/><br/><br/>
<li>
<a href="images/newDesign/poster-video.jpg" id="http://www.fightingwords.ie/news/video.php">
<img src="images/newDesign/video-rouge.jpg"/>
</a>
</li>
<br/><br/> <br/>
</ul>
<div >
</div>
Modifié par Thomas D. (16 Sep 2009 - 16:38)