The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> I'm new to HTML and i need feedback on something, Trying to switch images on button click but so when u click it again i
fllwxDumbian
post Jan 1 2022, 04:40 AM
Post #1





Group: Members
Posts: 6
Joined: 1-January 22
Member No.: 28,210



<script>
function aclick()
{
var xy;
var xy = 0;
if (xy === 0) {
document.getElementById('abc')
.src="D:\\FLoW Dumbian\\pics\\healer.png";
var xy;
var xy = 1;
}
else if (xy === 1) {
document.getElementById('abc')
.src="D:\\FLoW Dumbian\\pics\\electrician.png";
var xy;
var xy = 0;
}
}
</script>

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 12th May 2024 - 02:21 PM