<td class="date_has_event"><span class="date">5&nbsp;</span>
   
  <img src="/images/sub03/sc_done.png" alt="일정 자세히보기" />
  <div class="events">
  <ul>
   
  <li>
  <span class="title">주간업무보고 </span>
  <span class="time">08:30~</span>&nbsp;/&nbsp;<span class="loca">신관 중회의실</span>
  <span class="desc"> </span>
  </li>
   
   
  <li>
  <span class="title">사업주 안전 관련 교육 </span>
  <span class="time">15:00~</span>&nbsp;/&nbsp;<span class="loca">본관 대회의실</span>
  <span class="desc"> </span>
  </li>
   
   
  <li>
  <span class="title">2018년 정기총회 </span>
  <span class="time">16:00~</span>&nbsp;/&nbsp;<span class="loca">신관 다목적홀</span>
  <span class="desc"> </span>
  </li>
   
   
  <li>
  <span class="title">정기총회 </span>
  <span class="time">17:00~</span>&nbsp;/&nbsp;<span class="loca"> 행정복지센터</span>
  <span class="desc"> </span>
  </li>
   
   
  </ul>
  </div>
   
   
   
   
  </td>
$(function () {
	$('.date_has_event').each(function () {
		// options
		var distance = 10;
		var time = 250;
		var hideDelay = 500;

		var hideDelayTimer = null;

		// tracker
		var beingShown = false;
		var shown = false;

		var trigger = $(this);
		var popup = $('.events ul', this).css('opacity', 0);

		// set the mouseover and mouseout on both element
		$([trigger.get(0), popup.get(0)]).mouseover(function () {
			// stops the hide event if we move from the trigger to the popup element
			if (hideDelayTimer) clearTimeout(hideDelayTimer);

			// don't trigger the animation again if we're being shown, or already visible
			if (beingShown || shown) {
				return;
			} else {
				beingShown = true;

				// reset position of popup box
				popup.css({
					bottom: 20,
					left: -76,
					display: 'block' // brings the popup back in to view
				})

				// (we're using chaining on the popup) now animate it's opacity and position
				.animate({
					bottom: '+=' + distance + 'px',
					opacity: 1
				}, time, 'swing', function() {
					// once the animation is complete, set the tracker variables
					beingShown = false;
					shown = true;
				});
			}
		}).mouseout(function () {
			// reset the timer if we get fired again - avoids double animations
			if (hideDelayTimer) clearTimeout(hideDelayTimer);

			// store the timer so that it can be cleared in the mouseover if required
			hideDelayTimer = setTimeout(function () {
				hideDelayTimer = null;
				popup.animate({
					bottom: '-=' + distance + 'px',
					opacity: 0
				}, time, 'swing', function () {
					// once the animate is complete, set the tracker variables
					shown = false;
					// hide the popup entirely after the effect (opacity alone doesn't do the job)
					popup.css('display', 'none');
				});
			}, hideDelay);
		});
	});
});

[jQuery] 해당갯수와 해당안에내용 가져오기

 

 

[jQuery] 클릭시 링크새창열기

 

[jQuery] 클릭시 태그값 바꾸기

//서울 37.5668260055 126.9786567859

//인천 37.4559252001 126.705267423

//대전 36.3505388993 127.3848348468

//대구 35.8713802647 128.6018054911

//부산 35.179889464917665 129.0756643974648

//광주 35.1600820602 126.8515729214

//울산 35.5394827878 129.3114679191

//세종 36.480068516 127.2891953381

//경기 37.2749769873 127.0089299695

//강원 37.8853257858 127.7298290104

//충북 36.635358196 127.4914573265

//충남 36.6588292533 126.6727761938

//경북 36.575733576956715 128.50576287406867

//경남 35.2377742105 128.6918968892

//전북 35.820196364 127.108976712

//전남 34.8160821479 126.4627883334

//제주도 33.4889107082 126.4982334867


$lnatX = "37.5668260055";

$lnatY = "126.9786567859";

if($sca=="서울특별시"){ $lnatX = "37.5668260055"; $lnatY = "126.9786567859";

}else if($sca=="인천광역시"){ $lnatX = "37.4559252001"; $lnatY = "126.705267423";

}else if($sca=="대전광역시"){ $lnatX = "36.3505388993"; $lnatY = "127.3848348468";

}else if($sca=="대구광역시"){ $lnatX = "35.8713802647"; $lnatY = "128.6018054911";

}else if($sca=="부산광역시"){ $lnatX = "35.179889464917665"; $lnatY = "129.0756643974648";

}else if($sca=="광주광역시"){ $lnatX = "35.1600820602"; $lnatY = "126.8515729214";

}else if($sca=="울산광역시"){ $lnatX = "35.5394827878"; $lnatY = "129.3114679191";

}else if($sca=="세종시"){ $lnatX = "36.480068516"; $lnatY = "127.2891953381";

}else if($sca=="경기도"){ $lnatX = "37.2749769873"; $lnatY = "127.0089299695";

}else if($sca=="강원도"){ $lnatX = "37.8853257858"; $lnatY = "127.7298290104";

}else if($sca=="충청북도"){ $lnatX = "36.635358196"; $lnatY = "127.4914573265";

}else if($sca=="충청남도"){ $lnatX = "36.6588292533"; $lnatY = "126.6727761938";

}else if($sca=="경상북도"){ $lnatX = "36.575733576956715"; $lnatY = "128.50576287406867";

}else if($sca=="경상남도"){ $lnatX = "35.2377742105"; $lnatY = "128.6918968892";

}else if($sca=="전라북도"){ $lnatX = "35.820196364"; $lnatY = "127.108976712";

}else if($sca=="전라남도"){ $lnatX = "34.8160821479"; $lnatY = "126.4627883334";

}else if($sca=="제주특별자치도"){$lnatX = "33.4889107082"; $lnatY = "126.4982334867";

}

