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:
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.