|
|
Ŭ¶ó¿ìµåű×
Javascript PHP asp CSS HTML mysql jquery image Mobile API slide °Ô½ÃÆÇ ¸Þ´º
|
|
|
ÇöÀçÁ¢¼ÓÀÚ ¸í |
|
|
|
|
|
|
|
¼¼°è½Ã°£Ç¥-DHTML |
|
|
|
|
¼Ò½ººÐ·ù |
½Ã°£,³¯Â¥ |
|
|
´Ù¿î·Îµå Ƚ¼ö |
707 ȸ |
|
|
|
°£´Ü¼³¸í |
DHTMLÀ» ÀÌ¿ëÇÑ ¼¼°è½Ã°£Ç¥ÀÔ´Ï´Ù. |
|
|
|
|
|
<script language=javaScript><br />
<br />
<!-- Beginning of JavaScript -<br />
<br />
var x,y,a,b,timer,thisbox,isbox,urlimg<br />
var posleftvorher<br />
<br />
var box<br />
var hours<br />
var shifthours<br />
var minutes<br />
var seconds<br />
var localhours<br />
var thisplace<br />
var i_strngth=1<br />
<br />
var timer<br />
<br />
function fadeinlogo() { <br />
if(document.all) {<br />
if (i_strngth <=100) {<br />
logo.innerHTML="<img style=``filter:alpha(opacity="+i_strngth+")`` src=logo279.gif border=0>";<br />
i_strngth=i_strngth+2<br />
var timer=setTimeout("fadeinlogo()",50) <br />
} <br />
else {<br />
clearTimeout(timer)<br />
}<br />
} <br />
}<br />
<br />
<br />
function showtime(place,shifttime) {<br />
thisplace=place<br />
if (thisplace==``San Francisco``) {thisplace="San Francisco<br>Los Angeles<br>San Diego"}<br />
if (thisplace==``New York``) {thisplace="New York<br>Santiago<br>Havana"}<br />
if (thisplace==``Rio de Janheiro``) {thisplace="Rio de Janheiro<br>Buenos Aires"}<br />
if (thisplace==``Greenland``) {thisplace="Greenland"}<br />
if (thisplace==``London``) {thisplace="London<br>Lisbon"}<br />
if (thisplace==``Paris``) {thisplace="Paris<br>Rom<br>Berlin"}<br />
if (thisplace==``Moscow``) {thisplace="Moscow"}<br />
if (thisplace==``Kairo``) {thisplace="Kairo"}<br />
if (thisplace==``Delhi``) {thisplace="Delhi"}<br />
if (thisplace==``Beijing``) {thisplace="Beijing<br>Shanghai<br>Perth"}<br />
if (thisplace==``Tokyo``) {thisplace="Tokyo"}<br />
if (thisplace==``Sydney``) {thisplace="Sydney<br>Melbourne"}<br />
thistime= new Date()<br />
hours=thistime.getUTCHours()<br />
hours=eval(hours)<br />
shifthours=eval(shifttime)<br />
localhours=eval(shifthours+hours)<br />
if (localhours <0) {localhours=24+localhours}<br />
if (localhours >=24) {localhours=localhours-24}<br />
<br />
minutes=thistime.getUTCMinutes()<br />
seconds=thistime.getUTCSeconds()<br />
<br />
if (thisplace==``Delhi``) {<br />
minutes=eval(minutes+30)<br />
if (minutes>=60) {<br />
minutes=eval(minutes-60)<br />
localhours=eval(localhours+1)<br />
}<br />
<br />
}<br />
<br />
if (eval(minutes) < 10) {minutes="0"+minutes}<br />
if (eval(seconds) < 10) {seconds="0"+seconds}<br />
thistime = localhours+":"+minutes+":"+seconds<br />
openbox()<br />
}<br />
<br />
if (document.layers) {<br />
var left_pos=".left=";<br />
var top_pos=".top=";<br />
var doc="document.";<br />
var stl="";<br />
}<br />
<br />
if (document.all) {<br />
var left_pos=".pixelLeft=";<br />
var top_pos=".pixelTop=";<br />
var doc="";<br />
var stl=".style";<br />
}<br />
<br />
function openbox() {<br />
isbox = thisbox <br />
if(document.layers) {<br />
box = document.popupbox<br />
box.visibility="visible"<br />
document.popupbox.document.write("<table width=120><tr><td valign=middle align=center bgcolor=0000AA><font face=Arial size=1 color=FFFFFF>"+thistime+"<br>"+thisplace+"</font></td></tr></table>")<br />
document.popupbox.document.close()<br />
document.popupbox.left=x-55<br />
document.popupbox.top=120<br />
timer =setTimeout("showtime(thisplace,shifthours)",1000)<br />
}<br />
<br />
if(document.all) {<br />
box = document.all.popupbox.style<br />
box.visibility="visible"<br />
popupbox.innerHTML="<table width=120><tr><td valign=middle align=center bgcolor=000077><font face=Arial size=1 color=FFFFFF>"+thistime+"<br>"+thisplace+"</font></td></tr></table>"<br />
eval(doc+"popupbox"+stl+left_pos+(x-55))<br />
eval(doc+"popupbox"+stl+top_pos+(120)) <br />
timer =setTimeout("showtime(thisplace,shifthours)",100)<br />
}<br />
}<br />
<br />
function closebox(){<br />
if(document.all || document.layers) {<br />
clearTimeout(timer)<br />
}<br />
}<br />
<br />
function handlerMM(e){<br />
x = (document.layers) ? e.pageX : event.clientX<br />
y = (document.layers) ? e.pageY : event.clientY<br />
}<br />
if (document.layers){<br />
document.captureEvents(Event.MOUSEMOVE);<br />
}<br />
document.onmousemove = handlerMM;<br />
<br />
// - End of JavaScript - --><br />
</script>
|
|
³×ƼÁð ÀÇ°ß ÀÌ¿ëÇϽŠÀÚ·áÀÇ Èı⸦ ÀÚÀ¯·Ó°Ô ÀÛ¼ºÇϼ¼¿ä. (»ó¾÷ÀûÀÎ ±¤°í ¹× µµ¹è¼º ±Û µîÀº »çÀüÅ뺸¾øÀÌ »èÁ¦µÉ ¼ö ÀÖ½À´Ï´Ù.) |
|