I'm trying out the Google custom search, and I've chosen to use the
overlay results box hosted from my own site. I am working on a site
for an organization that I work for, and the search box is located at
the bottom of our news section (that's where they want it?). The
search works fine, but the results are showing up under the search
box.
I've looked around and I can't seem to find anything that looks like
the code I've got (generated from the Google custom search page).
Here's the code that I've got in my PHP file:
[code]
<form action="" id="searchbox_mykey" onsubmit="return false;">
<div>
<input type="text" name="q" size="20"/>
<input type="submit" value="Search"/>
</div>
</form>
<script type="text/javascript"
src="http://www.google.com/coop/cse/
brand?form=searchbox_mykey&lang=en"></script>
<div id="results_mykey" style="display:none">
<div class="cse-closeResults">
<a>× Close</a>
</div>
<div class="cse-resultsContainer"></div>
</div>
<style type="text/css">
@import url(http://www.google.com/cse/api/overlay.css);
</style>
<script src="http://www.google.com/uds/api?
file=uds.js&v=1.0&key=mykey=en" type="text/javascript"></script>
<script src="http://www.google.com/cse/api/overlay.js"
type="text/
javascript"></script>
<script type="text/javascript">
function OnLoad() {
new CSEOverlay("mykey",
document.getElementById("searchbox_mykey"),
document.getElementById("results_mykey"));
}
GSearch.setOnLoadCallback(OnLoad);
</script>
[/code]
I'm not really sure how to move the results div. I've tried placing
it in a higher location, but then the results don't show anymore. I'm
using PHP, and my page is set up with functions for each different
area of the page, pieced together at the end of the file (that make
sense?)
Any help on where to start to get the results moved would be greatly
appreciated. I want to do the coding myself, I just don't know where
to start. It seems like there's a gap between what I've got, and the
code examples I can find.
Thanks for any help,
--Charles...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google AJAX API" 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
-~----------~----~----~----~------~----~------~--~---