if($sca){

}

http://www.rgagnon.com/javadetails/java-0321.html



Simple email

import javax.mail.*;
import javax.mail.internet.*;

import java.util.Properties;

class SimpleMail {
    public static void main(String[] args) throws Exception{
      Properties props = new Properties();
      props.setProperty("mail.transport.protocol", "smtp");
      props.setProperty("mail.host", "mymail.server.org");
      props.setProperty("mail.user", "emailuser");
      props.setProperty("mail.password", "");

      Session mailSession = Session.getDefaultInstance(props, null);
      Transport transport = mailSession.getTransport();

      MimeMessage message = new MimeMessage(mailSession);
      message.setSubject("Testing javamail plain");
      message.setContent("This is a test", "text/plain");
      message.addRecipient(Message.RecipientType.TO,
           new InternetAddress("elvis@presley.org"));

      transport.connect();
      transport.sendMessage(message,
          message.getRecipients(Message.RecipientType.TO));
      transport.close();
    }
}



HTML Email

import javax.mail.*;
import javax.mail.internet.*;

import java.util.Properties;

class SimpleHTMLMail {
    public static void main(String[] args) throws Exception{
      Properties props = new Properties();
      props.setProperty("mail.transport.protocol", "smtp");
      props.setProperty("mail.host", "mymail.server.org");
      props.setProperty("mail.user", "emailuser");
      props.setProperty("mail.password", "");

      Session mailSession = Session.getDefaultInstance(props, null);
      Transport transport = mailSession.getTransport();

      MimeMessage message = new MimeMessage(mailSession);
      message.setSubject("Testing javamail html");
      message.setContent
         ("This is a test <b>HOWTO<b>", "text/html; charset=ISO-8859-1");
      message.addRecipient(Message.RecipientType.TO,
         new InternetAddress("elvis@presley.org"));

      transport.connect();
      transport.sendMessage(message,
         message.getRecipients(Message.RecipientType.TO));
      transport.close();
    }
}


Email with attachment

import javax.mail.*;
import javax.mail.internet.*;
import javax.activation.FileDataSource;
import javax.activation.DataHandler;

import java.util.Properties;

class SimpleMailWithAttachment {
    public static void main(String[] args) throws Exception{
      boolean debug = false;
      Properties props = new Properties();
      props.setProperty("mail.transport.protocol", "smtp");
      props.setProperty("mail.host", "mymail.server.org");
      props.setProperty("mail.user", "emailuser");
      props.setProperty("mail.password", "");

      Session mailSession = Session.getDefaultInstance(props, null);
      mailSession.setDebug(debug);
      Transport transport = mailSession.getTransport();

      MimeMessage message = new MimeMessage(mailSession);
      message.setSubject("Testing javamail with attachment");

      MimeBodyPart textPart = new MimeBodyPart();
      textPart.setContent("<h1>Check attachment</h1>", "text/html");

      MimeBodyPart attachFilePart = new MimeBodyPart();
      FileDataSource fds = 
          new FileDataSource("SimpleMailWithAttachment.java");
      attachFilePart.setDataHandler(new DataHandler(fds));
      attachFilePart.setFileName(fds.getName());

      Multipart mp = new MimeMultipart();
      mp.addBodyPart(textPart);
      mp.addBodyPart(attachFilePart);

      message.setContent(mp);
      message.addRecipient(Message.RecipientType.TO,
          new InternetAddress("elvis@presley.org"));

      transport.connect();
      transport.sendMessage(message,
          message.getRecipients(Message.RecipientType.TO));
      transport.close();
    }
}


'IT > [JAVA]-Spring' 카테고리의 다른 글

전자정부 프레임워크- 메일발송  (0) 2017.12.09
(교육) 마지막날 로그,서블릿  (0) 2016.11.26
(교육) interceptor 설정 인터셉터  (0) 2016.11.20
context:component-scan  (0) 2016.11.20
[교육] maven 다운  (0) 2016.11.20




[[egovframework:발송메일_내역_조회]]




[[egovframework:rte:fdl:mail]]




'IT > [JAVA]-Spring' 카테고리의 다른 글

메일발송 - send mail  (0) 2017.12.09
(교육) 마지막날 로그,서블릿  (0) 2016.11.26
(교육) interceptor 설정 인터셉터  (0) 2016.11.20
context:component-scan  (0) 2016.11.20
[교육] maven 다운  (0) 2016.11.20

+ Recent posts