Skip to content
This repository was archived by the owner on Apr 29, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added 1-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 2-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 3-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
77 changes: 69 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,70 @@
<!DOCTYPE html>
<html>
<head>
<title>So-and-so's Stateful Assignment</title>
</head>
<body>
YOUR PROJECT HERE
</body>
</html>
<head>
<title>rock paper scissors</title>

</head>
<body>
<div>
<img id="image" />Make your selection.
<select id="CarList">

<option value=" ">Select!</option>
<option value="1-1.jpg">Rock</option>
<option value="3-1.jpg">Paper</option>
<option value="2-1.jpg">Scissors</option>
</select>
<script>

function setCar() {
var img = document.getElementById("image");
img.src = this.value;
return false;

var img= document.getElementById("CarList");
var selection = CarList.options[CarList.selectedIndex].value;

}
document.getElementById("CarList").onchange = setCar;



</script>
</div>


<div id="result">

<script language="JavaScript">
/*
Random Image Script */
function random_imglink(){
var myimages=new Array()

myimages[1]="3.jpg"
myimages[2]="2.jpg"
myimages[3]="1.jpg"

var ry=Math.floor(Math.random()*myimages.length)
if (ry==0)
ry=1
setTimeout(function(){document.write('<img src="'+myimages[ry]+'" border=0>');
},3000);

setTimeout(function(){document.write("you lost!");
},4000);


}

random_imglink()

</script>

</div>

</script>


</style>

</body>