Có thể bạn quan tâm


Đang tải thanh công cụ tìm kiếm ...

Hiện kết quả từ 1 tới 5 của 5

Anh chị rip giúp em code java này : nhập link và lấy code trong texterae

Chủ đề được gửi trong chuyên mục JavaScript / Ajax bởi HẬN ĐÀN BÀ


  1. 21-10-2011, 12:45 PM

    Anh chị rip giúp em code java này : nhập link và lấy code trong texterae

    Free hosting của bác Google đây_www.vnblogger.com_ sao thèn HẬN ĐÀN BÀ không chiệu xem ?
    - Chèn nhạc vào blog,web: http://www.vnblogger.com/2011/10/chen-nhac-vao-blog-voi-tool-chiplove.html
  2. 21-10-2011, 01:47 PM

    Anh chị rip giúp em code java này : nhập link và lấy code trong texterae

    ai giúp em nào...các pro đâu hết rồi
    Free hosting của bác Google đây_www.vnblogger.com_ sao thèn HẬN ĐÀN BÀ không chiệu xem ?
    - Chèn nhạc vào blog,web: http://www.vnblogger.com/2011/10/chen-nhac-vao-blog-voi-tool-chiplove.html
  3. 21-10-2011, 01:54 PM

    Anh chị rip giúp em code java này : nhập link và lấy code trong texterae

  4. 21-10-2011, 03:37 PM

    Anh chị rip giúp em code java này : nhập link và lấy code trong texterae

    HTML Code:
    <input type="text" name="url" id="input" size="50">
    <input type="button" value="GET" onclick="getcode()">
    <script language="javascript">
    function getcode(){
    url=document.getElementById("input").value;
    a='<style type="text/css">';
    a=a+'\n.recent_post_content{width:100%;}';
    a=a+'\n.recent_post_content img {width:32px;height:32px;background-position: center;margin:7px;padding: 2px;border:#888 solid thin;}';
    a=a+'\n.recent_post_content_item {border-top:#888 thin dashed;}';
    a=a+'\n.recent_post_content_item table, .recent_post_content_item tr, .recent_post_content_item td {vertical-align: middle;}';
    a=a+'\n.recent_post_content_item table {margin-bottom:2px;margin-top:3px;}';
    a=a+'\n.recent_post_content_item:hover {background-color:#4A3829;}';
    a=a+'\n.recent_post_title a{text-transform:uppercase;font-size:12px;text-decoration:none;font-weight:bold}';
    a=a+'\n.recent_post_info a{font-size:11px;text-decoration:none;}';
    a=a+'\n.recent_post_content_item:hover .recent_post_title a{color:#FFFFCC;}';
    a=a+'\n.recent_post_content_item:hover .recent_post_info a{color:#888;}';
    a=a+'\n.recent_post_content_item:hover .recent_post_title a:hover{color:#FFCC00;}';
    a=a+'\n.recent_post_content_item:hover .recent_post_info a:hover{text-decoration:underline;}';
    a=a+'\n</style>';
    a=a+'\n<div class="recent_post_content" id="recent_posts_id"></div>';
    a=a+'\n<script type="text/JavaScript">';
    a=a+'\nvar Posts_Number = 0;var Comments_Number = 0;var New_Posts_Title = [];var New_Posts_Url = [];var New_Posts_Author = [];var New_Posts_Comment_Number = [];var New_Posts_Thumbnail = [];var New_Posts_Snippet = [];';
    a=a+'\nfunction New_Posts_Information(json){var entry;var re = /<\S[^>]*>/g;var str;var banner_begin_index;var banner_end_index;Posts_Number = json.feed.openSearch$totalResults.$t;for (var i = 0; i < 5; i++){entry = json.feed.entry[i];New_Posts_Title[i] = entry.title.$t;for (var k = 0; k < entry.link.length; k++){if (entry.link[k].rel == \'alternate\'){New_Posts_Url[i] = entry.link[k].href;break;}}New_Posts_Author[i] = entry.author[0].name.$t;New_Posts_Comment_Number[i] = parseInt(entry.thr$total.$t);if ("content" in entry){New_Posts_Snippet[i] = entry.content.$t;}else if ("summary" in entry){New_Posts_Snippet[i] = entry.summary.$t;}else New_Posts_Snippet[i] = "";if (New_Posts_Snippet[i].search("bp.blogspot.com") != -1) New_Posts_Thumbnail[i] = entry.media$thumbnail.url; else {str = "src\u003d\"";banner_begin_index = New_Posts_Snippet[i].search(str);if (banner_begin_index == -1){New_Posts_Thumbnail[i] = "http://lh3.ggpht.com/_kck7-TEWM-M/TSZtEyqlErI/AAAAAAAAAO0/cXY9tgbBnko/popular_blank_icon.jpg";}else{New_Posts_Thumbnail[i] = New_Posts_Snippet[i].substring(banner_begin_index + str.length);str = "\""; banner_end_index = New_Posts_Thumbnail[i].search(str);New_Posts_Thumbnail[i] = New_Posts_Thumbnail[i].substring(0, banner_end_index);}} New_Posts_Snippet[i] = New_Posts_Snippet[i].replace(re, "");if (New_Posts_Snippet[i].length > 140){New_Posts_Snippet[i] = New_Posts_Snippet[i].substring(0, 140) + \'...\';}}}';
    a=a+'\nfunction Install_New_Posts(){var str_out = "";for (var i = 0; i < 5; i++){str_out += \'<div class="recent_post_content_item">\';str_out += \'<table width="0%" border="0">\';str_out += \'<tr>\';str_out += \'<td>\';str_out += \'<a href="\' + New_Posts_Url[i] + \'" title="\' + New_Posts_Snippet[i] + \'">\';str_out += \'<img src="\' + New_Posts_Thumbnail[i] + \'" width="32px" height="32px"/>\';str_out += \'</a>\';str_out += \'</td>\';str_out += \'<td>\';str_out += \'<div class="recent_post_title">\';str_out += \'<a href="\' + New_Posts_Url[i] + \'" title="\' + New_Posts_Snippet[i] + \'">\';str_out += New_Posts_Title[i];str_out += \'</a>\';str_out += \'</div>\';str_out += \'<div class="recent_post_info">\';str_out += \'<a href="\' + New_Posts_Url[i] + \'" title="\' + New_Posts_Snippet[i] + \'">\';str_out += \'By \' + New_Posts_Author[i] + \' - \' + New_Posts_Comment_Number[i] + \' nhận xét\';str_out += \'</a>\';str_out += \'</div>\';str_out += \'</td>\';str_out += \'</tr>\';str_out += \'</table>\';str_out += \'</div>\';}document.getElementById(\'recent_posts_id\').innerHTML = str_out;}';
    a=a+'\n<\/script>';
    a=a+'\n<script type="text\/JavaScript" src="'+url+'\/feeds\/posts\/default?max-results=5&orderby=published&alt=json-in-script&callback=New_Posts_Information">';
    a=a+'\n<\/script>';
    a=a+'\n<script type="text\/JavaScript">';
    a=a+'\nInstall_New_Posts();';
    a=a+'\n<\/script>';
    document.getElementById("post").innerHTML='<textarea id="textarea" cols="60" rows="10">'+a+'</textarea>';
    }
    </script>
    <span id="post"></span>
    http://duongthien.info
    http://duongthien.net
  5. 22-10-2011, 05:51 PM

    Anh chị rip giúp em code java này : nhập link và lấy code trong texterae

    anh ơi, đâu có được đâu anh, anh giúp em code lại với
    ----> BỔ SUNG BÀI VIẾT<----
    ---------------------------------------------------------------
    a, được rồi, cam ơn anh ạ.
    Free hosting của bác Google đây_www.vnblogger.com_ sao thèn HẬN ĐÀN BÀ không chiệu xem ?
    - Chèn nhạc vào blog,web: http://www.vnblogger.com/2011/10/chen-nhac-vao-blog-voi-tool-chiplove.html

Thông tin đề tài

Users Browsing this Thread

Hiện đang có 1 người đang xem bài viết này. (0 thành viên và 1 khách)

Visitors found this page by searching for:

Updating