/* ========================================================= // jquery.xhibit.js // Datum: 2008-05-29 // Firm: Xplore.net // Autor: Robin Gorry // Mail: robin@xplore.net // ========================================================= */ jQuery(function($) { /* var bgImage = $(".thickbox").height(); var bgWidth = $(".thickbox").width(); alert(bgImage); alert(bgWidth); $(".thickbox img").style.textAlign = "right"; var imageW = $(".thickbox img").width(); alert(imageH); alert(imageW);*/ $('.swapLink').click(function(){ //add onClick function var imgAlt = this.alt; //get the href so we can break it up and get the image path var imgHref = this.href; //get the href so we can break it up and get the image path var imgArr = imgHref.split('='); var imgSrc = imgArr[1].split('&'); $.get("/snippets/xhibit/getImages.php", {xhibit_id: imgArr[2], image_path: imgSrc[0], pass: 'getImg'}, function(data) { var rtnArr = data.split('#'); if(rtnArr[2] != 0) //if the image is set to have link then add it { var rtnLink = ""; var rtnEndLink = ""; }else{ var rtnLink = ''; var rtnEndLink = ''; } $('#headSwap').html(rtnLink+""+rtnArr[0]+""+rtnEndLink+"

"+rtnArr[1]+"

"); }); return false; }) $('a[rel*=facebox]').facebox(); });