From 928529d04b5bc859119a30b6e2e1437413ac7584 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 26 Nov 2009 03:27:06 +0000 Subject: [PATCH] MINOR Moved jsparty/hover.js to cms/javascript/hover.js git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@93569 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- javascript/hover.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 javascript/hover.js diff --git a/javascript/hover.js b/javascript/hover.js new file mode 100755 index 00000000..6e75349e --- /dev/null +++ b/javascript/hover.js @@ -0,0 +1,12 @@ +function hover_over() { + Element.addClassName(this, 'over'); +} +function hover_out() { + Element.removeClassName(this, 'over'); +} + +hover_behaviour = { + onmouseover : hover_over, + onmouseout : hover_out +} +