메뉴 건너뛰기

전국분동대여

일반 자료실

Fade Text Effect -- 문장이 차례로 나타났다 사라지는 스크립트

 

<!--1. 아래 스크립트를 HEAD 부분에 복사해 넣으세요. 없으면 그냥 두세요-->
<script language="JavaScript1.2">
ie=document.all?1:0
n=document.layers?1:0
betweendelay=2000 //지연시간 mili second
var loop=1
FontFace='arial,helvetiva' //글꼴
FontSize=12 //글꼴크기
fadeback=1 // 0일 때는 fode on후 바로 off 1일 때는 fade off
colors=new Array()
colors[0]='#FFFFFF'          // 페이지의 배경색에 따라 적당히 조정하세요
colors[1]='#EEEEEE'
colors[2]='#CCCCCC'
colors[3]='#999999'
colors[4]='#666666'
colors[5]='#333333'
colors[6]='#000000'
news=new Array()
news[0]=new Array()
news[0]["text"]="울밑에선 봉선화야"
news[0]["link"]="http://www.gachimoa.com"
news[1]=new Array()
news[1]["text"]="네 모양이 처량하다"
news[1]["link"]="http://www.gachimoa.com"
news[2]=new Array()
news[2]["text"]="길고긴 날 여름철에"
news[2]["link"]="http://www.gachimoa.com"
news[3]=new Array()
news[3]["text"]="아름답게 피었다가"
news[3]["link"]="http://www.gachimoa.com"
fadeInit=new Function("oNews=new makeObj('divNews','divCont'); fadeNews(0)")
function makeObj(obj,nest){
    nest=(!nest) ? '':'document.'+nest+'.'
    this.css=(n) ? eval(nest+'document.'+obj):eval(obj+'.style')
    this.writeref=(n) ? eval(nest+'document.'+obj+'.document'):eval(obj);  
this.fadeIt=b_fadeIt
    this.obj = obj + "Object";  eval(this.obj + "=this")
}
function b_fadeIt(text,link,font,size,speed,fn,num,c0,c1,c2,c3,c4,c5,c6){
if(num<arguments.length && arguments[num]!=0){
  writetext='<a href='+link+" style="text-decoration:none; font-size:'+size+'px">'
  +'<font face="'+font+'" color="'+arguments[num]+'">'+text+'</font></a>'
  if(n){this.writeref.write(writetext); this.writeref.close()}
  if(ie) this.writeref.innerHTML=writetext  
  num++
  setTimeout(this.obj+'.fadeIt("'+text+'","'+link+'","'+font+'",'+size+','+speed+',"'
  +fn+'",'+num+',"'+c0+'","'+c1+'","'+c2+'","'+c3+'","'+c4+'","'+c5+'","'+c6+'")',speed)
}else setTimeout('eval('+fn+')',betweendelay)
}
function fadeNews(num){
if(num<news.length){
  fn=fadeback?'fadeBack('+num+')':'fadeNews('+(num+1)+')';
  oNews.fadeIt(news[num]["text"],news[num]["link"],FontFace,FontSize,100,fn,7,
  colors[0],colors[1],colors[2],colors[3],colors[4],colors[5],colors[6])
}else if(loop)fadeNews(0)
}
function fadeBack(num){
if(num>=0){
  oNews.fadeIt(news[num]["text"],news[num]["link"],FontFace,FontSize,100,'fadeNews('+(num+1)
  +')',7,colors[6],colors[5],colors[4],colors[3],colors[2],colors[1],colors[0])
}
}
onload=fadeInit;
</script>

</HEAD>
<!--2. BODY 태그내에 onload="" 혹은 onunload 부분이 있으면 복사해 넣으세요-->
 
<BODY BGCOLOR="#FFFFFF">
<!--3. BODY 부분에 아래의 스크립트를 복사해 넣으세요-->
<p><div id="divNews" align=center style="position:absolute; left:100px; top:100px; width:350px; height:200px; z-index:1; border-width:1px; border-style:none;">
<script language="JavaScript">
   if(document.all || document.layers) document.write("dummy text, dummy"
     +"text, you can place you fist news or a welcome msg or something here."
     +"If you place these layers inside a table or something you can also"
     +"use this as the msg that browsers that doesn't suport dhtml will see.")
</script>
<!--위 스크립트는 레이어 지원하지 않는 브라우저인 경우 나타낼 문자열 입니다-->
</div> </p>

번호 제목 글쓴이
3421 심장 건강에 좋은 습관 8가지 [1] 뉴퐁
3420 잠잘 때 왼쪽으로 자면 생기는 신체 변화 7가지 [2] 뉴퐁
3419 스트레스를 줄이는 놀라운 방법 6가지 [2] 싹쓰리
3418 여성이 팬티에 대해 알아야 할 7가지 [3] 싹쓰리
3417 끓였던 물을 또 끓이면 안 되는 이유 [1] 싹쓰리
3416 "치주염 환자, 코로나 감염 땐 사이토카인 폭풍 가능성 높아" [1] 쌍둥이맘
3415 스마트스토어 상위 노출 꿀팁. 경쟁률 낮은 세부키워드 뽑는 방법 [2] 나혼자번다
3414 열감지 안면인식 출입관리솔루션 400만원짜리를 40만원에(정부지원사업) [1] file 나혼자번다
3413 전자렌지요리 만능 레시피 대공개!! [3] 나혼자번다
3412 식초로 집안을 반짝반짝하게!! 식초 청소법 [4] 쌍둥이맘
3411 마시고 남은 김빠진 맥주 활용법 [2] 쌍둥이맘
3410 계란을 먹은 후 절대 바로 먹으면 안되는 것들 쌍둥이맘
3409 아주 유용한 커피상식 쌍둥이맘
3408 간 건강과 지방간 완화에 아주 효과적인 채소는? [2] 싹쓰리
3407 골다공증 예방과 뼈에 아주 좋은 음식 8가지 싹쓰리
3406 체했을 때, 감기 걸렸을 때, 관절염 통증에는 이것이 최고!! 싹쓰리
3405 장을 편안하게 하면서 소화를 돕는 식품 5가지 [1] 싹쓰리
3404 초보운전자가 반드시 알아야 하는 고속도로 운전매너 5 [1] 싹쓰리
3403 머리카락이나 두피를 상하게 하는 사소한 습관 5 라이믹스
3402 어둡고 칙칙한 피부를 환하게 해주는 필수적인 습관 5 라이믹스
위로