Home > Web Front-end > JS Tutorial > body text

jQuery row-level parsing to read XML files (source code attached)_jquery

WBOY
Release: 2016-05-16 18:44:52
Original
984 people have browsed it

I am working on a project recently. Because the page uses cookies, it is necessary to determine whether the user's browser supports cookies and prompt the user how to turn on the cookie function of the browser. At the same time, the entire project must be configured with multi-language support, including Chinese, Vietnamese, Japanese and English, so a language configuration file is required. In the project, jQuery is used to parse and read XML language configuration files to implement language scheduling. This is the test source code for jQuery’s function of parsing and reading XML files. I will share it now.
Directory structure:
main.css file code:

Copy code The code is as follows:

@CHARSET "UTF-8";
* {
margin: 0px;
padding: 0px;
}
body {
width: 800px;
text-align: left;
font-size:62.5%;
font: normal 0.75em tahoma, helvetica, sans-serif;
}
#Message_error {
height:16px ;
color:#000;
line-height:16px;
background:#fcc url(image/msg_error.png) no-repeat;
margin-bottom:2px;
border -bottom:#faa 1px solid;
padding-left:20px;
overflow:hidden;
display:none;
}
#Message_success {
height:16px;
line-height:16px;
color:#000;
background:#cfc url(image/msg_success.png) no-repeat;
margin-bottom:2px;
border-bottom: #afa 1px solid;
padding-left:20px;
overflow:hidden;
display:none;
}

index.html file code:
Copy code The code is as follows:



< ;meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
jQuery line-level reading of XML files
< link rel="stylesheet" href="main.css" href="main.css" type="text/css"/>

Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!