Permalink
Browse files

contentscript

  • Loading branch information...
1 parent 0dd89fb commit ddc895c3b8db07404a9c333e224b91415766caeb Fan Yu committed Aug 8, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 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);

0 comments on commit ddc895c

Please sign in to comment.