The reason is very simple, no id in DOM for msg_box div tags, how to solve this problem?
:
on all pages of public header file header. The TPL. Written in HTML:

<Script>
function changMenu (index) {
if (typeof getElementById (" msg_box ")=="object") {
//if there is a msg_box object, refresh the page
showMenu (index);
} else {
//if there is no redirection to use Ajax to refresh the page window.
location="/index. The HTML";

}}
</script>

but the project index. The HTML has four properties of the same page, need Ajax to refresh, then there is a question, when the user clicks on the third column, although you can return to the index, HTML, but unable to refresh the content to the third column. At this time there are two solutions:
plan 1:
the first step:
on all pages of public header file header. The TPL. Written in HTML:

<Script>
function changMenu (index) {
if (typeof getElementById (" msg_box ")=="object") {
//if there is a msg_box object, refresh the page
showMenu (index);
} else {
//if there is no redirection to use Ajax to refresh the page window.
location="./index HTML? Type="+ index;

}}
</script> The second step:



improve showMenu function
function showMenu (index) {
if (typeof getElementById (" msg_box ")=="object") {
//if there is a msg_box object, refresh the page
...
} else {
url=window. The location. Href;
reg=/^ (. *) \/index \ HTML \? Type \ \ d=$/gi;
if (reg. Test (url)) {
//if in accordance with the parameters of the url of the page. Is to get the parameters of the
the index=url. The substr (url. The length - 1);
...

}}
}

scheme 2:

JS cookie function call transfer parameters on all pages of public header file header. The TPL. Written in HTML:

<Script>
function changMenu () {
the index=getCookie (" index ");
if the index (index==null)=1;
if (typeof getElementById (" msg_box ")=="object") {
//if there is a msg_box object, refresh the page
showMenu (index);
} else {
setCookie (" index ", the index);
//if there is no redirection to use Ajax to refresh the page window.
location="/index. The HTML";

}}
function setCookie (name, value) {
var Then=new Date ()
Then the setTime (Then) getTime () + 1 * 3600000)//hour
the document. The cookie=value + name + "=" + "; expires="+ Then. ToGMTString ();

} function getCookie (name)
{
var arr=document. Cookies. Match (new RegExp (" (^ |) "+ name +"=(*) [^;] [; | $) "));
if (arr!=null) return unescape (arr) [2]. Return null;
}

</script>


This concludes the body part