From 08cb1264c8b01d0e95eb9df23bdb277b786b1b56 Mon Sep 17 00:00:00 2001 From: Robert Jeutter <48153869+wieerwill@users.noreply.github.com> Date: Mon, 18 Mar 2019 20:11:10 +0100 Subject: [PATCH] Create index.js --- index.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 index.js diff --git a/index.js b/index.js new file mode 100644 index 0000000..2f9431f --- /dev/null +++ b/index.js @@ -0,0 +1,26 @@ +$("#pro").hover( + function(){ + $("#pro1").css("display", "none"); + $("#pro2").css("display", "block"); + }, function(){ + $("#pro1").css("display", "block"); + $("#pro2").css("display", "none"); +}); + +$("#full").hover( + function(){ + $("#full1").css("display", "none"); + $("#full2").css("display", "block"); + }, function(){ + $("#full1").css("display", "block"); + $("#full2").css("display", "none"); +}); + +$("#cad").hover( + function(){ + $("#cad1").css("display", "none"); + $("#cad2").css("display", "block"); + }, function(){ + $("#cad1").css("display", "block"); + $("#cad2").css("display", "none"); +});