WEB Cursor Focus on Search

Discussion in 'OT Technology' started by RetroEvolute, Aug 20, 2009.

  1. RetroEvolute

    RetroEvolute 404 Not Found OT Supporter

    Joined:
    Mar 25, 2008
    Messages:
    14,858
    Likes Received:
    0
    Location:
    Manhattan, K.S.
    I've been trying to get the cursor to focus in on a search bar from bing in one of my html files..

    It should be a relatively simple task I would think, but I can't figure it out, as I'm code-retarded (in this case javascript).

    Here's the code:

    Code:
    <!-- Bing -->
    <meta name="Search.WLSearchBox" content="1.1, en-US" />
    <div id="WLSearchBoxDiv">
    <table cellpadding="0" cellspacing="0" style="width:322px; height:32px;"><tr id="WLSearchBoxPlaceholder"><td style="width:100%; border:solid 1px #cccccc; border-right-style:none; padding-left:10px; padding-right:10px; vertical-align:middle;"><input id="WLSearchBoxInput" type="text" value="Loading..." disabled="disabled" style="background-image:url(http://www.bing.com/siteowner/s/siteowner/searchbox_background_k.png); background-position:right; background-repeat:no-repeat; font-family:Arial; font-size:14px; color:#000000; width:100%; border:none 0 transparent;"/></td><td style="border:solid 1px #cccccc; border-left-style:none; padding-left:0px; padding-right:3px;"><input id="WLSearchBoxButton" type="image" src="http://www.bing.com/siteowner/s/siteowner/searchbutton_normal_k.gif" style="border:none 0 transparent; height:24px; width:24px; vertical-align:top;"/></td></tr></table>
        <script type="text/javascript" charset="utf-8">
        var WLSearchBoxConfiguration=
        {
            "global":{
                "serverDNS":"www.bing.com",
                "market":"en-US"
            },
            "appearance":{
                "autoHideTopControl":false,
                "width":800,
                "height":550,
                "theme":"Blue"
            },
            "scopes":[
                {
                    "type":"web",
                    "caption":"Web",
                    "searchParam":""
                }
            ]
        }
        </script>
        <script type="text/javascript" charset="utf-8" src="http://www.bing.com/bootstrap.js?market=en-US&ServId=SearchBox&ServId=SearchBoxWeb&Callback=WLSearchBoxScriptReady"></script>
    </div>
    <!-- Bing -->
    
    Can someone PLEASE help me figure this out? Thanks. :wtc:
     
  2. Insert Tokens

    Insert Tokens Making Cancer My Bitch OT Supporter

    Joined:
    Jan 12, 2006
    Messages:
    8,330
    Likes Received:
    76
    Location:
    Tasmania
  3. Ricky

    Ricky █▄ █▄█ █▄ ▀█▄

    Joined:
    Jun 17, 2005
    Messages:
    38,766
    Likes Received:
    6
    fuck i've been trying to do that for the longest time

    :bowdown:
     
  4. brds

    brds OT Supporter

    Joined:
    Jun 26, 2006
    Messages:
    17,652
    Likes Received:
    15
    Location:
    Atlanta
    .
     

Share This Page