그림 크기조절 스크립트

Apr 10th in Script by wowmac 

<html> <script language=’javascript’> function resize(name){ w = eval(”document.”+name+”.width”); h = eval(”document.”+name+”.height”); maxWidth = 150; maxHeight = 150; if(w > maxWidth || h > maxHeight){ if(w > h){ nw = maxWidth; nh = Math.round((h*nw)/w); }else{ nh = maxHeight; nw = Math.round((nh*w)/h); } }else{ nw = w; nh = h; } eval(”document.”+name+”.height=”+nh); eval(”document.”+name+”.width=”+nw); } </script> <body...

슬라이딩 메뉴 스크립트 [세로]

Feb 27th in Script by wowmac 

<script type=”text/javascript”> <!– function slide(Id, interval, to) { var obj = document.getElementById(Id); var H, step = 5; if (obj == null) return; if (to == undefined) { // user clicking if (obj._slideStart == true) return; if (obj._expand == true) { to = 0; obj.style.overflow = “hidden”; } else { slide.addId(Id); for(var i=0; i < slide.objects.length; i++) { if (slide.objects[i].id != Id && slide.objects[i]._expand == true) { slide(slide.objects[i].id); } } obj.style.height = “”;...

jsp 날짜 추출

Jan 30th in Script by wowmac 

<%@ page language=”java” contentType=”text/html; charset=EUC-KR”     pageEncoding=”EUC-KR”%> <%@ page import=”java.util.Date, java.text.SimpleDateFormat” %> <html> <head> <title>Insert title here</title> </head> <body>  <%   Date nowDate = new Date();   //시간과 날짜를 얻어온다.   SimpleDateFormat dateFormat = new SimpleDateFormat(”yyyy년MM월dd일”);  //날짜 형식을 지정   String formatDate = dateFormat.format(nowDate);     ...

iframe 자동조절 스크립트

Jan 15th in Script by wowmac 

——-iframe 크기 자동 조절 스크립트——- iframe 으로 불려질 문서의 크기에 따라 자동으로 크기를 설정 해 주는 스크립트 입니다 많은 분들이 필요하신 소스일것 같네요 <!doctype html public “-//W3C//DTD HTML 4.0 Transitional//EN”> <html> <head> <title> J@sko Sample Script </title> <meta name=”Generator” content=”EditPlus”> <!– [1단계] 아래의 코드를 <head> 와 </head>...