It is very much preferable to post a link to a working (or not working) page where we can see your code in action. If that is not possible, please put your code in pastebin or paste-it or some other similar service. Groups just mangles the formatting of code.
Jeremy R. Geerdes Effective website design & development Des Moines, IA For more information or a project quote: http://jgeerdes.home.mchsi.com [email protected] If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church! On Sep 21, 2010, at 11:48 AM, Sri wrote: > 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. > -- 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.
