要更改的Javascript窗口

时间:2014-04-08 20:10:45

标签: javascript alert prompt

我正在尝试更改Javascript查询将答案从警报窗口返回到“可自定义”的答案,在哪里选择颜色,字体等。我必须更改代码? 抱歉我缺乏知识,但我正在努力解决这个问题,而且我的技能很低:

<!DOCTYPE html>
<html>
<head>

<title>Test</title>
    <meta name="description" content="Test Anna" />
    <link rel="stylesheet" href="reset.css" type="text/css" media="screen">
    <link rel="stylesheet" href="style.css" type="text/css" media="screen">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js">            </script>     
<script type="text/javascript">
$(document).ready(function(){
$('form').submit(function(e){

    var URL = $('.nr-text').val();
    var utente = URL.split('/');

    var url = "http://graph.facebook.com/"+utente[3];
    $.getJSON(url,function(json){
        alert(json.id);
    });


    e.preventDefault();
});
});
</script>

<meta property="fb:admins" content="1505063454" />

</head>
<body>

    <form action="" method="post">

   <label for="fb_profile_url" class="text-input-label fb_profile_url-text-input-label">
    Enter your personal Facebook profile URL:
   </label>

   <input type="text" name="fb_profile_url" value="" class="nr-text" size="45" placeholder="http://www.facebook.com/YourProfileName" />

   <input type="hidden" name="unsanitized" class="nr-hidden hidden-input-for-unsanitized" />
   <p>
      <input type="submit" value="Lookup numeric ID..." class="button-primary">
   </p>

   <h1>Easily find your Facebook numeric personal ID for fb:admins social plugins and more!</h1>

   <p id="description">
    For integrations of certain Facebook social plugins, like the "Like" button and "Like box", and others, Facebook 
    requires that you know your Facebook numeric user ID.  Unfortunately, they make this very difficult to find, especially 
    if you have a so-called "vanity" personalized profile URL. If you can't find your Facebook ID, or don't know what it is 
    and need it, just enter your full Facebook profile URL in the above form, and we can scrape the ID from the code of your 
    personal profile page.  
   </p>

</form>     


</body>

0 个答案:

没有答案