문장에 마우스를 올리면 그줄은 크게 보이고 주변줄은 약간 크게 (물고기 눈으로 보는 효과) > script

본문 바로가기
사이트 내 전체검색

script

문장에 마우스를 올리면 그줄은 크게 보이고 주변줄은 약간 크게 (물고기 눈으로 보는 효과)

페이지 정보

작성자 서방님 댓글 0건 조회 249회 작성일 07-08-08 18:09

본문

<HTML>
<HEAD>
    <TITLE>BLUE-B</TITLE>
<style type="text/css">
  span {font-size: x-small}
</style>

<SCRIPT LANGUAGE="JavaScript">
<!--
function convertPreBlocks() {}
var regular = "x-small";
function bigger(thing){
    thing.style.fontSize = "large";
    siblingElement = thing.previousSibling;
    while(siblingElement) {
        if(siblingElement.tagName=="SPAN") {
            siblingElement.style.fontSize = "medium";
            break;
        }
        siblingElement = siblingElement.previousSibling;
    }
    siblingElement = thing.nextSibling;
    while(siblingElement) {
        if(siblingElement.tagName=="SPAN") {
            siblingElement.style.fontSize = "medium";
            break;
        }
        siblingElement = siblingElement.nextSibling;
    }
}
function normal(thing){
    thing.style.fontSize = regular;
    siblingElement = thing.previousSibling;
    while(siblingElement) {
        if(siblingElement.tagName=="SPAN") {
            siblingElement.style.fontSize = regular;
            break;
        }
        siblingElement = siblingElement.previousSibling;
    }
    siblingElement = thing.nextSibling;
    while(siblingElement) {
        if(siblingElement.tagName=="SPAN") {
            siblingElement.style.fontSize = regular;
            break;
        }
        siblingElement = siblingElement.nextSibling;
    }
}
// -->
</script>

</HEAD>
<BODY>
<font color=blue><b>아래 문장에 마우스를 올려보세요...</b></font><br>
<span onmouseover="bigger(this)" onmouseout="normal(this)">Once upon a midnight dreary,</span><br/>
<span onmouseover="bigger(this)" onmouseout="normal(this)">fingers cramped and vision bleary,</span><br/>
<span onmouseover="bigger(this)" onmouseout="normal(this)">System manuals piled high and wasted paper on the floor,</span><br/>
<span onmouseover="bigger(this)" onmouseout="normal(this)">Longing for the warmth of bedsheets,</span><br/>
<span onmouseover="bigger(this)" onmouseout="normal(this)">Still I sat there, doing spreadsheets:</span><br/>
<span onmouseover="bigger(this)" onmouseout="normal(this)">Having reached the bottom line,</span><br/>
<span onmouseover="bigger(this)" onmouseout="normal(this)">I took a floppy from the drawer.</span><br/>
<span onmouseover="bigger(this)" onmouseout="normal(this)">Typing with a steady hand, I then invoked the SAVE command</span><br/>
<span onmouseover="bigger(this)" onmouseout="normal(this)">But got instead a reprimand: it read "Abort, Retry, Ignore".</span><br/>

댓글목록

등록된 댓글이 없습니다.

Total 846건 35 페이지
게시물 검색

회원로그인

접속자집계

오늘
268
어제
617
최대
1,347
전체
173,416
Latest Crypto Fear & Greed Index

그누보드5
Copyright © 서방님.kr All rights reserved.