<!-- This goes into the HEAD of the file --> <script language="JavaScript" type="text/javascript"> <!-- Copyright 2008, Sandeep Gangadharan --> <!-- For more free scripts go to http://www.sivamdesign.com/scripts/ --> <!-- var theVal = ""; function getFlickr() { if (document.flickrSearch.optioner[0].checked) { theVal = "text"; } if (document.flickrSearch.optioner[1].checked) { theVal = "tags"; } term_2=window.prompt('Please enter your search word/s below:',''); if (term_2) { parts = term_2.split(" "); term_2 = parts.join("+"); location.href='http://www.flickr.com/search/?w=all&q='+term_2+'&m='+theVal; } } //--> </script> <!-- This goes into the BODY of the file where you want the search button placed --> <form name="flickrSearch"> <table border="3" align="center" cellspacing="0" cellpadding="2" width="220"> <tr> <td align="center"> <input type="button" value="Search Flickr" onClick="getFlickr()" /> </td> </tr> <tr> <td align="center"> <label for="1"><input type="radio" id="1" name="optioner" checked /><font face="verdana, arial, helvetica, ms sans serif" size="1">By Keywords</font></label>&nbsp;&nbsp;&nbsp; <label for="2"><input type="radio" id="2" name="optioner" /><font face="verdana, arial, helvetica, ms sans serif" size="1">By Tags</font></label> </td> </tr> </table> </form>