OK, let's say you have that code, which I've copied out of your site:
Code:
<script type="text/javascript">
$(document).ready(function() {
$(".infoPanel li a img").hide();
$(".infoPanel li a").eq(0).addClass("current");
$("a.current").next().show();
$(".infoPanel li a.current img").show();
$(".infoLink").mouseover(function() {
if (this.className.indexOf("current") == -1) {
$("a.current").next().hide();
$(".infoPanel li a.current img").hide();
$("a.current").removeClass("current");
$(this).addClass("current");
$("a.current").next().show();
$(".infoPanel li a.current img").show();
}
});
});
</script>
Now to make the pictures come out with 500ms delay, you have to change it like this:
Code:
<script type="text/javascript">
$(document).ready(function() {
$(".infoPanel li a img").hide();
$(".infoPanel li a").eq(0).addClass("current");
$("a.current").next().show();
$(".infoPanel li a.current img").show();
$(".infoLink").mouseover(function() {
var intPictureDelay;
clearTimeout(intPictureDelay);
intPictureDelay = setTimeout(function(){
if (this.className.indexOf("current") == -1) {
$("a.current").next().hide();
$(".infoPanel li a.current img").hide();
$("a.current").removeClass("current");
$(this).addClass("current");
$("a.current").next().show();
$(".infoPanel li a.current img").show();
}
},500);
});
});
</script>
And something else: I would use following script line for including jQuery, instead of your local older version 1.4.2. Or just download the latest version to your site from the jQuery site.
Code:
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
And a tip: why not using standard jQuery functions fadeIn() and fadeOut(), which make the showing and hiding of elements more smoother and nicer (on my opinion)... and you will not need that delay.
Cheers
Bookmarks