Archive for Swapitforum Talk about anything!
 


       Swapitforum Forum Index -> HTML
Alz

Google Search Bar... That Works! And Its Story!

Yesterday & Today (Wed&Thur) we were doing these geog assesments, we had to create webpages about some capital citys, I chose Paris. anyway i went on this forum to get the google search bar at the bottom, i copied the code and pasted it into my webpage, ppl started coming over saying "WOW! how did u get that?!?!?!?" so i said, with my website. and that got them confuzed... so they started bugging me, so i tweaked the code a bit, so the bar didnt work!!! so i e-mailed everyone with the fake code (they thought it was real [i had mine like that aswell so it wasnt obvious!]) so on thurs i tweaked the code again so it worked, and thats it. here is the code:
Spoiler:


Code:

  <!-- Search Google -->
<table bgcolor="#ffffff">
<tr><td>
</td>
<td nowrap="nowrap" valign="top" align="left" height="32">
<form method="get" action="http://www.google.co.uk/search?hl=en&q=search&btnG=Google+Search&meta=" target="_top">
<a href="http://www.google.com/">
<img src="http://www.google.com/logos/Logo_25wht.gif" border="0" alt="Google" align="middle" /></a>
<input type="text" name="q" size="31" maxlength="255" value="" />
<input type="submit" name="sa" value="Search">
</form>
</td>
<td>
</script>
</td>
</tr></table>
<!-- Search Google -->



the bit i tweaked to not work is this bit.

<form method="get" action="http://www.google.co.uk/search?hl...&btnG=Google+Search&meta=" target="_top">
>)G0LD DRAG0N(<

what did you change the make it not work?
did you change the method to "post"?
>)G0LD DRAG0N(<

btw that really overcomplicates it
here is what i wouldve done (without the ads and the pics and stuff):
Spoiler:


Code:

<form action="http://www.google.com/search" method="get">
<input type="text" name="q">
<input type="submit" value="Google Search">
</form>



all you really need for that is the form action, method, and the name for the text input to be "q"
otherwise the rest doesnt matter
Alz

no, that code works
>)G0LD DRAG0N(<

i know it works, i was just saying that its more complicated than it should be
Alz

Yea, but u really need to keep the google image, edited it, no ads, just google img
>)G0LD DRAG0N(<

why do you need to keep the google image?
Alz

lol, i dont really know ;D
>)G0LD DRAG0N(<

you dont need to...
Alz

yea i know but...
>)G0LD DRAG0N(<

ok...
Alz

are we gunna finish all of these...
Pinecone

He didnt even give me any of the code =(

but i managed without him...
And i probably got a better grade, seeing as i wasnt too busy with search bar tweaking to do the work

Alz spent the first lesson making a nice site banner, then spent the rest mucking about with the HTML

I know hardly anything about html and all that, but do better than him in ICT. In fact, most people do, even those who cant even operate pc's very well.
Its because his genius isnt recognized...
>)G0LD DRAG0N(<

im taking a course in computer programming next year. first semester is just all of the basics, and i think we do a unit on html in that (A+ for me!!). second semester we learn java!!!
Pinecone

kl

where are you going to do this course?
>)G0LD DRAG0N(<

at my high school
Pinecone

kl
in school time or what?
>)G0LD DRAG0N(<

yeah its a class
Pinecone

kk
so is a whole class doing it or what. How many people said they wanted to?
>)G0LD DRAG0N(<

idk its just like a regular class
Pinecone

allright
so soon you will be technologicly advanced
>)G0LD DRAG0N(<

SW33T
Pinecone

5W337 + L337

       Swapitforum Forum Index -> HTML
Page 1 of 1
Create your own free forum | Buy a domain to use with your forum