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 06-20-2002, 09:17 PM
PencWeb PencWeb is offline
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

Reply With Quote


Sponsored Links
  #2  
Old 06-20-2002, 09:26 PM
21inchguns 21inchguns is offline
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

__________________
--

Reply With Quote
  #3  
Old 06-20-2002, 09:27 PM
michaeln michaeln is offline
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/");
?>

Reply With Quote
Sponsored Links
  #4  
Old 06-20-2002, 10:21 PM
iamdave iamdave is offline
Web Hosting Master
 
Join Date: Nov 2001
Location: California
Posts: 1,991
JavaScript

Reply With Quote
  #5  
Old 06-21-2002, 01:00 AM
Roy@ENHOST Roy@ENHOST is offline
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?

Reply With Quote
  #6  
Old 06-21-2002, 10:35 AM
PencWeb PencWeb is offline
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 With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
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
60 Percent of Internet Devices Go through Google Servers Each Day Web Hosting News 2013-07-24 17:04:56
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:



 

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?