DimisD Posted February 7, 2007 Share Posted February 7, 2007 Hi, is there someone who can fix this custom google search engine for me please? The problem is that i can not pass the href values to the Form action. thank you. <HTML> <HEAD> <TITLE>custom google search</TITLE> <META http-equiv=Content-Type content="text/html; charset=utf-8"> <META content="MSHTML 6.00.2900.2912" name=GENERATOR> <style> .tabInactive { FONT-SIZE: 12px; COLOR: #ffffff; FONT-FAMILY: Verdana; TEXT-DECORATION: underline} .tabActive { FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: Verdana; TEXT-DECORATION: none} </style> <SCRIPT language=javascript> function toggleTab ( searchType, qcat, idName ) { var tabs = document.getElementsByTagName('a'); for( var i=0; i<tabs.length; i++ ) { var tabi = tabs; if ( tabi.id == idName && tabi.className == "tabInactive" ) { tabi.className="tabActive";} else if ( tabi.id == idName && tabi.className=="tabActive" ) { tabi.className="tabActive";} else if ( tabi.className=="tabActive" ) { tabi.className="tabInactive";} } } </SCRIPT> </HEAD> <BODY > <FORM name=f action="http://www.google.com/search" method="get" target="_blank"> <TABLE border=0 cellPadding=0 cellSpacing=0 bgcolor="#88a3a9"> <TBODY> <TR> <TD colSpan=2><DIV id=navTab> <A class=tabActive id=sbtWeb onClick="toggleTab('Web','web','sbtWeb'); return false;" href="http://www.google.com/search"> <DIV style="DISPLAY: inline">Web</DIV></A> <SPAN class=tabDivider><SPAN class=spacer style="WIDTH: 6px; HEIGHT: 1px"> </SPAN>|<SPAN class=spacer style="WIDTH: 6px; HEIGHT: 1px"></SPAN></SPAN> <A class=tabInactive id=sbtImages onClick="toggleTab('Image', 'images','sbtImages'); return false;" href="http://images.google.com/images"> <DIV style="DISPLAY: inline">Images</DIV></A> <SPAN class=tabDivider><SPAN class=spacer style="WIDTH: 6px; HEIGHT: 1px"></SPAN>| <SPAN class=spacer style="WIDTH: 6px; HEIGHT: 1px"></SPAN></SPAN> <A class=tabInactive id=sbtVideo onClick="toggleTab('Video', 'smd','sbtVideo'); return false;" href="http://video.google.com/videosearch"> <DIV style="DISPLAY: inline">Video</DIV> </A> <SPAN class=tabDivider><SPAN class=spacer style="WIDTH: 6px; HEIGHT: 1px"> </SPAN>|<SPAN class=spacer style="WIDTH: 6px; HEIGHT: 1px"></SPAN></SPAN> <A class=tabInactive id=sbtMaps onClick="toggleTab('Maps', 'map','sbtMaps'); return false;" href="http://maps.google.com/maps"> <div style="display: inline;">Maps</div></A> <SPAN class=tabDivider><SPAN class=spacer style="WIDTH: 6px; HEIGHT: 1px"></SPAN>| <SPAN class=spacer style="WIDTH: 6px; HEIGHT: 1px"></SPAN></SPAN> <A class=tabInactive id=sbtBlogs onClick="toggleTab('Blogs', 'blg','sbtBlogs'); return false;" href="http://blogsearch.google.com/blogsearch"> <DIV style="DISPLAY: inline">Blogs</DIV> </A><SPAN class=tabDivider><SPAN class=spacer style="WIDTH: 6px; HEIGHT: 1px"></SPAN></SPAN></DIV></TD> </TR> <TR> <TD><INPUT style="WIDTH: 351px" name=q> </TD> <TD vAlign=center> <DIV id=msSearchSubmit> <INPUT type=submit value="search" alt=Search> </DIV> </TD> </TR> <TR> <TD colSpan=2> </TD> </TR> </TBODY> </TABLE> </FORM> </BODY> </HTML> Link to comment https://forums.phpfreaks.com/topic/37543-google-custom-search-engine/ Share on other sites More sharing options...
fenway Posted February 8, 2007 Share Posted February 8, 2007 What's an href value? Link to comment https://forums.phpfreaks.com/topic/37543-google-custom-search-engine/#findComment-179924 Share on other sites More sharing options...
mainewoods Posted February 11, 2007 Share Posted February 11, 2007 to change a forms action url on the fly, do this: document.formname.action = 'new url'; document.formname.submit(); Link to comment https://forums.phpfreaks.com/topic/37543-google-custom-search-engine/#findComment-181665 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.