'javascript, jquery'에 해당되는 글 66건

* script

<script src="jquery-1.11.1.js"></script>
<script src="jquery-ui.js"></script>

* style

.ui-dialog > .ui-widget-header { background:blue; font-size:12px; }
.dialog { font-size:10px; }

* jquery

$(document).ready(function() {
	$("#divlocationinfo").dialog( {
		modal: true,
		title: "subject", // 제목
		width : "750px", // 넓이
		resizable: false, // 리사이즈
		closeOnEscape: false, // esc 작동여부
		hide: 'slide', // 없어질때 효과
		show: 'slide', // 나타날때 효과
	});
});

* html

<div id="dialog">
	<p>test</p>
</div>
http://api.jqueryui.com/dialog/
블로그 이미지

디츠

“말은 쉽지, 코드를 보여줘.” “Talk is cheap. Show me the code.” – 리누스 토르발스(Linus Torvalds)

,

* main.html

<script>
	window.open('popup.html', '_blank', 'width=100, height=100');
</script>

* popup.html 

$(document).ready(function () {
	window.moveTo(0, 0);
    
	var w = $(document).width();
	var h = $(document).height();
	window.resizeTo(w, h);
 
	var mw = window.outerWidth - window.innerWidth;
	var mh = window.outerHeight - window.innerHeight;
	window.resizeBy(mw, mh);
 
	if (isIEVer() < 9) {            
		mw = $(document).outerWidth() - $(window).width();
		mh = $(document).outerHeight() - $(window).height();               
		window.resizeBy(mw, mh);
	}
});

'javascript, jquery' 카테고리의 다른 글

$.cookie / $.removeCookie - 쿠키 제어하기  (0) 2014.10.11
팝업 레이어 설정하기  (0) 2014.10.11
이미지 변경하기  (0) 2014.10.10
ajax - ajaxStart, ajaxStop  (0) 2014.10.08
jquery - ajax  (0) 2014.10.07
블로그 이미지

디츠

“말은 쉽지, 코드를 보여줘.” “Talk is cheap. Show me the code.” – 리누스 토르발스(Linus Torvalds)

,
<script type="text/javascript">
$(document).ready(function() {
	$(".subPic").mouseover(function() {
		var img = $(this).attr("src");
		$("#mainPic").attr("src", img); // 이미지 변경
		$("#mainPic").attr("width", 650); // 넓이
		$("#mainPic").attr("height", 370); // 높이
	});
});
</script>

'javascript, jquery' 카테고리의 다른 글

팝업 레이어 설정하기  (0) 2014.10.11
팝업창 자동 리사이즈(크로스 브라우징)  (0) 2014.10.11
ajax - ajaxStart, ajaxStop  (0) 2014.10.08
jquery - ajax  (0) 2014.10.07
텍스트 롤링(rolling)  (0) 2014.10.03
블로그 이미지

디츠

“말은 쉽지, 코드를 보여줘.” “Talk is cheap. Show me the code.” – 리누스 토르발스(Linus Torvalds)

,
$(document).ajaxStart(
	function() {
		$("#process").html("저장중입니다.");
	}).ajaxStop(function() {
		$("#process").html("저장 완료되었습니다.");
	}
);

'javascript, jquery' 카테고리의 다른 글

팝업창 자동 리사이즈(크로스 브라우징)  (0) 2014.10.11
이미지 변경하기  (0) 2014.10.10
jquery - ajax  (0) 2014.10.07
텍스트 롤링(rolling)  (0) 2014.10.03
jquery plugin site  (0) 2014.10.03
블로그 이미지

디츠

“말은 쉽지, 코드를 보여줘.” “Talk is cheap. Show me the code.” – 리누스 토르발스(Linus Torvalds)

,

jquery - ajax

javascript, jquery 2014. 10. 7. 00:29
$.ajax({
	type: "POST" / "GET",
	url: "test.php",
	dataType: "html" / "json" / "xml" / "script",
	data: { name:value }
	timeout: 30000,
	cache: false / true,
	success: function(result) {
		$("#result").html(result);
	}
});

'javascript, jquery' 카테고리의 다른 글

이미지 변경하기  (0) 2014.10.10
ajax - ajaxStart, ajaxStop  (0) 2014.10.08
텍스트 롤링(rolling)  (0) 2014.10.03
jquery plugin site  (0) 2014.10.03
스크롤 이동 - scrollTo  (0) 2014.10.03
블로그 이미지

디츠

“말은 쉽지, 코드를 보여줘.” “Talk is cheap. Show me the code.” – 리누스 토르발스(Linus Torvalds)

,

* style

<style>
.ticker {
	height: 30px;
	overflow: hidden;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ticker li {
	height: 30px;
	padding: 5px;
	margin: 0px 5px;
}
</style>

* script

<script>
function tick() {
	$('#ticker li:first').fadeOut(function() {
		$(this).appendTo($('#ticker_01')).fadeIn(100); // li 첫번째 요소를 fadeOut 처리뒤에 li 요소 마지막으로 붙이고 fadeIn
	});
}
setInterval(function(){ tick () }, 5000);
</script>

* html

<div>
	<ul id="ticker" class="ticker">
		<li><a href="#">111</li>
		<li><a href="#">222</li>
		<li><a href="#">333</li>
		<li><a href="#">444</li>
	</ul>
</div>

'javascript, jquery' 카테고리의 다른 글

ajax - ajaxStart, ajaxStop  (0) 2014.10.08
jquery - ajax  (0) 2014.10.07
jquery plugin site  (0) 2014.10.03
스크롤 이동 - scrollTo  (0) 2014.10.03
ui > rgb slider  (0) 2014.10.03
블로그 이미지

디츠

“말은 쉽지, 코드를 보여줘.” “Talk is cheap. Show me the code.” – 리누스 토르발스(Linus Torvalds)

,