events.push(["Karazhan|Kara","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/Kar.gif"]); events.push(["Zul'Aman|ZA","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/ZA.gif"]); events.push(["Gruul","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/GL.gif"]); events.push(["Mag|Magtheridon","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/Mag.gif"]); events.push(["Tempest|Eye|TK","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/TK.gif"]); events.push(["Serpentshrine|SSC","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/SSC.gif"]); events.push(["Hyjal|MH","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/MH.gif"]); events.push(["Kazzak|DLK","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/DLK.gif"]); events.push(["Doomwalker|DW","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/DW.gif"]); events.push(["Black|BT","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/BT.gif"]); events.push(["Sunwell|SW|SP","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/SP.gif"]); events.push(["Naxx","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/Nax2.gif"]); events.push(["VoA|Archavon","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/VoA.gif"]); events.push(["CoA|OS|Obsidian|Sartharion","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/OS.gif"]); events.push(["EoE|Malygos","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/EoE.gif"]); events.push(["birthday|Birthday","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/birthday.gif"]); events.push(["Fun event|fun event","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/fun.gif"]); events.push(["quest|Quest","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/quest.gif"]); events.push(["Unk|unk","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/unknown.gif"]);
The Code
<style type="text/css">#grpSlides { height: 170px; width: 152px; margin: 4px auto;}#slideBox {text-align:center;}#slideDescription {font-size:14pt;}</style><script type="text/javascript">$(document).ready( function() { $("img[title*='- Click to advance to the next image.']").each(function(){ $(this).attr("title",$(this).attr("title").replace(" - Click to advanceto the next image.","")).parent().attr("target","").facebox(); }) var nextImg = '>'; var prevImg = '<'; var openGallery = 'Open Gallery'; $('a[id*="_lnkFullGallery"]').html(openGallery).parent().wrap("<div id='slideBox'></div>"); var galleryLink = '<a href="#" id="slidePrev">'+prevImg+'</a> ' + $("#slideBox > span").html(); galleryLink += ' <a href="#" id="slideNext">'+nextImg+'</a><div id="slideDescription"></div>'; $("#slideBox").html(galleryLink); $('#grpSlides').unbind().cycle({ fx: 'fade', speed: 'fast', timeout: 6000, next: '#slideNext', prev: '#slidePrev', after: slideDes });})function slideDes() { $('#slideDescription').html($(this).find('img').attr('title'));}</script>
Customizing
<script type="text/javascript">$(document).ready(function(){ var nextImg = '>'; var prevImg = '<'; var openGallery = 'Open Gallery'; $("a[id*='lnkFullGallery']").html(openGallery).wrap("<div id='slideBox'></div>"); var prevLink = '<a href="javascript:pickImage(false)">'+prevImg+'</a> '; var nextLink = ' <a href="javascript:pickImage(true)">'+nextImg+'</a>'; $("#slideBox").prepend(prevLink).append(nextLink).parent().css('margin','');})function pickImage(nxt) { galleryPaused = true; var tmp = $("#imgCaptionDiv").html(); var indx = 0; var imglen = imgList.length-1; for (k=0;k<imglen+1;k++){ if (imgDescList[k]==tmp) indx = k; } if (nxt) { indx++ } else { indx-- } if (indx > imglen) indx = 0; if (indx < 0) indx = imglen; showGalleryImage(imgList[indx].toString(), imgDescList[indx].toString());}var showGalleryImage = function(sGalleryImgPath, sDescription){ imgHolder.fadeOut('2500', function(){ imgHolder.attr("src", sGalleryImgPath); imgHolder.bind("click",function(){jQuery.facebox('<center><imgsrc="'+sGalleryImgPath+'"><br><br><divclass="desc">'+sDescription+'</div>') }); imgHolder.parent().attr("href", "javascript:void(0);"); jQuery("#imgCaptionDiv").html(sDescription); imgHolder.fadeIn('1500', function() { } ); });}</script>