From 2008.igem.org
(Difference between revisions)
|
|
Line 10: |
Line 10: |
| --> | | --> |
| </STYLE> | | </STYLE> |
- | <script>
| |
- | /*
| |
- | http://www.qpsh.com 网页特效 超级酷的网页导航菜单
| |
- |
| |
- | 这是把事件动作绑定到菜单上的函数
| |
- | */
| |
- | function attachXMenu(objid){
| |
- | var tds=objid.getElementsByTagName('td');
| |
- | for(var i=0;i<tds.length;i++){
| |
- | with(tds[i]){
| |
- | onmouseover=function(){
| |
- | with(this){
| |
- | filters[0].apply();
| |
- | style.background='#000FF'; //这是鼠标移上去时的背景颜色
| |
- | style.border='1px solid #ffffff'; //边框
| |
- | style.color='#ffffff'; //文字颜色
| |
- | filters[0].play();
| |
- | }
| |
- | }
| |
- | onmouseout=function(){
| |
- | with(this){
| |
- | filters[0].apply();
| |
- | style.background='#f6f6f6'; //这是鼠标离开时的背景颜色
| |
- | style.border='1px solid #ffffff'; //边框
| |
- | style.color='#333333'; //文字颜色
| |
- | filters[0].play();
| |
- | }
| |
- | }
| |
- | }
| |
- | }
| |
- | }
| |
- | </script>
| |
| | | |
| <style> | | <style> |
Revision as of 09:13, 19 October 2008
<