How do I add the VCU Google SiteSearch to my web site?
Two options are presented to assist you in adding the Google SiteSearch to your departmental web site.
- Search your Department Web if your department URL is of the form http://www.DEPT.vcu.edu/
- Search your Department Web Site if your department URL is of the form http://www.vcu.edu/DEPT/
Your department URL is of the form http://www.DEPT.vcu.edu/
This search feature searches only your departmental web site. This option uses only HTML code which can be placed most anywhere within the <body> of your web page.
The HTML code (below) will produce a search that looks like this:
HTML Code: {insert this form into the body of your HTML page}
| <form method="get"
action="http://www.google.com/u/vcu"> <label for="search"></label> <input type=text id="search" name=q size=25 maxlength=255 value=""><br> <input type="hidden" name="sitesearch" value="SiteSearchValue"> <input type=submit name="sa" value="Search"> <input type=hidden name=domains value="DomainsValue"> </form> |
For Technology Services, whose URL is http://www.ts.vcu.edu/,
SiteSearchValue = ts.vcu.edu
DomainsValue = ts.vcu.edu
Your department URL is of the form http://www.vcu.edu/DEPT/
This search feature searches only your departmental web site. This option uses only HTML code which can be placed most anywhere within the <body> of your web page.
The HTML code (below) will produce a search that looks like this:
HTML Code: {insert this form into the body of your HTML page}
| <form method="get"
action="http://www.google.com/u/vcu"> <label for="search"></label> <input type=text id="search" name=q size=25 maxlength=255 value=""><br> <input type="hidden" name="sitesearch" value="www.vcu.edu"> <input type=submit name="sa" value="Search"> <input type=hidden name=domains value="www.vcu.edu"> <input type=hidden name="hq" value="HQValue"> </select><br> </form> |
To search the Web Support Services web site only, whose URL is http://www.vcu.edu/web/, then use following value:
HQValue = inurl:vcu.edu/web/
To search the help area only of Web Support Services, whose URL is http://www.vcu.edu/web/help/ then use the following value:
HQValue = inurl:vcu.edu/web/help/
