ȸ¿ø·Î±×ÀÎ
ÇÑÁÙ¾¿ ¿Ã¶ó°¡´Â ´º½ºÆ¼°Å¿ë
ȨÆäÀÌÁö
21³â Àü
¾Æ·¡ ¼Ò½º´Â ÇØ´ç ´º½º°¡ ÇÑÁÙ¾¿ À§·Î ¿Ã¶ó°¡¼ Àá½Ã ¸ØÃß°í ´õ½Ã À§·Î ¿Ã¶ó°©´Ï´Ù.
"var pause = 1300;" ÀÌ°ª(1.3ÃÊ)¿¡ µû¶ó ¿Ã¶ó°¡¼ ¸ØÃß´Â ½Ã°£À» ¼³Á¤ ÇÒ ¼ö ÀÖ±¸¿ä,,
<HTML>
<HEAD>
</HEAD>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<center>
<table border=0 valign=bottom>
<tr>
<td><IMG SRC="blank.gif"
NAME="holdspace" ID="holdspace"
WIDTH="400" HEIGHT="20"
STYLE="visibility:hidden; position:relative;">
</td>
</tr>
</table>
<Script Language="Javascript">
<!--
// bannerconfig.js
var NS4 = (document.layers) ? true : false;
var IE4 = (document.all) ? true : false;
var interval = 20;
var increment = 1;
var pause = 1300;
var bannerColor = "ffffff";
var leftPadding = 2;
var topPadding = 1;
var bannerLeft = (NS4) ? document.images.holdspace.x :
holdspace.offsetLeft;
var bannerTop = (NS4) ? document.images.holdspace.y :
holdspace.offsetTop;
var bannerWidth = (NS4) ? document.images.holdspace.width :
holdspace.width;
var bannerHeight = (NS4) ? document.images.holdspace.height :
holdspace.height;
var ar = new Array(
'<center><tt><font color="#23238e" size=2><b>2001³â6¿ù21ÀÏ</B> : </font><a href="http://korea.internet.com/channel/content.asp?kid=13&nid=14579" target="_new"><font color="#23238e" size=2>µ¸º¸±â·Î À̹ÌÁö È®´ëÇؼ º¸±â</center>',
'<center><tt><font color="#23238e" size=2><b>2001³â6¿ù21ÀÏ</b> : </font><a href="http://korea.internet.com/channel/content.asp?kid=13&nid=14580" target="_new"><font color="#23238e" size=2>¿¹»Û ¼Õ¸ñ ½Ã°è</center>',
'<center><tt><font color="#23238e" size=2><b>2001³â6¿ù21ÀÏ</B> : </font><a href="http://korea.internet.com/channel/content.asp?kid=13&nid=14581" target="_new"><font color="#23238e" size=2>¹ÙÅÁ ȸ鿡 ´« ³»¸®´Â È¿°ú ½ºÅ©¸³Æ®</center>',
'<center><tt><font color="#23238e" size=2><b>2001³â6¿ù20ÀÏ</B> : </font><a href="http://korea.internet.com/channel/content.asp?kid=13&nid=14503" target="_new"><font color="#23238e" size=2>¸¶¿ì½º¸¦ µû¶ó ´Ù´Ï´Â ÅؽºÆ® ¹®ÀÚ¿</center>',
'<center><tt><font color="#23238e" size=2><b>2001³â6¿ù20ÀÏ</B> : </font><a href="http://korea.internet.com/channel/content.asp?kid=13&nid=14502" target="_new"><font color="#23238e" size=2>¹è°æ À̹ÌÁö °íÁ¤½ÃÅ°´Â ½ºÅ©¸³Æ®</center>',
'<center><tt><font color="#23238e" size=2><b>2001³â6¿ù20ÀÏ</B> : </font><a href="http://korea.internet.com/channel/content.asp?kid=13&nid=14501" target="_new"><font color="#23238e" size=2>ÇѱÛÀÌ µé¾î°£ ¹®ÀÚ¿ ±æÀÌ ±¸Çϱâ</center>',
'<center><tt><font color="#23238e" size=2><b>2001³â6¿ù19ÀÏ</B> : </font><a href="http://korea.internet.com/channel/content.asp?kid=13&nid=14482" target="_new"><font color="#23238e" size=2>½½¶óÀ̵ù È¿°ú¸¦ °¡¹ÌÇÑ ¸Þ´º</center>',
'<center><tt><font color="#23238e" size=2><b>2001³â6¿ù18ÀÏ</B> : </font><a href="http://korea.internet.com/channel/content.asp?kid=13&nid=14428" target="_new"><font color="#23238e" size=2>¹è°æ»ö¿¡ ÆäÀ̵ù È¿°ú¸¦ ÁÖ´Â ½ºÅ©¸³Æ®</center>',
'<center><tt><font color="#23238e" size=2><b>2001³â6¿ù14ÀÏ</B> : </font><a href="http://korea.internet.com/channel/content.asp?kid=13&nid=14354" target="_new"><font color="#23238e" size=2>°£´ÜÇÑ DHTML ´º½º ƽĿ</center>',
'<center><tt><font color="#23238e" size=2><b>2001³â6¿ù14ÀÏ</B> : </font><a href="http://korea.internet.com/channel/content.asp?kid=13&nid=14353" target="_new"><font color="#23238e" size=2>CSS È¿°ú¸¦ Á÷Á¢ Å×½ºÆ® Çϱâ</center>',
'<center><tt><font color="#23238e" size=2><b>2001³â6¿ù22ÀÏ</B> : </font><a href="http://korea.internet.com/channel/list.asp?cid=189&zid=12" target="_new"><font color="#23238e" size=2>ÀÚ¹Ù½ºÅ©¸³Æ® ¼Ò½º/¿¹Á¦ º¸±â</center>'
);
// banner.js
onload = startBanner;
function showMessage(n, show) {
var whichEl = (NS4) ? eval("message" + n) :
eval("message" + n + ".style");
whichEl.visibility = (show) ? ((NS4) ? "show" : "visible") :
((NS4) ? "hide" : "hidden");
}
function nextMessage() {
var fromInd = current;
current = (fromInd == ar.length - 1) ? 0 : fromInd + 1;
scrollBanner(fromInd, current);
}
function moveUp() {
if (NS4) {
fromEl.top -= increment;
if (toEl.top - increment <= toElTarget) {
toEl.top = toElTarget;
clearInterval(intervalID);
fromEl.visibility = "hide";
timeoutID = setTimeout("nextMessage()", pause);
} else {
toEl.top -= increment;
}
} else {
fromEl.pixelTop -= increment;
if (toEl.pixelTop - increment <= toElTarget) {
toEl.pixelTop = toElTarget;
clearInterval(intervalID);
fromEl.visibility = "hidden";
timeoutID = setTimeout("nextMessage()", pause);
} else {
toEl.pixelTop -= increment;
}
}
}
function scrollBanner(from, to) {
if (NS4) {
fromEl = eval("message" + from);
toEl = eval("message" + to);
toEl.top = fromEl.top + bannerHeight;
toElTarget = fromEl.top;
} else {
fromEl = eval("message" + from + ".style");
toEl = eval("message" + to + ".style");
toEl.pixelTop = fromEl.pixelTop + bannerHeight;
toElTarget = fromEl.pixelTop;
}
showMessage(to, true); // show the upcoming message
intervalID = setInterval("moveUp()", interval);
}
function makeIE() {
// assign the necessary code to a variable
var text = '<DIV ID="banner" STYLE="position:absolute">';
for (var i = ar.length - 1; i >= 0; i--) {
text += '<DIV ID="message' + i +
'" STYLE="position:absolute"></DIV>';
}
text += '</DIV>';
// insert the code before the end of the document
document.body.insertAdjacentHTML("BeforeEnd", text);
// define the main element's properties
with (banner.style) {
width = bannerWidth;
height = bannerHeight;
clip = "rect(0 " + bannerWidth + " " + bannerHeight + " 0)";
backgroundColor = bannerColor;
pixelLeft = bannerLeft;
pixelTop = bannerTop;
}
// define the child elements' properties
for (i = 0; i < ar.length; i++) {
with (eval("message" + i + ".style")) {
visibility = "hidden";
pixelLeft = leftPadding;
pixelTop = topPadding;
width = bannerWidth - leftPadding;
backgroundColor = bannerColor;
}
}
}
function makeNS() {
// create the main element
banner = new Layer(bannerWidth);
// define the main element's properties
with (banner) {
clip.right = bannerWidth;
clip.bottom = bannerHeight;
document.bgColor = bannerColor;
left = bannerLeft;
top = bannerTop;
visibility = "show";
}
// define the child elements' properties
for (var i = 0; i < ar.length; i++) {
// create a child element
eval("message" + i + " = " +
"new Layer(bannerWidth - leftPadding, banner)");
with(eval("message" + i)) {
visibility = "hide";
left = leftPadding;
top = topPadding;
document.bgColor = bannerColor;
}
}
}
function fillBanner() {
var whichEl;
if (NS4) {
for (var i = 0; i < ar.length; i++) {
whichEl = eval("message" + i);
whichEl.document.write(ar[i]);
whichEl.document.close();
}
} else {
for (var i = 0; i < ar.length; i++) {
whichEl = eval("message" + i);
whichEl.innerHTML = ar[i];
}
}
}
function startBanner() {
if (NS4)
makeNS()
else
makeIE();
fillBanner();
showMessage(0, true);
current = 0;
timeoutID = setTimeout("nextMessage()", pause);
}
// done hiding -->
</Script>
</body>
</html>
̵̧ : 435
̵̧
¸ñ·Ï