PageSourceSearch

https://www.theraum.co.kr/_skin/raum_251230/script.js

js theraum.co.kr collected 2026-10-08 08:11:37 UTC 2,861 bytes, 95 lines download raw bytes

1/* img hover */
2/* example 
3<img src="/_image/common/이미지.jpg" alt="" title="" onmouseover="imgOver(this)" onmouseout="imgOver(this,'out')"> 
4*/
5function imgOver(imgEl,opt) {
6	if(imgEl.getAttribute('checked')) return;
7	var src = imgEl.getAttribute('src');
8	var ftype = src.substring(src.lastIndexOf('.'), src.length);
9	if (opt == 'out') imgEl.src = imgEl.src.replace("_over"+ftype, ftype);
10	else imgEl.src = imgEl.src.replace(ftype, "_over"+ftype);
11}
12
13/* 즐겨찾기 */
14function addBookmark(){
15	var url = root_url;
16	var title = document.title;
17 	if(window.sidebar && window.sidebar.addPanel){
18		/* Mozilla Firefox Bookmark - Works With Opening In A Side Panel Only */
19		window.sidebar.addPanel(title, url, "");
20	}else if(window.opera && window.print) {
21		/* Opera Hotlist */
22		alert("이 브라우저에서는 즐겨찾기 기능을 사용할 수 없습니다.\nCtrl 키와 D 키를 동시에 눌러서 즐겨찾기에 추가할 수 있습니다.");
23		return true;
24	}else if(window.external){
25		/* IE Favorite */
26		try{
27			window.external.AddFavorite(url, title);
28		}catch(e){
29			alert("이 브라우저에서는 즐겨찾기 기능을 사용할 수 없습니다.\nCtrl 키와 D 키를 동시에 눌러서 즐겨찾기에 추가할 수 있습니다.");
30		}
31	}else{
32		/* Other - Google Chrome, Safari */
33		alert("이 브라우저에서는 즐겨찾기 기능을 사용할 수 없습니다.\nCtrl 키와 D 키를 동시에 눌러서 즐겨찾기에 추가할 수 있습니다.");
34	}
35}
36
37/* 체크박스 전체선택 */
38/* example 
39<input type="checkbox" onclick="cartCheckAll(this.checked)">
40*/
41function cartCheckAll(checked) {
42	$(':checkbox[name^="cno["], :checkbox[name^="wno["]').attrprop('checked', checked);
43}
44
45/* 토글 */
46function toggle_view(selector, obj){
47	var search = $('#'+selector+'');
48	var obj = $(obj);
49	if (search.css('display') == 'none') {
50		search.show();
51		obj.addClass('active');
52	} else {
53		search.hide();
54		obj.removeClass('active');
55	}
56}
57
58/* 탭뷰 */
59function tabover(name, no) {
60	var tabs = $('.tab_'+name+'').find('li');
61	tabs.each(function(idx) {
62		var detail = $('.tabcnt_'+name+idx);
63		var link = $(this).find('a');
64		if(no == idx) {
65			detail.show();
66			link.addClass('active');
67		} else {
68			detail.hide();
69			link.removeClass('active');
70		}
71	})
72}
73
74/* 스크롤 이동 */
75$(window).scroll(function(){
76	var y=$(this).scrollTop();
77	if( y > 150 ){
78		$('.btn_scroll').fadeIn();
79	} else {
80		$('.btn_scroll').fadeOut();
81	}
82	if ($('.gnb').hasClass('fixed')) {
83		if( y > 230 ){
84			$('.favorite .viewsub').fadeIn();
85		} else {
86			$('.favorite .viewsub').fadeOut();
87		}
88	}
89});
90function scrollup(){
91	$('html, body').animate({scrollTop:0}, 'slow');
92}
93function scrolldown(){
94	$('html, body').animate({scrollTop:$(document).height()}, 'slow');
95}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.