Home > front end >  Js have no reaction, the head introduced JQ library file, delete the JQ library files, how to change
Js have no reaction, the head introduced JQ library file, delete the JQ library files, how to change

Time:12-06

Js have no reaction, the head introduced JQ library file, delete the JQ library files, how to change the code, can be compatible with JQ library code??

<script type="text/javascript" SRC="https://bbs.csdn.net/topics/[! -- news. Url -] e/ecmsphp/Geturls/js/jquery - 1.9.1. Min. Js" & gt; </script>


Window. The onl oad=function () {
Var nav=document. GetElementById (' nav ');
Var oNav=nav. GetElementsByTagName (" li ");

Var container=document. GetElementById (" container ");
Var oDiv=container. GetElementsByClassName (' TAB ');
for(var i=0; iONav [I] index=I;
ONav [I] onm ouseover=function () {
for(var i=0; iONav [I] the className=' ';
ODiv [I]. Style. The display="none";
}
Enclosing the className='act';
ODiv [this index]. Style. The display="block"
}
For (var m=1; MONav [m]. The className=' ';
ODiv [m]. Style. The display="none";
}
}
};
</script>

CodePudding user response:

Jq address problem

CodePudding user response:

reference 1st floor jio can reply:
jq address questions
no, address no problem, I was the empire CMS, the field is the domain name call tag

CodePudding user response:

Ponder path

CodePudding user response:

citric acid didn't you, reference 3 floor response:
closely studied path
ask ace to give directions, path no problem, don't add the following code before, JQ library files can be normal operation

CodePudding user response:

If jq library to add something, there is a window. The onl oad, give your onl oad to cover

CodePudding user response:

refer to 6th floor zc_1994 response:
is jq library things, there is a window. The onl oad, give you onl oad to cover the
it was added to the normal jQuery (function ($) {

CodePudding user response:

Onload can only be written once, and will put behind the front cover,
$(function () {

})
This literally write, write a few will do

CodePudding user response:

refer to the eighth floor who ah sa response:
onl oad can only be written once, and will put behind the front cover,
$(function () {

})
This literally write, write a few will do
turned out to be like that, thanks
  • Related