want it to do an image search instead? change the form's action from "http://google.com/search" to "http://images.google.com/images?q".
################################### # GOOGLE SEARCH # # kunzite1, component-help/647438 # # add to print_free_text(Page p) # ################################### # heading var string cGgoogle = """Search <span style="color: #0000ff;">G</span><span style="color: #ff0000;">o</span><span style="color: #eeee00;">o</span><span style="color: #0000ff;">g</span><span style="color: #00ff00;">l</span><span style="color: #ff0000;">e</span>"""; # search button text var string cGsearch = "Search"; var Color cGheader = $*header_bgcolor; var Color cGheaderMinus5 = $cGheader->darker(50); var Color cGheaderPlus3 = $cGheader->lighter(30); var string cGcorner_color = "/p0"+$cGheaderPlus3->substr(1,6)+"1"+$cGheaderMinus5->substr(1,6)+"2"+$cGheader->substr(1,6); """ <tr> <td colspan="7"> <table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <td valign="top" rowspan="3" colspan="3" width="5"><img src="$*PALIMGROOT/component/curve-top-left.gif$cGcorner_color" width="5" height="5" alt="" border="0" /></td> <td class="dkLine"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></td> <td valign="top" rowspan="3" colspan="3" width="5"><img src="$*PALIMGROOT/component/curve-top-right.gif$cGcorner_color" width="5" height="5" alt="" border="0" /></td> </tr> <tr> <td class="ltLine"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></td> </tr> <tr> <td class="tabBg"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="3" alt="" border="0" /></td> </tr> <tr> <td class="dkLine" width="1"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></td> <td class="ltLine" width="1"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></td> <td class="tabBg" width="3"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="3" alt="" border="0" /></td> <td class="tabBg" width="100%"> <div align="center"> <div id="p-search" class="portlet"> $cGgoogle <div class="pBody"> <form action="http://google.com/search" method=get target="_blank"> <input type="text" name="q" size="10"> <input type="submit" value="$cGsearch" name="submit"> </form> </div> </div> </div> </td> <td class="tabBg" width="3"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="3" alt="" border="0" /></td> <td class="ltLine" width="1"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></td> <td class="dkLine" width="1"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></td> </tr> <tr> <td valign="top" rowspan="3" colspan="3" width="5"><img src="$*PALIMGROOT/component/curve-bottom-left.gif$cGcorner_color" width="5" height="5" alt="" border="0" /></td> <td class="tabBg"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="3" alt="" border="0" /></td> <td valign="top" rowspan="3" colspan="3" width="5"><img src="$*PALIMGROOT/component/curve-bottom-right.gif$cGcorner_color" width="5" height="5" alt="" border="0" /></td> </tr> <tr> <td class="ltLine"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></td> </tr> <tr> <td class="dkLine"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></td> </tr> </table> </td> </tr> <tr> <td colspan="5"><img src="$*PALIMGROOT/component/clear.gif " width="1" height="3" alt="" border="0" /></td> </tr> """; ###################################