검색결과 리스트
유용한.../쏘오쓰들 에 해당되는 글 11건
- 2007.06.28 원하는 위치에 요일,월,일,년,시간 표시하기
- 2007.06.28 html없이 새창으로이미지띄우고 클릭하면 닫힘
- 2007.06.28 우워...표현하기 힘든...스크립트...플래쉬를 흉내낸...텍스트...-_-
2007. 6. 28. 13:05
아래의 스크립트를 두군데에 삽입하세요.
■ <Body> 태그안에 아래의 소스를 삽입하세요.
<body onLoad="goforit()">
■ <Body> 와 </Body> 사이 원하는 위치에 소스를 삽입하세요.
<script language="javascript">
/*
Live Date Script- Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions, 100's more DHTML scripts, and
Terms Of Use,visit http://www.dynamicdrive.com
*/
var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var montharray=new Array("January","February","March","April","May","June",
"July","August","September","October","November","December")
function getthedate(){
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var hours=mydate.getHours()
var minutes=mydate.getMinutes()
var seconds=mydate.getSeconds()
var dn="AM"
if (hours>=12)
dn="PM"
if (hours>12){
hours=hours-12
}
if (hours==0)
hours=12
if (minutes<=9)
minutes="0"+minutes
if (seconds<=9)
seconds="0"+seconds
//change font size here
var cdate="<small><font color='000000' face='Verdana'size=1>"+dayarray[day]+".
"+montharray[month]+" "+daym+". "+year+". "+hours+":"+minutes+":"+seconds+" "+dn
+"</font></small>"
if (document.all)
document.all.clock.innerHTML=cdate
else if (document.getElementById)
document.getElementById("clock").innerHTML=cdate
else
document.write(cdate)
}
if (!document.all&&!document.getElementById)
getthedate()
function goforit(){
if (document.all||document.getElementById)
setInterval("getthedate()",1000)
}
</script>
<span id="clock"></span>
■ <Body> 태그안에 아래의 소스를 삽입하세요.
<body onLoad="goforit()">
■ <Body> 와 </Body> 사이 원하는 위치에 소스를 삽입하세요.
<script language="javascript">
/*
Live Date Script- Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions, 100's more DHTML scripts, and
Terms Of Use,visit http://www.dynamicdrive.com
*/
var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var montharray=new Array("January","February","March","April","May","June",
"July","August","September","October","November","December")
function getthedate(){
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var hours=mydate.getHours()
var minutes=mydate.getMinutes()
var seconds=mydate.getSeconds()
var dn="AM"
if (hours>=12)
dn="PM"
if (hours>12){
hours=hours-12
}
if (hours==0)
hours=12
if (minutes<=9)
minutes="0"+minutes
if (seconds<=9)
seconds="0"+seconds
//change font size here
var cdate="<small><font color='000000' face='Verdana'size=1>"+dayarray[day]+".
"+montharray[month]+" "+daym+". "+year+". "+hours+":"+minutes+":"+seconds+" "+dn
+"</font></small>"
if (document.all)
document.all.clock.innerHTML=cdate
else if (document.getElementById)
document.getElementById("clock").innerHTML=cdate
else
document.write(cdate)
}
if (!document.all&&!document.getElementById)
getthedate()
function goforit(){
if (document.all||document.getElementById)
setInterval("getthedate()",1000)
}
</script>
<span id="clock"></span>
2007. 6. 28. 13:04
head 와 head 사이에
<script language="JavaScript">
<!--
var win1Open = null
function displayImage(picName, windowName, windowWidth, windowHeight){
return window.open(picName,windowName,"toolbar=no,scrollbars=no,resizable=no,width=" + (parseInt(windowWidth)+20) + ",height=" + (parseInt(windowHeight)+15))
}
function winClose(){
if(win1Open != null) win1Open.close()
}
function doNothing(){}
//-->
</script>
<script language="JavaScript1.1">
<!--
function displayImage(picName, windowName, windowWidth, windowHeight){
var winHandle = window.open("" ,windowName,"toolbar=no,scrollbars=no,resizable=no,width=" + windowWidth + ",height=" + windowHeight)
if(winHandle != null){
var htmlString = "<html><head><title>Picture</title></head>"
htmlString += "<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>"
htmlString += "<a href=javascript:window.close()><img src=" + picName + " border=0 alt=닫기></a>"
htmlString += "</body></html>"
winHandle.document.open()
winHandle.document.write(htmlString)
winHandle.document.close()
}
if(winHandle != null) winHandle.focus()
return winHandle
}
//-->
</script>
body 와 body 사이에
<a href="javascript:doNothing()" onClick="win1Open=displayImage('큰그림.확장자', 'popWin1', '가로사이즈', '세로사이즈')" onMouseOver="window.status='Click to display picture'; return true;" onMouseOut="window.status=''"><img src="작은그림.확장자" border="0"></a>
<script language="JavaScript">
<!--
var win1Open = null
function displayImage(picName, windowName, windowWidth, windowHeight){
return window.open(picName,windowName,"toolbar=no,scrollbars=no,resizable=no,width=" + (parseInt(windowWidth)+20) + ",height=" + (parseInt(windowHeight)+15))
}
function winClose(){
if(win1Open != null) win1Open.close()
}
function doNothing(){}
//-->
</script>
<script language="JavaScript1.1">
<!--
function displayImage(picName, windowName, windowWidth, windowHeight){
var winHandle = window.open("" ,windowName,"toolbar=no,scrollbars=no,resizable=no,width=" + windowWidth + ",height=" + windowHeight)
if(winHandle != null){
var htmlString = "<html><head><title>Picture</title></head>"
htmlString += "<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>"
htmlString += "<a href=javascript:window.close()><img src=" + picName + " border=0 alt=닫기></a>"
htmlString += "</body></html>"
winHandle.document.open()
winHandle.document.write(htmlString)
winHandle.document.close()
}
if(winHandle != null) winHandle.focus()
return winHandle
}
//-->
</script>
body 와 body 사이에
<a href="javascript:doNothing()" onClick="win1Open=displayImage('큰그림.확장자', 'popWin1', '가로사이즈', '세로사이즈')" onMouseOver="window.status='Click to display picture'; return true;" onMouseOut="window.status=''"><img src="작은그림.확장자" border="0"></a>
2007. 6. 28. 13:03
<html>
<script>
<!-- Beginning of JavaScript -
var thissize=9;//폰트 크기
var textfont="굴림"//폰트명
var textcolor= new Array()//색깔 지정
textcolor[11]="EEEEEE"
textcolor[10]="DDDDDD"
textcolor[9]="CCCCCC"
textcolor[8]="AAAAAA"
textcolor[7]="888888"
textcolor[6]="666666"
textcolor[5]="555555"
textcolor[4]="444444"
textcolor[3]="333333"
textcolor[2]="222222"
textcolor[1]="111111"
textcolor[0]="000000"
var message = new Array()//메세지 지정
message[0]="진정한 나를 알고 싶다."
message[1]="<br><br><br>다른 사람안의 나와 진정한 나 사이의 차이..."
message[2]="내가 담겨있는 또 다른 케이스"
message[3]="<br><br>그 안에 솔직한 나를 담는다."
message[4]="<br>Nude | Myself and Byself"
message[5]="SUBCASE.NET"
var i_blurstrength=30//샤샤샥 움직이는 범위
var i_message=0;
var i_textcolor=0;
var count = 0;
function blurtext() {
if(document.all) {
if (i_blurstrength >=-2) {
if (i_textcolor >=textcolor.length-1) {i_textcolor=textcolor.length-1}
blurthis.innerHTML="<span id='blurpit1' style='position:absolute;visibility:visible;width:600px; top:5px;left:5px;filter:blur(add=0,strength="+i_blurstrength+",direction=90);font-family:"+textfont+";font-size:"+thissize+"pt;color:"+textcolor[i_textcolor]+"'>"+message[i_message]+"</span>";
document.close()
i_blurstrength=i_blurstrength-2
i_textcolor++
var timer=setTimeout("blurtext()",50)//함수 호출 텀
}
else {
if (i_textcolor >=textcolor.length-1) {i_textcolor=textcolor.length-1}
blurthis.innerHTML="<span id='blurit1' style='position:absolute;visibility:visible;width:600px; top:5px;left:5px;filter:blendTrans(duration=3);font-family:"+textfont+";font-size:"+thissize+"pt;color:FFFFFF'>"+message[i_message]+"</span>";
i_message++
if (i_message>=message.length){i_message=0}
i_blurstrength=30//샤샤샥 움직이는 범위
i_textcolor=0
clearTimeout(timer)
var timer=setTimeout("blurtext()",2000)//함수 호출 텀
count++;
if (count==6) clearTimeout(timer);//몇번 도는지 지정
}
}
}
// - End of JavaScript - -->
</script>
<head>
<title>Nude | Myself and Byself</title>
<body bgcolor=0000000 onload=blurtext() scroll=no>
<div id=blurthis style="VISIBILITY: visible; POSITION: absolute; bottom:100; left:600"></div>
</body>
</html>
<script>
<!-- Beginning of JavaScript -
var thissize=9;//폰트 크기
var textfont="굴림"//폰트명
var textcolor= new Array()//색깔 지정
textcolor[11]="EEEEEE"
textcolor[10]="DDDDDD"
textcolor[9]="CCCCCC"
textcolor[8]="AAAAAA"
textcolor[7]="888888"
textcolor[6]="666666"
textcolor[5]="555555"
textcolor[4]="444444"
textcolor[3]="333333"
textcolor[2]="222222"
textcolor[1]="111111"
textcolor[0]="000000"
var message = new Array()//메세지 지정
message[0]="진정한 나를 알고 싶다."
message[1]="<br><br><br>다른 사람안의 나와 진정한 나 사이의 차이..."
message[2]="내가 담겨있는 또 다른 케이스"
message[3]="<br><br>그 안에 솔직한 나를 담는다."
message[4]="<br>Nude | Myself and Byself"
message[5]="SUBCASE.NET"
var i_blurstrength=30//샤샤샥 움직이는 범위
var i_message=0;
var i_textcolor=0;
var count = 0;
function blurtext() {
if(document.all) {
if (i_blurstrength >=-2) {
if (i_textcolor >=textcolor.length-1) {i_textcolor=textcolor.length-1}
blurthis.innerHTML="<span id='blurpit1' style='position:absolute;visibility:visible;width:600px; top:5px;left:5px;filter:blur(add=0,strength="+i_blurstrength+",direction=90);font-family:"+textfont+";font-size:"+thissize+"pt;color:"+textcolor[i_textcolor]+"'>"+message[i_message]+"</span>";
document.close()
i_blurstrength=i_blurstrength-2
i_textcolor++
var timer=setTimeout("blurtext()",50)//함수 호출 텀
}
else {
if (i_textcolor >=textcolor.length-1) {i_textcolor=textcolor.length-1}
blurthis.innerHTML="<span id='blurit1' style='position:absolute;visibility:visible;width:600px; top:5px;left:5px;filter:blendTrans(duration=3);font-family:"+textfont+";font-size:"+thissize+"pt;color:FFFFFF'>"+message[i_message]+"</span>";
i_message++
if (i_message>=message.length){i_message=0}
i_blurstrength=30//샤샤샥 움직이는 범위
i_textcolor=0
clearTimeout(timer)
var timer=setTimeout("blurtext()",2000)//함수 호출 텀
count++;
if (count==6) clearTimeout(timer);//몇번 도는지 지정
}
}
}
// - End of JavaScript - -->
</script>
<head>
<title>Nude | Myself and Byself</title>
<body bgcolor=0000000 onload=blurtext() scroll=no>
<div id=blurthis style="VISIBILITY: visible; POSITION: absolute; bottom:100; left:600"></div>
</body>
</html>