[bknr-cvs] hans changed trunk/
BKNR Commits
bknr at bknr.net
Sun Jul 20 06:57:12 UTC 2008
Revision: 3526
Author: hans
URL: http://bknr.net/trac/changeset/3526
Animated hey/buy box
U trunk/projects/quickhoney/website/static/javascript.js
D trunk/projects/quickhoney/website/static/tiny_mce
A trunk/projects/quickhoney/website/static/yui
U trunk/projects/quickhoney/website/templates/index.xml
_U trunk/thirdparty/
Modified: trunk/projects/quickhoney/website/static/javascript.js
===================================================================
--- trunk/projects/quickhoney/website/static/javascript.js 2008-07-19 18:56:26 UTC (rev 3525)
+++ trunk/projects/quickhoney/website/static/javascript.js 2008-07-20 06:57:11 UTC (rev 3526)
@@ -693,7 +693,7 @@
buttons[i].style.visibility = 'hidden';
buttons[i].src = new_image;
buttons[i].parentNode.href = '#' + current_directory + '/' + subdirectory_name;
- eval("button_links[i].onclick = function onclick(event) { subdirectory('" + subdirectory_name + "'); }");
+ YAHOO.util.Event.addListener(buttons[i], 'click', subdirectory_button_click, subdirectory_name);
}
}
@@ -707,6 +707,10 @@
/* subdirectory - second level category with thumbnail pages */
+function subdirectory_button_click(event, dir) {
+ subdirectory(dir);
+}
+
function subdirectory(subdirectory) {
debug('subdirectory: ', subdirectory);
@@ -1239,13 +1243,13 @@
appendChildNodes('image_action_buttons', IMG({ id: 'buy', src: recolored_image_path('buy'), width: 127, height: 22}));
}
$('image_action_buttons').onmouseover = function () {
- var e = $('image_action_buttons');
- e.style.left = '518px';
- e.style.width = '127px';
+ (new YAHOO.util.Anim('image_action_buttons', { left: { to: 518 }, width: { to: 127 } }, .3,
+ YAHOO.util.Easing.easeBoth))
+ .animate();
}
$('image_action_buttons').onmouseout = function () {
- var e = $('image_action_buttons');
- e.style.left = '584px';
- e.style.width = '60px';
+ (new YAHOO.util.Anim('image_action_buttons', { left: { to: 584 }, width: { to: 60 } }, .3,
+ YAHOO.util.Easing.easeBoth))
+ .animate();
}
}
\ No newline at end of file
Deleted: trunk/projects/quickhoney/website/static/tiny_mce
===================================================================
--- trunk/projects/quickhoney/website/static/tiny_mce 2008-07-19 18:56:26 UTC (rev 3525)
+++ trunk/projects/quickhoney/website/static/tiny_mce 2008-07-20 06:57:11 UTC (rev 3526)
@@ -1 +0,0 @@
-link ../../../../thirdparty/tinymce/jscripts/tiny_mce
\ No newline at end of file
Added: trunk/projects/quickhoney/website/static/yui
===================================================================
--- trunk/projects/quickhoney/website/static/yui (rev 0)
+++ trunk/projects/quickhoney/website/static/yui 2008-07-20 06:57:11 UTC (rev 3526)
@@ -0,0 +1 @@
+link ../../../../thirdparty/yui/build
\ No newline at end of file
Property changes on: trunk/projects/quickhoney/website/static/yui
___________________________________________________________________
Name: svn:special
+ *
Modified: trunk/projects/quickhoney/website/templates/index.xml
===================================================================
--- trunk/projects/quickhoney/website/templates/index.xml 2008-07-19 18:56:26 UTC (rev 3525)
+++ trunk/projects/quickhoney/website/templates/index.xml 2008-07-20 06:57:11 UTC (rev 3526)
@@ -9,14 +9,12 @@
<head>
<link rel="stylesheet" href="/static/styles.css" />
<link rel="alternate" type="application/rss+xml" title="RSS Feed" href="/rss/quickhoney" />
- <script src="/static/detectplugins.js" type="text/javascript"><!-- x -->
- </script>
- <script src="/static/AC_QuickTime.js" type="text/javascript"><!-- x -->
- </script>
- <script src="/MochiKit/MochiKit.js" type="text/javascript"><!-- x -->
- </script>
- <script src="/static/javascript.js" type="text/javascript"><!-- x -->
- </script>
+ <script src="/static/detectplugins.js" type="text/javascript"></script>
+ <script src="/static/AC_QuickTime.js" type="text/javascript"></script>
+ <script src="/MochiKit/MochiKit.js" type="text/javascript"></script>
+ <script src="/static/javascript.js" type="text/javascript"></script>
+ <script src="/static/yui/yahoo-dom-event/yahoo-dom-event.js" type="text/javascript"></script>
+ <script src="/static/yui/animation/animation-min.js" type="text/javascript"></script>
<title>QuickHoney</title>
</head>
More information about the Bknr-cvs
mailing list