hosted by liquidweb


Go Back   Web Hosting Talk : Other Forums : Web Hosting Lounge : Google > How do they do it?
Reply

Forum Jump

Google > How do they do it?

Reply Post New Thread In Web Hosting Lounge Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old
Aspiring Evangelist
 
Join Date: Mar 2001
Posts: 351

Google > How do they do it?


go to www.google.com and look at that text field. For me, the cursor is already blinking before I click is... How did they do it? I tried to figure it out, and I need to know for this chat script I'm making.


Thanks!
- Shawn



Sponsored Links
  #2  
Old
Web Hosting Evangelist
 
Join Date: Aug 2001
Location: Australia
Posts: 468
This is what does it::

function sf(){document.f.q.focus();}

then throw a call to that in the onload......(and obviously rename to match your own form fields

__________________
--

  #3  
Old
Web Hosting Master
 
Join Date: Nov 2001
Posts: 857
This is how they did it.
They named their form f like this <form name="f"> and they named that particular input field q like this <input name="q">

In the header they defined this function as javascript:
<script>
function sf(){document.f.q.focus();}
</script>

Then they called that function when the page loads by placeing the following in the body tag:
OnLoad=sf()

I hope that helps.

Regards,
Micheal

EDIT: I see 21inchguns posted just before me...

__________________
<?
header("Location: http://www.hostevolve.com/");
?>

Sponsored Links
  #4  
Old
Web Hosting Master
 
Join Date: Nov 2001
Location: California
Posts: 1,991
JavaScript

  #5  
Old
Web Hosting Master
 
Join Date: Feb 2002
Location: San Diego CA
Posts: 1,480
You can try taking a peek at the source code from View>Source
;-)

__________________
What you can do with Cpanel ------------------> |||||
What you can do with Cpanel XP+CpanelAPP -------> ||||||||||||||||||||||||||||||||||||||||

Your competitors are cashing in with Cpanel XP & CpanelAPP, are you?

  #6  
Old
Aspiring Evangelist
 
Join Date: Mar 2001
Posts: 351
Thanks so much guys! I really appreciate it
And yes, I did look at the source, hehe

Reply

Related posts from TheWhir.com
Title Type Date Posted
Google Cloud Platform Offers $100,000 in Cloud Credits to Startups Web Hosting News 2014-09-12 14:10:07
Italy Gives Google 18 Months to Comply with User Privacy Regulations Web Hosting News 2014-07-21 22:59:34
Google Announces General Availability of Cloud Endpoints, Updates Mobile Backend Starter Web Hosting News 2013-11-11 12:14:49
Google Offers 15GB of Free Storage Across Cloud Services Web Hosting News 2013-05-13 15:00:03
Why You Should Embrace Google Plus Blog 2013-03-08 09:18:17


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?