在我点击的LI导航菜单中,我无法添加活动类。
当我点击WHAT WE DO on home page时,它会跳转到what we do page,所以我需要what we do page中的菜单WHAT WE DO才是活动的。
这是我的
JS
$( document ).ready(function() {
$( "#cssmenu a" ).click(function(e) {
e.preventDefault();
var navId = $(this).attr("href");
var str = '.'
我有一个小的div标记,当我单击它(onClick事件)时,它将运行printMousePos()函数。这是HTML标签:
<html>
<header>
<!-- By the way, this is not the actual html file, just a generic example. -->
<script src='game.js'></script>
</header>
<body>
<div