aboutsummaryrefslogtreecommitdiffstats
path: root/csci4131/hw3/contacts.js
diff options
context:
space:
mode:
Diffstat (limited to 'csci4131/hw3/contacts.js')
-rw-r--r--csci4131/hw3/contacts.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/csci4131/hw3/contacts.js b/csci4131/hw3/contacts.js
new file mode 100644
index 0000000..0e9b8bb
--- /dev/null
+++ b/csci4131/hw3/contacts.js
@@ -0,0 +1,8 @@
+function change(big, small, row) {
+ // document.getElementById("bigboi").src = big;
+ document.getElementById("smol" + row).src = small;
+}
+function lucky() {
+ var image = ["carlson.jpg", "johnston.jpg", "morrill.jpg", "shepherd.jpg", "snyder.jpg", "walter.jpg"];
+ document.getElementById("bigboi").src = image[Math.floor(6 * Math.random())];
+}