diff --git a/fishiemart.html b/fishiemart.html index 7eb2012..77a712c 100644 --- a/fishiemart.html +++ b/fishiemart.html @@ -19,7 +19,7 @@ - +

BGM player

diff --git a/index.html b/index.html index 2ed7661..b11736e 100644 --- a/index.html +++ b/index.html @@ -28,7 +28,7 @@ - +
diff --git a/meta/gallery.js b/meta/gallery.js index 730d9ee..9efa9d4 100644 --- a/meta/gallery.js +++ b/meta/gallery.js @@ -1,3 +1,16 @@ +function preloadArrows() { + function preloadImages() {//v1.0 + var doc = document, args = arguments; if (!doc.img) doc.img = new Array(); + for (var i = 0; i < args.length; i++) { doc.img[i] = new Image; doc.img[i].src = args[i]; } + } + preloadImages( + "/meta/arrow-right-hover.png", + "/meta/arrow-left-hover.png", + "/meta/arrow-right-pressed.png", + "/meta/arrow-left-pressed.png" + ); +} + const galleries = document.querySelectorAll('.gallery'); galleries.forEach(gallery => {