편지지 모음

태그 공부 2

햇살 한 줌 2009. 12. 18. 23:11
2. 글자 움직이는 속도 명령어
그럼 실제로 해볼요?
연습장을 불러서 소스보기를하세요.
소스가 나왔읍니까?
<head>
<title>HTML연습장 </title>
</head>
<body>
야호! 드디어 나의 연습장이 완성되었다^^
<br>
<marquee> 움직일까?</marquee> 
<br> 
<marquee direction="right">오른쪽으로 움직여라</marquee>
<br> 
<marquee direction="up">위쪽으로 움직여라</marquee>
<br> 
<marquee direction="down">밑으로 떨어진다</marquee>
<br> 
<marquee behavior="slide"> 왼쪽으로 오다 멈추어라 </marquee> <p> 
</body>
</html>
이렇게 나와 있을겁니다
이젠 이모든걸 다지워 버리세요
걱정하지 마시고 다지워요
그리고 아래와같이 적어봅니다
<br>
<marquee scrollamount="1"> 천천히 움직여라</marquee> 
<br>
<marquee scrollamount="2"> 조금더빠르게 움직여라</marquee>
<br>
<marquee scrollamount="3"> 더욱 빨리</marquee>  
<br>
<marquee scrollamount="4"> 더빨리 움직여볼래?</marquee>
<br>
<marquee scrollamount="5"> 넘느려 더빨리</marquee>
<br>
<marquee scrollamount="6"> 음..빠르군^^</marquee> 
<marquee scrollamount="20"> 우와 너무 빨라</marquee>
<br>
<marquee direction="right" scrollamount="1"> 
넌 오른쪽으로 천천히 움직여라</marquee> 
이제 파일에서 저장 하고 sample.html에서 새로고침 하여보세요
 
******************
글자에 바탕 색 넣기 
marquee 다음에 direction은 움직임의 방향 명령이고
               scrollamount  속도 명령은 아시겠죠?

오늘은 글자에 바탕색을 넣어보죠
바탕색 명령은 bgcolor 입니다
bgcolor="넣고싶은 색 코드"
물론 marquee 명령내에 넣어야죠
 
실제로 해볼까요.
연습장에 아래와같이 해보세요
<marquee bgcolor="yellow">노란색 바탕</marquee>
이제 파일에서 저장 하고 sample.html에서 새로고침하여 보세요
이렇게 나오나요?


노란색바탕

그럼 지금까지배운 모든걸 적용해보겠어요
예제
<marquee direction="up" scrollamount="1" bgcolor="yellow"> 
홀로서기 1 <br><br>
기다림은<br>
만남을 목적으로 하지 않아도<br>
좋다.<br>
가슴이 아프면<br>
아픈채로,<br>
바람이 불면<br>
고개를 높이 쳐들면서, 날리는<br>
아득한 미소.<br></marquee>