Blog

  • scroll pictures using JavaScript.

    找计算机的东西,还是要上外国网站.
    http://www.houseofscripts.com/scripts/javascripts/scrollpics.htm
    <blockquote><code>
    1. HEAD
    <script type=”text/javascript” language=”JavaScript”>// <![CDATA[
    //Script submitted by vasile birsan
    //http://members.home.net/v.birsan/
    //Displayed on www.a1javascripts.com/
    //slider’s width
    var swidth=102

    //slider’s height
    var sheight=82
    //slider’s speed;
    var sspeed=2

    var imagef=”

    //images: change to your own
    var leftimage=new Array();
    leftimage[0]='<img src=”images/flamingo.jpg” width=100 height=80 alt=”Flamingo” border=1>’
    leftimage[1]='<img src=”images/macaw1.jpg” width=100 height=80 border=1>’
    leftimage[2]='<img src=”images/macaw2.jpg” width=100 height=80 border=1>’
    for (mi=0;mi<leftimage.length;mi++)
    imagef=imagef+leftimage[mi]

    function start(){
    if (document.all) return
    if (document.getElementById){
    document.getElementById(“slider”).style.visibility=”show”
    initial6(document.getElementById(‘slider’))
    }
    else if(document.layers){
    document.slider1.visibility=”show”
    intialslide()
    }
    }
    function intialslide(){
    document.slider1.document.slider2.document.write(‘<nobr>’+imagef+'</nobr>’)
    document.slider1.document.slider2.document.close()
    thel=document.slider1.document.slider2.document.width
    document.slider1.document.slider2.left-=thel
    sslide()
    }
    function sslide(){
    if (document.slider1.document.slider2.left>=thel*(-1)){
    document.slider1.document.slider2.left-=sspeed
    setTimeout(“sslide()”,100)
    }
    else{
    document.slider1.document.slider2.left=swidth
    sslide()
    }
    }
    function initial6(whichdiv){
    tdiv6=eval(whichdiv)
    tdiv6.innerHTML=(‘<nobr>’+imagef+'</nobr>’)
    tdiv6.style.left=swidth
    thel=swidth*leftimage.length
    scroll6()
    }
    function scroll6(){
    if (parseInt(tdiv6.style.left)>=thel*(-1)){
    tdiv6.style.left=parseInt(tdiv6.style.left)-sspeed
    setTimeout(“scroll6()”,100)
    }
    else{
    tdiv6.style.left=swidth
    scroll6()
    }
    }
    //You might run into a position problem within the page, using either
    //NS4.x or NS6.x. To correct this use the coordinates: ‘left=value’,
    //’top=value’ within ilayer/layer tags or ‘position:relative/absolute;
    //left:value;top:value;’ within NS6’s div tags.
    //Those values can be either positive or negative!
    //Make sure you’ve got the onload=’…;’ within body tag but without
    //takeFocus(); there!
    // ]]></script>
    2. BODY</code>

    3. Place inside the body where you want it to display.
    <script type=”text/javascript” language=”JavaScript”>// <![CDATA[
    if (document.all){
    document.write(‘<marquee id=”slidere” scrollAmount=2 style=”width:102;height:82;”>’+imagef+'</marquee>’)
    slidere.onmouseover=new Function(“slidere.scrollAmount=0”)
    slidere.onmouseout=new Function(“if (document.readyState==’complete’) slidere.scrollAmount=2″)
    }
    if (document.layers){
    document.write(‘<ilayer width=102 height=82 name=”slider1″ bgcolor=”white” visibility=hide>’)
    document.write(‘<layer name=”slider2″ onMouseover=”sspeed=0;” onMouseout=”sspeed=2″>’)
    document.write(‘</layer>’)
    document.write(‘</ilayer>’)
    }
    if (document.getElementById&#038;&#038;!document.all){
    document.write(‘

    <div style=”position:absolute;width:102;height:82;clip:rect(0 102 82 0);”>’)
    document.write(‘

    <div id=”slider” style=”position:relative;width:&#038;{swidth};” onMouseover=”sspeed=0;” onMouseout=”sspeed=2″>’)
    document.write(‘</div>
    </div>

    ‘)
    }
    // ]]></script>

    &nbsp;</blockquote>

  • 尽量多说

    开阔思维

    多想话题

    或真诚

    或邪恶

    或幼稚

    或坚定

    表现想法

    隐藏想法

    爱生活,不无趣。

  • some words

    笑容与自信

    复杂劳动加倍于简单劳动

    有些话说出来关系就能进步一大截.说话的艺术也在于此.这也是为什么有人的关系进步的那么快,人家几天能做到的事你得几年.

    人家来了有点礼貌,不管喜欢还是不喜欢都不要冷落人家。

  • never do

    1.不要在言语中过多表示你的困境来显示你的脆弱

    2.不要鸡毛蒜皮,因小失大

    3.不要自我感觉良好

    4.不要强迫似的让人感觉你很强大,要真的强大人自然会感觉你很强大

    5.不要认为自己很重要,当你离开时,没人认为你很重要。

    6.不要不认真听课,家里人辛苦供你不容易。

    7.不要那么爱慕虚荣,穷酸书生还没资格。

    8.不要妄自菲薄,我可以和全国同邻人甚至全世界同邻人比智慧和胆子

    9.不要浪费和忽略哪怕是很小的机会。

    10.不要忘记以上九条, 这是最重要的…..!

  • 切忌畏难

    两三个礼拜之前和同学请教问题的时候,同学锋利的指出我的缺点: 畏难.

    昨儿和ihipop交流了一下他的学习经历,发现我的畏难是升级成一种心理障碍,的的确确是阻沮前进的一大原因.
    看东西的时候,不求甚解.想追求速度,大忌啊..
    这种惯性太严重.还总是自我感觉良好.危险性不言而喻.

    面对困难,不要设法让难题变小,要设法让你自己变强大.

    大家接触电脑的时间都差不多,进步缓慢,没有掌握持续有效的学习方法.
    通过实践,出现一些问题,解决问题,获得知识.
    这样才能不断向上走台阶.
    问题解决不了,想跳过去,到头来再遇到还是解决不了.

  • IT民工

    感觉睡觉是一门学问

    yudun的qq心情说:一个IT 民工倒下了。

    现在撑死也算不上一个IT民工。

    注意休息。

    睡眠不足很傻。

    累的时候不如先放下来,等休息好了再继续做事就好了。

    早睡早起效率更高。

    自己不是那种精力特别精力充沛的人,所以要保证有晚上7.5个小时睡眠,再加上其他睡眠0.5小时.