ad
This commit is contained in:
@@ -40,17 +40,10 @@
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<br/>
|
||||
<h1>是兄弟就找我,无兄弟不传奇!</h1>
|
||||
<!-- 点击图片调用recordClick函数 -->
|
||||
<a href="javascript:void(0);" onclick="recordClick();">
|
||||
<img src="ad.jpg" alt="广告图片">
|
||||
</a>
|
||||
<!-- 显示点击次数 -->
|
||||
<p>点击次数: <span id="clickCountDisplay">0</span></p>
|
||||
|
||||
<script>
|
||||
// 在页面加载后更新点击次数的显示
|
||||
document.getElementById("clickCountDisplay").innerText = clickCount;
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user