Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

contentscript

  • Loading branch information...
commit ddc895c3b8db07404a9c333e224b91415766caeb 1 parent 0dd89fb
Fan Yu authored
Showing with 8 additions and 1 deletion.
  1. +8 −1 contentscript.js
9 contentscript.js
View
@@ -1,2 +1,9 @@
console.log("content script loaded");
-$("img").css("border", "5px solid orange");
+//$("img").css("border", "5px solid orange");
+function addborder(event) {
+ $(this).css("border", "5px solid orange");
+}
+function removeborder(event) {
+ $(this).css("border", "");
+}
+$("img").hover(addborder, removeborder);
Please sign in to comment.
Something went wrong with that request. Please try again.