<html>
<head>
<title>ÅؽºÆ®·Î ±¸¼ºµÈ ÀÎÆ®·ÎÆäÀÌÁö</title>
</head>
<body>
<!-- [1´Ü°è] ¾Æ·¡ÀÇ Äڵ带 <body> ¿Í </body> »çÀÌ¿¡ ºÙ¿© ³ÖÀ¸¼¼¿ä -->
<script>
// º¸¿©ÁÙ ¸Þ¼¼ÁöµéÀ» ¼³Á¤ Çϼ¼¿ä
var message=new Array()
message[0]="¾È³çÇϼ¼¿ä? ¹Ý°©½À´Ï´Ù"
message[1]="ÇØÇÇCGI¿Í ÇÔ²² ÁÁÀº ½Ã°£ µÇ½Ã±â ¹Ù¶ø´Ï´Ù"
message[2]="Welcome to HAPPYCGI"
message[3]="Have a Good Time"
message[4]="Àá½ÃÈÄ ÇØÇÇCGI ȨÆäÀÌÁö·Î À̵¿ÇÕ´Ï´Ù"
// ƼĿÀÇ °¡·Î¼¼·Î Å©±â¸¦ ¼³Á¤Çϼ¼¿ä
var tickerwidth=400
var tickerheight=300
// ±Û²Ã
var tickerfont="Arial"
// ±ÛÀÚ Å©±â
var tickerfontsize=5
// ±ÛÀÚÀÇ »ö»óÀ» ÁöÁ¤ÇÕ´Ï´Ù
var tickerfontcolorpre="#FFFF00"
var tickerfontcolormark="#FFFFFF"
var tickerfontcolorafter="#333333"
// ¹è°æ»ö»ó
var backgroundcolor="black"
// ´Ü¾î°£ Áö¿¬½Ã°£ (1000 = 1 ÃÊ)
var pausebetweenwords=200
// ¸Þ¼¼Áö°£ Áö¿¬½Ã°£ (1000 = 1 ÃÊ)
var pausebetweenmessages=1000
// ÆäÀ̵å È¿°úÈÄ Áö¿¬½Ã°£ (1000 = 1 ÃÊ)
var pauseafterfade=1000
// ¾Ö´Ï¸ÞÀÌ¼Ç ÈÄ À̵¿ÇÒ ÆäÀÌÁö
var linkurl="http://www.happycgi.com"
var transparency=100
var transparencystep=5
var windowheight=0
var windowwidth=0
var x_pos=0
var y_pos=0
var i_message=-1
var messagesplit=""
var i_messagesplit=0
var i_mark=0
var tickercontent
var pausefade=40
var linkurlloaded=false
var oneloopfinished=false
var ns4=document.layers?1:0
var ns6=document.getElementById&&!document.all?1:0
var ie=document.all?1:0
function splitmessage() {
transparency=100
if (ie) {
i_message++
if (i_message>=message.length) {oneloopfinished=true}
if (i_message>=message.length) {i_message=0}
i_mark=0
messagesplit=message[i_message].split(" ")
for (i=0;i<messagesplit.length;i++) {
messagesplit[i]=messagesplit[i]+" "
}
messagesplit[messagesplit.length]=" "
document.all.ticker.filters.alpha.opacity=transparency
if (oneloopfinished && linkurlloaded) {
document.location.href=linkurl
}
else {
runticker()
}
}
else if (ns6 || ns4) {
i_message++
if (i_message>=message.length) {document.location.href=linkurl}
else {
i_mark=0
messagesplit=message[i_message].split(" ")
for (i=0;i<messagesplit.length;i++) {
messagesplit[i]=messagesplit[i]+" "
}
messagesplit[messagesplit.length]=" "
if (ns6) {
document.getElementById('ticker').style.MozOpacity=transparency/100
}
runticker()
}
}
else {
document.location.href=linkurl
}
}
function runticker() {
if (i_mark<messagesplit.length) {
gettickercontent()
if (ie) {
ticker.innerHTML=tickercontent
}
if (ns6) {
document.getElementById('ticker').innerHTML=tickercontent
}
if (ns4) {
document.ticker.document.write(tickercontent)
document.ticker.document.close()
}
i_mark++
var tickertimer=setTimeout("runticker()",pausebetweenwords)
}
else {
clearTimeout(tickertimer)
setTimeout("fade()",pausebetweenmessages)
}
}
function fade() {
if (transparency>0){
transparency-=transparencystep
if (ie) {
document.all.ticker.filters.alpha.opacity=transparency
}
if (ns6) {
document.getElementById('ticker').style.MozOpacity=transparency/100
}
var fadetimer=setTimeout("fade()",pausefade)
}
else {
clearTimeout(fadetimer)
setTimeout("splitmessage()",pauseafterfade)
}
}
function gettickercontent() {
tickercontent="<table width="+tickerwidth+" height="+tickerheight+" cellpadding=0 cellspacing=0 border=0><tr valign=middle><td align=center>"
tickercontent+="<font face=\""+tickerfont+"\" size="+tickerfontsize+" color=\""+tickerfontcolorpre+"\">"
for (i=0;i<i_mark;i++) {
tickercontent+=messagesplit[i]
}
tickercontent+="</font>"
tickercontent+="<font face=\""+tickerfont+"\" size="+tickerfontsize+" color=\""+tickerfontcolormark+"\">"
tickercontent+=messagesplit[i_mark]
tickercontent+="</font>"
tickercontent+="<font face=\""+tickerfont+"\" size="+tickerfontsize+" color=\""+tickerfontcolorafter+"\">"
for (i=(i_mark+1);i<messagesplit.length;i++) {
tickercontent+=messagesplit[i]
}
tickercontent+="</font>"
tickercontent+="</td></tr></table>"
}
setposition()
function setposition() {
if (ie) {
windowheight=document.body.clientHeight
windowwidth=document.body.clientWidth
}
if (ns6) {
windowheight=window.innerHeight
windowwidth=window.innerWidth
}
if (ns4) {
windowheight=window.innerHeight
windowwidth=window.innerWidth
}
x_pos=(windowwidth-tickerwidth)/2
y_pos=(windowheight-tickerheight)/2
document.bgColor=backgroundcolor
}
function jump() {
linkurlloaded=true
}
if (ie) {
document.write("<div id=\"ticker\" style=\"position:absolute;top:"+y_pos+"px;left:"+x_pos+"px;width:"+tickerwidth+"px;height:"+tickerheight+"px;overflow:hidden\;filter:alpha(opacity=100);-moz-opacity:100\">")
document.write("</div>")
document.write("<iframe onLoad=\"jump()\" src="+linkurl+" width=0 height=0></iframe>")
splitmessage()
}
else if (ns6) {
document.write("<div id=\"ticker\" style=\"position:absolute;top:"+y_pos+"px;left:"+x_pos+"px;width:"+tickerwidth+"px;height:"+tickerheight+"px;overflow:hidden\;-moz-opacity:100\">")
document.write("</div>")
splitmessage()
}
else if (ns4) {
document.write("<layer name=\"ticker\" width="+tickerwidth+" height="+tickerheight+" top="+y_pos+" left="+x_pos+">")
document.write("tickercontent")
document.write("</layer>")
document.close()
window.onload=splitmessage
}
else {
document.location.href=linkurl
}
</script>
<!----------------- ¿©±â±îÁö ----------------->
</body>
</html>
|