1
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>Vote!</title>
<script type="text/javascript">
var x1 = 0;
function countClicks() {
x1 += 1
document.getElementById("counting").innerHTML = x1;
ClickCount++;
return true;
}
</script>
<script type="text/javascript">
var x2 = 0;
function countClicks1() {
x2 += 1
document.getElementById("counting1").innerHTML = x2;
ClickCount++;
return true;
}
</script>
<script type="text/javascript">
var x3 = 0;
function countClicks2() {
x3 += 1
document.getElementById("counting2").innerHTML = x3;
ClickCount++;
return true;
}
</script>
</head>
<body>
<div id="chart1">
<ul>
<li>
<img src="../Pictures/BWS + L.A +KUSH/Game.RED_Album_Cover.jpg" alt="red album"><br/>
<input type="button" value="VOTE" name="clickOnce" onclick="return countClicks();" />
<div id="counting"></div>
</li>
<li>
<img src="../Pictures/BWS + L.A +KUSH/Game.RED_Album_Cover.jpg" alt="red album"><br/>
<input type="button" value="VOTE" name="clickOnce" onclick="return countClicks1();" />
<div id="counting1"></div>
</li>
<li>
<img src="../Pictures/BWS + L.A +KUSH/Game.RED_Album_Cover.jpg" alt="red album"><br>
<input type="button" value="VOTE" name="clickOnce" onclick="return countClicks2();" />
<div id="counting2"></div>
</li>
</ul>
</div>
</body>
</html>
感謝您提供了大量的學習曲線!非常感謝! :) – user939222