Problems and solutions of Jqury Slidetoggle scintillation
<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "HTTP://WWW.W3.ORG/TR/HTML4/LOOSE.DTD" >
<script type= "text/web Effects" src= "Js/jquery-1.6.2.min.js" >
</script>
<script type= "Text/javascript" >
$ (document). Ready (function () {
$ (". Flip1"). Click (function () {
$ (". Panel"). Slidetoggle ("slow");
});
});
$ (document). Ready (function () {
$ (". Flip2"). Click (function () {
$ (". Pane2"). Slidetoggle ("slow");
});
});
</script>
<style type= "Text/css Tutorial" >
Div.panel,p.flip1,div.pane2,p.flip2
{
margin:0px;
padding:5px;
Text-align:center;
Background: #e5eecc;
Border:solid 1px #c3c3c3;
width:150px;
}
Div.panel,div.pane2
{
Display:none;
}
</style>
<body>
<p class= "FLIP1" > Basic Data </p>
<div class= "Panel" >
<p><a href= "#" > Employee Management </a></p>
<p><a href= "#" > Role Management </a></p>
<p><a href= "#" > Rights Management </a></p>
</div>
<p class= "FLIP2" > News management </p>
<div class= "Pane2" >
<p><a href= "#" > Inquiry News </a></p>
<p><a href= "#" > Add news </a></p>
</div>
</body>
Solving method
<! in Page configuration DOCTYPE/> is as follows
<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "HTTP://WWW.W3.ORG/TR/HTML4/LOOSE.DTD" >
where "HTTP://WWW.W3.ORG/TR/HTML4/LOOSE.DTD" is required, if less this sentence will still have flashing problems, specifically why I am not quite sure