Search

This html codeblock and iframe combination adds a google search box which can search the whole web or limit the results to just Javea Computer Club.

nb: margin-left with negative value to pull the search box to the left inside the sidebar, and on the nav:side page the iframe width has been increased to 190px. Rob.

Codeblock

<html>
  <body>
 
<form method="get" action="http://www.google.com/search" target="google_window">
 
<div style="border:none;padding:2px;width:180px;margin-left:-10px">
<table border="1" cellpadding="0">
 
<tr><td>
<input type="text"   name="q" size="25"
 maxlength="255" value="" />
</td></tr>
 
<tr><td>
<input type="submit" value="Google Search" />
</td></tr>
 
<tr><td align="left" style="font-size:75%">
<input type="checkbox"  name="sitesearch" value="javea-computer-club.wikidot.com" unchecked /> 
Search JCC site only 
 
</td></tr></table>
</div>
 
</form>
 
  </body>
</html>

Iframe

As you cannot display html code directly you need to reference the codeblock with an iframe:

[[iframe http://javeacomputerclub.wikidot.com/search/code/1 frameborder="1" scrolling="no" width="200px" height="125px"]]

To add the search box to the side bar, only the iframe is added to the nav:side page. If you add the codeblock and iframe to the nav:side page it doesn't find the codeblock.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License