TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

April 30, 2024, 05:59:56 PM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,174
  • Total Topics: 21,220
  • Online today: 147
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 120
  • Total: 121
  • @rjen

[Request] - Search box for site and google

Started by mrbean17, March 06, 2007, 03:54:20 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

vanityq

it doesnt look good, i cant fit the box with portal..

somebody please help heres the code

<table width="160" height="80" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><form id="cse-search-box" action="http://www.google.com/cse" target="_blank">
      <div align="center">
        <p>
          <input size="19" name="q" type="text" />
         

          <input type="submit" name="sa" value=" Search " />
          </p>
        <p>
          <input type="hidden" name="cx" value="xxx/>
          <input type="hidden" name="ie" value="ISO-8859-1" />
          </p>
      </div>
    </form>
      <div align="center">
        <script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en"></script>
      </div></td>
  </tr>
</table>

Crip

<p > is whats throwing it offset </p >

try adding only < br / >
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



vanityq

sorry i got the wrong code to post heres the new one

<form id="cse-search-box" action="http://www.google.com/cse" target="_blank">
    <input type="text" size="18" name="q" />

    <input type="submit" name="sa" value="  Search  " />  <input type="hidden" name="cx" value="partner-pub-7934935500534920:socnmt6styw" />  <input type="hidden" name="ie" value="ISO-8859-1" />
</form>
<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en"></script>

still cant manage to fit it like the portal search

Crip

I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



vanityq

nothing happened, where should i insert it..
hmmm btw, im somehow contented with the look..


<form target="_blank" action="http://www.google.com/cse" id="cse-search-box">
<input type="text" name="q" size="18"/><br style="clear: left;"/>
<input type="submit" value="  Search  " name="sa"/>
<input type="hidden" value="partner-pub-7934935500534920:socnmt6styw" name="cx"/>
<input type="hidden" value="ISO-8859-1" name="ie"/>
</form>
<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en"></script>

thanks crip for the replies >:D<

G6Cad

Add it in a scriptblock and it should work, make sure you also activate the block after you have saved the code in it.

vanityq

thanks G6
much much better :)
ive been using the HTML + BBC before