RvdH
01-07-2008, 12:03 PM
1) Script Title: DHTML Window widget (v1.1)
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/
3) Describe problem: Open searchresults in Window widget.
First of all i am bad in english writing, but i want to have some help with this script.
It works good, but i want to open search results in that Window widget.
What do i have to change in this form to open search results in the widget?
<form id="searchForm" action # name="searchForm" onsubmit="chooseSearch(); return false;" method="post">
<script>
function chooseSearch(){
s = document.searchForm.engine.options[document.searchForm.engine.selectedIndex].value + document.searchForm.keywords.value
location = s
}
</script>
<input onfocus=" this.value=''" value="Searching for..." name="keywords" size="21"/> <select style="font-family: Verdana; font-size: 10pt; font-weight:" name="engine" size="1">
<option value="http://www.google.nl/search?q="/>Google
<option value=" http://www.google.nl/blogsearch?hl=nl&q="/>Google Blog
<option value="http://images.google.nl/images?hl=en&q="/>Google Afbeeldingen
<option value="#"/>
</select>
<input class="button" value="Search" name="Button" onclick="chooseSearch()" type="button"/>
</form>
Thanks!
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/
3) Describe problem: Open searchresults in Window widget.
First of all i am bad in english writing, but i want to have some help with this script.
It works good, but i want to open search results in that Window widget.
What do i have to change in this form to open search results in the widget?
<form id="searchForm" action # name="searchForm" onsubmit="chooseSearch(); return false;" method="post">
<script>
function chooseSearch(){
s = document.searchForm.engine.options[document.searchForm.engine.selectedIndex].value + document.searchForm.keywords.value
location = s
}
</script>
<input onfocus=" this.value=''" value="Searching for..." name="keywords" size="21"/> <select style="font-family: Verdana; font-size: 10pt; font-weight:" name="engine" size="1">
<option value="http://www.google.nl/search?q="/>Google
<option value=" http://www.google.nl/blogsearch?hl=nl&q="/>Google Blog
<option value="http://images.google.nl/images?hl=en&q="/>Google Afbeeldingen
<option value="#"/>
</select>
<input class="button" value="Search" name="Button" onclick="chooseSearch()" type="button"/>
</form>
Thanks!