FEATURED EVENTSSee All Events

Get Our Newsletter
Submit

Sign-up for your monthly fix of design news, reviews and stuff to make you smarter.

Follow Core77
Twitter Facebook RSS
var design_directory = function() { var create_slideshow = function(img_with_path, img_str, $slideshow) { var img_arr = new Array(); var img_preload_arr = new Array(); var img_count = 0; var current_img = 0; var _path = img_with_path.replace(/http:\/\//, ""); var temp_arr = _path.split("/"); temp_arr = temp_arr.slice(0, temp_arr.length-1); _path = "http://" + temp_arr.join("/"); temp_arr = img_str.split("&"); img_count = temp_arr.length; for (var k=0; k img_count-1 ? 0 : current_img + 1; $slideshow.animate({ opacity: 0 },400, function() { $slideshow.attr({ "src": img_arr[current_img] }).animate({ opacity: 1 },400); setTimeout(_interval, 2500); }); } setTimeout(_interval, 2000); } } var create_dom = function(data) { var _html = new String(); _html += "
"; _html += ""; _html += "
"; _html += "" + data.main_firm.firm_name + ""; _html += "

" + data.main_firm.location + "

"; _html += "

"; if (data.main_firm.clients_list.client.length > 0) { _html += "Clients include: " } for (var k=0; k" + data.firms.firm[k].name + ""; } _html += ""; _html += "

"; $("div#design_directory").append($(_html)); var temp_arr = data.main_firm.images_all.split("&"); if (temp_arr.length > 1 ) { create_slideshow(data.main_firm.image, data.main_firm.images_all, $("div.firm_slider img")); } } var get_feed = function() { $.getJSON("/includes/footer_dd_json.asp", function(data) { //console.log(data.core77_footer_doc); create_dom(data.core77_footer_doc); }); } get_feed(); } design_directory();