Hi, I am using the below code to display all the image results, my problem is how to make the slideshow of all these images at one place controlling the width and height of the image.. Any Suggestions: TIA <div id="Sneha">Loading...</div><script src="http://www.google.com/ jsapi? key=ABQIAAAA1XbMiDxx_BTCY2_FkPh06RRaGTYH6UMl8mADNa0YKuWNNa8VNxQEerTAUcfkyrr6OwBovxn7TDAH5Q" type="text/javascript"></script><script type="text/ javascript">google.load('search', '1'); var imageSearch;function addPaginationLinks() { var cursor = imageSearch.cursor; var curPage = cursor.currentPageIndex; var pagesDiv = document.createElement('div'); for (var i = 0; i < cursor.pages.length; i++) { var page = cursor.pages[i]; if (curPage == i) { var label = document.createTextNode(' ' + page.label + ' '); pagesDiv.appendChild(label); } else { var link = document.createElement('a');link.href = 'javascript:imageSearch.gotoPage('+i+');'; link.innerHTML = page.label;link.style.marginRight = '2px'; pagesDiv.appendChild(link); } } var contentDiv = document.getElementById('Sneha'); contentDiv.appendChild(pagesDiv);} function searchComplete() { if (imageSearch.results && imageSearch.results.length > 0) { var contentDiv = document.getElementById('Sneha'); contentDiv.innerHTML = ''; var results = imageSearch.results; for (var i = 0; i < results.length; i+ +) { var result = results[i]; node = document.createElement("div");title = document.createElement("div");title.className = "gs-title"; exitLink = document.createElement("a"); exitLink.href = result.unescapedUrl;exitLink.innerHTML = "<img src=" + result.url + ">"; exitLink.target = "_blank";title.appendChild(exitLink);node.appendChild(title);content = document.createElement("div");content.innerHTML = result.content;content.className = "gs- snippet";node.appendChild(content);contentDiv.appendChild(node);} addPaginationLinks(imageSearch);}} function OnLoad() {imageSearch = new google.search.ImageSearch();imageSearch.setResultSetSize(google.search.Search.LARGE_RESULTSET);imageSearch.setRestriction(google.search.ImageSearch.RESTRICT_IMAGESIZE, google.search.ImageSearch.IMAGESIZE_MEDIUM);imageSearch.setSearchCompleteCallback(this, searchComplete, null);imageSearch.execute("BMW");} google.setOnLoadCallback(OnLoad);</script>
-- You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=en.
