Jump to content

Google custom search engine


DimisD

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.