将页面部分jS代码转为JQuary代码

GitlabVersion
sw 11 years ago
parent d0c9390e91
commit d2376eb0b1

@ -25,7 +25,6 @@
function show()
{
$("#what_is_project_div").slideToggle();
}
</script>
</div>

@ -1,10 +1,10 @@
<script type="text/javascript">
function switchTab(ProTag) {
var display_index = 3 - ProTag;
document.getElementById("tab" + ProTag).className = "selected";
document.getElementById("tab" + display_index).className = "";
document.getElementById("content" + ProTag).style.display = "";
document.getElementById("content" + display_index).style.display = "none";
$("#tab" + ProTag).attr("class","selected");
$("#tab" + display_index).attr("class","");
$("#content" + ProTag).show();
$("#content" + display_index).hide();
}
</script>

Loading…
Cancel
Save