• hehe,这谚语显示的界面不错,可惜不是存储啊DB中,条数没法增多


    显示效果,点这里
    (刚才我使用HTML编辑,直接使用iFrame将外部的页面嵌入这里,保存,然后灾进行编辑的时候,竟然使得IE出现问题,试了几次都是这样,怎么搞的嘛!)
    代码:
     1<div id=SEng class="Econtent"><img src="zd.gif" align="absmiddle"> <span class=EnText></span><div class=ChText></div></div><div style="height:5px;overflow:hidden"></div>
     2<script>
     3//-------------背单词------------
     4var En=new Array()
     5var Ch=new Array()
     6var Ei=0
     7function showE(first){
     8if (first!=1) SEng.filters[0].apply();
     9SEng.innerHTML="<img src='zd.gif' align='absmiddle'> <span class=EnText>"+En[Ei]+"</span><div class=ChText>"+Ch[Ei]+"</div>"
    10if (first!=1) SEng.filters[0].play();
    11Ei++
    12if (Ei==En.length) {Ei=0}
    13}

    14
    15En[0]='A man,a horse,and a dog are never weary of each others company.'
    16Ch[0]='人、马、狗可以永远相伴不厌倦。'
    17En[1]='A well-Prepared mind hopes in adversity and fears in prosperity.'
    18Ch[1]='遇事有准备的人逢逆境不失望,处顺境不大意。'
    19En[2]='Every man is his own enemy.'
    20Ch[2]='人都有与自己为敌的时候. /败事全由已.'
    21En[3]='Great men\'s sons soldom do well.'
    22Ch[3]='伟人的儿子有出息的不多。'
    23En[4]='Happiness is a way station between too much and too little.'
    24Ch[4]='幸福是太多和太少之间的一站.'
    25En[5]='If Jack\'s in love, he\'s no judge of Jill\'s beauty.'
    26Ch[5]='要是杰克爱上了吉尔,吉尔再丑他也说俊俏.'
    27En[6]='If you have a garden and a library, you have everything you need.'
    28Ch[6]='如果你有一块园地和一个图书馆,那么你就拥有了你所需要的一切.'
    29En[7]='Knowledge is a matter of science,and no dishonesty or conceit whatsoever is permissible.What is required is definitely the reverse--honesty and modesty.'
    30Ch[7]='知识的问题是一个科学问题,来不得半点的虚伪和骄傲,决定地需要的倒是其反面--诚实和谦逊的态度.'
    31En[8]='Men at some time are masters of their fates.'
    32Ch[8]='人有时是命运的主人.'
    33En[9]='Most of the trouble in the world is caused by people wanting to be important.'
    34Ch[9]='世界上大部分的麻烦都是要想成为伟大人物的人搞出来的。'
    35En[10]='The most precious of all possessions is a wise and loyal friend.'
    36Ch[10]='最宝贵的财富是明智而忠实的朋友.'
    37En[11]='Too many cooks spoil the broth.'
    38Ch[11]='厨师太多烧坏汤。'
    39En[12]='You never know what you can do till you try.'
    40Ch[12]='不尝试就不知道你能做什么.'
    41En[13]='Better safe than sorry'
    42Ch[13]='小心不出大错。'
    43En[14]='From 4 to 4:30.'
    44Ch[14]=' 四点到四点半。'
    45En[15]='I\'ll take it'
    46Ch[15]='我要了。'
    47En[16]='He majored in Computers.'
    48Ch[16]=' 他主修计算机。'
    49En[17]='"Oh,that\'s not good."'
    50Ch[17]=' 哦,那可不好。'
    51En[18]='I\'ve got a pain in my back.'
    52Ch[18]=' 我背疼。'
    53En[19]='Please give me your advice.'
    54Ch[19]=' 请给我提些建议。'
    55showE(1);window.setInterval ("showE()",10000)
    </script><style type="text/css">
    56<!--
    57body {
    58    margin-top: 3px;
    59    margin-bottom: 0px;
    60}

    61.Econtent{
    62border:1px #999999 solid;
    63padding:4px;
    64background-color:#fafafa;
    65width:99.6%;
    66cursor:default;
    67font-family: Tahoma, Verdana, "宋体"; 
    68font-size: 12px; 
    69color:#333333;
    70filter:blendtrans(duration=.3);
    71}

    72.EnText{
    73font-family: Verdana, "宋体"; 
    74font-size: 11px; 
    75color:#0000ff;
    76}

    77.ChText{
    78padding-left:20px;
    79padding-top:4px;
    80border-top:1px #cccccc solid;
    81font-family: "宋体"; 
    82font-size: 12px; 
    83color:#006600;
    84margin-top:4px;
    85}

    86-->
    87
    </style>
  • 相关阅读:
    远程监控JVM
    性能测试的思考
    吴恩达《机器学习》课程总结(11)机器学习系统的设计
    吴恩达《机器学习》课程总结(10)应用机器学习的建议
    吴恩达《机器学习》课程总结(9)神经网络的学习
    吴恩达《机器学习》课程总结(8)神经网络表述
    吴恩达《机器学习》课程总结(7)正则化
    吴恩达《机器学习》课程总结(6)逻辑回归
    吴恩达《机器学习》课程总结(5)Octave教程
    吴恩达《机器学习》课程总结(4)多变量线性回归
  • 原文地址:https://www.cnblogs.com/lbk/p/207601.html
Copyright © 2020-2023  润新知