I have tried the various solutions on the site, but I suspect I am doing something wrong with implementing the actual image in the document, or anything. Thanks in advance for the help!
Here is my current code:
<html>
<body>
<link type="text/css" rel="stylesheet" href="Stylesheet.css"/>
<img id="teemoimage" src="exampleurl">
<script>
var leagueofteemo=new Array()
var counter = 1
leagueofteemo[1]="exampleurl"
leageuofteemo[2]="exampleurl"
function back()
{
if (counter = 1)
{
counter = leagueofteemo.length;
}
else
{
counter--;
}
document.getElementById("teemoimage").src =leagueofteemo[counter]
}
function foward()
{
if (counter = leageofteemo.length)
{
counter = 1;
}
else
{
counter++;
}
document.getElementById("teemoimage").src = leageuofteemo[counter];
}
</script>
<form>
<input type="button" onclick="back()" value="Back">
<input type="button" onclick="foward()" value="Foward">
</form>