mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@853 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
af9b884e4d
commit
3931c5fcf3
3 changed files with 29 additions and 29 deletions
|
|
@ -88,6 +88,18 @@ h6 {
|
|||
visibility:hidden;
|
||||
}
|
||||
|
||||
#fororiginalimageareabg {
|
||||
z-index:1001;
|
||||
background-color:#FFFFFF;
|
||||
width:100%;
|
||||
height:100%;
|
||||
top:0px;
|
||||
left:0px;
|
||||
position:relative;
|
||||
padding:10px;
|
||||
border:1px solid #000000;
|
||||
}
|
||||
|
||||
#fororiginalimagearea {
|
||||
visibility:hidden;
|
||||
padding:0px;
|
||||
|
|
@ -106,20 +118,10 @@ h6 {
|
|||
z-index:1002;
|
||||
}
|
||||
|
||||
#fororiginalimageareabg {
|
||||
z-index:1001;
|
||||
background-color:#000000;
|
||||
width:100%;
|
||||
height:100%;
|
||||
top:0px;
|
||||
left:0px;
|
||||
position:relative;
|
||||
}
|
||||
|
||||
#closeOriginalImageBtn {
|
||||
position:absolute;
|
||||
right:10px;
|
||||
top:10px;
|
||||
right:5px;
|
||||
top:5px;
|
||||
cursor:pointer;
|
||||
width:60px;
|
||||
height:20px;
|
||||
|
|
|
|||
|
|
@ -248,39 +248,34 @@ function showOriginalImage(evt) {
|
|||
var orig_image = xGetElementById("fororiginalimage");
|
||||
var tmp_image = new Image();
|
||||
tmp_image.src = src;
|
||||
var image_width = tmp_image.width;
|
||||
var image_height = tmp_image.height;
|
||||
|
||||
orig_image.style.position = "absolute";
|
||||
orig_image.style.margin = "0px 0px 0px 0px";
|
||||
orig_image.style.cursor = "pointer";
|
||||
orig_image.style.cursor = "move";
|
||||
orig_image.src = src;
|
||||
orig_image.style.opacity = 1;
|
||||
orig_image.style.filter = 'alpha(opacity=100)';
|
||||
|
||||
var areabg = xGetElementById("fororiginalimageareabg");
|
||||
areabg.style.opacity = 0.90;
|
||||
areabg.style.filter = 'alpha(opacity=90)';
|
||||
areabg.style.visibility = "visible";
|
||||
xWidth(areabg, image_width+22);
|
||||
xHeight(areabg, image_height+22);
|
||||
|
||||
var area = xGetElementById("fororiginalimagearea");
|
||||
|
||||
xLeft(area, xScrollLeft());
|
||||
xTop(area, xScrollTop());
|
||||
xWidth(area, xWidth(document));
|
||||
xHeight(area, xHeight(document));
|
||||
area.style.visibility = "visible";
|
||||
|
||||
var area_width = xWidth(area);
|
||||
var area_height = xHeight(area);
|
||||
var image_width = tmp_image.width;
|
||||
var image_height = tmp_image.height;
|
||||
|
||||
var x = parseInt((area_width-image_width)/2,10);
|
||||
var y = parseInt((area_height-image_height)/2,10);
|
||||
if(x<0) x = 0;
|
||||
if(y<0) y = 0;
|
||||
|
||||
xLeft(orig_image, x);
|
||||
xTop(orig_image, y);
|
||||
xLeft(areabg, x);
|
||||
xTop(areabg, y);
|
||||
|
||||
var sel_list = xGetElementsByTagName("select");
|
||||
for (var i = 0; i < sel_list.length; ++i) sel_list[i].style.visibility = "hidden";
|
||||
|
|
@ -332,8 +327,9 @@ function origImageDrag(obj, px, py) {
|
|||
var x = px - obj.startX;
|
||||
var y = py - obj.startY;
|
||||
|
||||
xLeft(obj, xLeft(obj)+x);
|
||||
xTop(obj, xTop(obj)+y);
|
||||
var areabg = xGetElementById("fororiginalimageareabg");
|
||||
xLeft(areabg, xLeft(areabg)+x);
|
||||
xTop(areabg, xTop(areabg)+y);
|
||||
|
||||
obj.startX = px;
|
||||
obj.startY = py;
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
<html lang="{Context::getLangType()}" xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="imagetoolbar" content="no" />
|
||||
<title>{Context::getBrowserTitle()}</title>
|
||||
<script type="text/javascript" src="./common/js/x.js"></script>
|
||||
<script type="text/javascript" src="./common/js/common.js"></script>
|
||||
|
|
@ -25,9 +26,10 @@
|
|||
{Context::getHtmlFooter()}
|
||||
<div id="waitingforserverresponse">{$lang->msg_call_server}</div>
|
||||
<div id="fororiginalimagearea">
|
||||
<img src="./images/blank.gif" alt="original image" border="0" id="fororiginalimage" />
|
||||
<img src="./images/original_image_box_close.gif" alt="close original image" border="0" onclick="closeOriginalImage()" id="closeOriginalImageBtn"/>
|
||||
<div id="fororiginalimageareabg"></div>
|
||||
<div id="fororiginalimageareabg">
|
||||
<img src="./images/blank.gif" alt="original image" border="0" id="fororiginalimage" />
|
||||
<img src="./images/original_image_box_close.gif" alt="close original image" border="0" onclick="closeOriginalImage()" id="closeOriginalImageBtn"/>
|
||||
</div>
|
||||
</div>
|
||||
<div id="membermenuarea"></div>
|
||||
</body>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue