Search
This is not working
Google Ajax API Key: ABQIAAAAuxwj5PHOZ-ec8HRNg94VuRRFv6lvtfw4_t0smQLFJYWI10VSVhQF1ovYPMM0SFH74J_Kuvn7MeBZ7w
Custom Search Engine ID for SWiB: 015320273327708267001:kmpnc0kx3xe
<html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title>Google AJAX Search API Sample</title> <script type="text/javascript" src="http://www.google.com/jsapi?key=ABQIAAAAuxwj5PHOZ-ec8HRNg94VuRRFv6lvtfw4_t0smQLFJYWI10VSVhQF1ovYPMM0SFH74J_Kuvn7MeBZ7w"></script> <script type="text/javascript"> google.load('search', '1'); function OnLoad() { // Create a search control var searchControl = new google.search.SearchControl(); // Create an ImageSearch var imageSearch = new google.search.ImageSearch(); imageSearch.setUserDefinedLabel("SWiB"); imageSearch.setUserDefinedClassSuffix("imageSearch"); imageSearch.setSiteRestriction("southwestimagebank.org"); searchControl.addSearcher(imageSearch); // Restrict our search to pages from our CSE // imageSearch.setSiteRestriction('015320273327708267001:kmpnc0kx3xe', 'SWiB'); // Restrict our search to pages from a specific site // imageSearch.setSiteRestriction('southwestimagebank.org'); // Add the searcher to the SearchControl // searchControl.addSearcher(imageSearch); // tell the searcher to draw itself and tell it where to attach searchControl.draw(document.getElementById("content")); // execute an initial search searchControl.execute('Royal'); } google.setOnLoadCallback(OnLoad); </script> </head> <body style="font-family: Arial;border: 0 none;"> <div id="content">Loading...</div> </body> </html>


















