mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-12 05:22:35 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@518 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
8f58bc503e
commit
5515c7e7c6
4 changed files with 26 additions and 23 deletions
|
|
@ -79,6 +79,7 @@ function resizeImageContents() {
|
||||||
}
|
}
|
||||||
xAddEventListener(window, "load", resizeImageContents);
|
xAddEventListener(window, "load", resizeImageContents);
|
||||||
|
|
||||||
|
// 컨텐츠에서 컨텐츠 영역보다 큰 이미지 리사이징후 팝업 클릭시 사용되는 함수
|
||||||
function resizeImagePopup(evt) {
|
function resizeImagePopup(evt) {
|
||||||
var e = new xEvent(evt);
|
var e = new xEvent(evt);
|
||||||
if(!e.target.src) return;
|
if(!e.target.src) return;
|
||||||
|
|
@ -125,23 +126,11 @@ function svc_folder_close(id) {
|
||||||
// 팝업의 내용에 맞게 크기를 늘리는 것은... 쉽게 되지는 않음.. ㅡ.ㅜ
|
// 팝업의 내용에 맞게 크기를 늘리는 것은... 쉽게 되지는 않음.. ㅡ.ㅜ
|
||||||
// 혹시.. 제대로 된 소스 있으신 분은 헬프미.. ㅠ0ㅠ
|
// 혹시.. 제대로 된 소스 있으신 분은 헬프미.. ㅠ0ㅠ
|
||||||
function setFixedPopupSize() {
|
function setFixedPopupSize() {
|
||||||
var i=0;
|
var w = xWidth("popup_content");
|
||||||
while(i<2) {
|
var h = xHeight("popup_content");
|
||||||
window.scrollTo(03000,03000);
|
var w1 = xWidth(window.document.body);
|
||||||
window.resizeBy(xScrollLeft(), xScrollTop());
|
var h1 = xHeight(window.document.body);
|
||||||
i++;
|
window.resizeBy(w-w1,h-h1);
|
||||||
}
|
|
||||||
window.scrollTo(0,0);
|
|
||||||
|
|
||||||
// IE의 경우 한번더 해줘야 한다. (이게 맞는건지.. ㅡ.ㅜ)
|
|
||||||
if(xIE4Up) {
|
|
||||||
var i=0;
|
|
||||||
while(i<2) {
|
|
||||||
var height = xHeight(xGetElementById("popup_content"));
|
|
||||||
if(xGetBodyHeight()!=height) window.resizeBy(0, height-xGetBodyHeight());
|
|
||||||
i++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// url이동 (open_window 값이 N 가 아니면 새창으로 띄움)
|
// url이동 (open_window 값이 N 가 아니면 새창으로 띄움)
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
.colorpicker {
|
||||||
|
width:138px;
|
||||||
|
height:85px;
|
||||||
|
padding:5px;
|
||||||
|
}
|
||||||
|
|
||||||
img.color_icon {
|
img.color_icon {
|
||||||
width:15px;
|
width:15px;
|
||||||
height:15px;
|
height:15px;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
<!--%import("popup.js")-->
|
<!--%import("popup.js")-->
|
||||||
<!--%import("popup.css")-->
|
<!--%import("popup.css")-->
|
||||||
<script type='text/javascript'>
|
<div class="colorpicker">
|
||||||
var blank_img_src = "{$tpl_path}/blank.gif";
|
<script type='text/javascript'>
|
||||||
printColor();
|
printColor("{$tpl_path}/blank.gif");
|
||||||
</script>
|
</script>
|
||||||
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
var color_list = new Array('000000','993300','333300','003300','003366','000080','333399','333333','800000','FF6600','808000','008000','008080','0000FF','666699','808080','FF0000','FF9900','99CC00','339966','33CCCC','3366FF','800080','969696','FF00FF','FFCC00','FFFF00','00FF00','00FFFF','00CCFF','993366','c0c0c0','FF99CC','FFCC99','FFFF99','CCFFCC','CCFFFF','99CCFF','CC99FF','FFFFFF');
|
var color_list = new Array('000000','993300','333300','003300','003366','000080','333399','333333','800000','FF6600','808000','008000','008080','0000FF','666699','808080','FF0000','FF9900','99CC00','339966','33CCCC','3366FF','800080','969696','FF00FF','FFCC00','FFFF00','00FF00','00FFFF','00CCFF','993366','c0c0c0','FF99CC','FFCC99','FFFF99','CCFFCC','CCFFFF','99CCFF','CC99FF','FFFFFF');
|
||||||
|
|
||||||
|
/* 부모창의 위지윅 에디터의 선택된 영역의 글자색을 변경 */
|
||||||
function setColor(color) {
|
function setColor(color) {
|
||||||
opener.editorFocus(opener.editorPrevSrl);
|
opener.editorFocus(opener.editorPrevSrl);
|
||||||
opener.editorSetBackColor("#"+color);
|
opener.editorSetBackColor("#"+color);
|
||||||
|
|
@ -7,10 +8,16 @@ function setColor(color) {
|
||||||
self.close();
|
self.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
function printColor() {
|
/* 색상표를 출력 */
|
||||||
|
function printColor(blank_img_src) {
|
||||||
var html = "";
|
var html = "";
|
||||||
for(var i=0;i<color_list.length;i++) {
|
for(var i=0;i<color_list.length;i++) {
|
||||||
html += "<div style=\"float:left;background-color:#"+color_list[i]+"\"><img src=\""+blank_img_src+"\" class=\"color_icon\" onmouseover=\"this.className='color_icon_over'\" onmouseout=\"this.className='color_icon'\" onclick=\"setColor('"+color_list[i]+"')\" alt=\"color\" \/><\/div>";
|
html += printColorBlock(color_list[i], blank_img_src);
|
||||||
}
|
}
|
||||||
document.write(html);
|
document.write(html);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 개별 색상 block 출력 함수 */
|
||||||
|
function printColorBlock(code, blank_img_src) {
|
||||||
|
return "<div style=\"float:left;background-color:#"+code+"\"><img src=\""+blank_img_src+"\" class=\"color_icon\" onmouseover=\"this.className='color_icon_over'\" onmouseout=\"this.className='color_icon'\" onclick=\"setColor('"+code+"')\" alt=\"color\" \/><\/div>";
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue