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: ![](http://files.jb51.net/upload/20091012152343303.jpg)
main.css file code:
@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:
< ;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"/>
Latest Articles by Author
-
2024-10-22 09:46:29
-
2024-10-13 13:53:41
-
2024-10-12 12:15:51
-
2024-10-11 22:47:31
-
2024-10-11 19:36:51
-
2024-10-11 15:50:41
-
2024-10-11 15:07:41
-
2024-10-11 14:21:21
-
2024-10-11 12:59:11
-
2024-10-11 12:17:31