Enable your website to have the msdn resource library search function [excerpt msdn]

Source: Internet
Author: User

Method 1

Add the following to the area where you want to add the msdn search LinkCode:

 
<Script language = "JavaScript" src = "http://www.microsoft.com/china/msdn/search/msdn_search.js"> </SCRIPT>

Use the above Code to generate a search style, as shown in:

Note: The above code will always be referenced by default.MsdnSearch links, which cannot be customized. In addition, use this method to referenceMsdnSearch links, whenMsdnWhen the search code changes, you do not need to modify your webpage code again, so it is more convenient and accurate.

Back to Top

Method 2

Add the following code directly to the desired link for the msdn search:

<Table border = "0" cellpadding = "2" cellspacing = "4" bgcolor = "# e5eaed"> <tr> <form method = "get" Action = "http://www.microsoft.com/china/msdn/searchredir.aspx"> <TD width = "52">  </TD> <input name = "Qu" type = "text" size = "30"> </TD> <input type = "Submit" name = "Submit" value = "Search msdn"> </TD> </form> </tr> </table>

You can customize the search text, background color, and other styles based on your preferences. Note the following three points:

1.

The "method" method in the "form" mark must be "get ";

2.

The "action" in the "form" mark must be http://www.microsoft.com/china/msdn/searchredir.aspx;

3.

The name of the Search Keyword input box must be "Qu ".

In addition, we provide you with three different msdn logo images for your choice:

Msdn logo

Back to Top

Method 3

The msdn search URL format is:

 
Http://www.microsoft.com/china/msdn/searchredir.aspx? Qu = search keyword

If you are very familiar with HTML and dynamic web page creation, with the above URL format, you can easily write the webpage code you need. You only need to pass the keywords to be searched as parametersHttp://www.microsoft.com/china/msdn/searchredir.aspxThis page is enough.

It allows your website to integrate the rich resources of the msdn Chinese website to better serve developers.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.