编辑模版.html 6.34 KB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="http://static.yohobuy.com/admin/css/style.css" media="screen" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://static.yohobuy.com/admin/js/jquery.min.js"></script>
<link type="text/css" href="http://static.yohobuy.com/admin/js/jqueryui/themes/ui-lightness/jquery-ui-1.8.7.custom.css" rel="stylesheet" />
<script type="text/javascript" src="http://static.yohobuy.com/admin/js/jqueryui/ui/jquery-ui-1.8.7.custom.js"></script>
<title>YOHO有货后台管理Right</title>
</head>
<body>

<script type="text/javascript">

$(document).ready(function() {
    editPopupCreate();
	editPopupCreate2();
	editPopupCreate3();

});

function editPopupCreate() {
    popID = "#editpop1";	
	editID =".edit1";	
    $(editID).hover(function(){
        thisBox = this;
		pos = $(thisBox).offset();		
        $(popID).css({
            top : pos.top + "px",
            left : pos.left + "px"
        });
        $(popID).show();
		$(popID).hover(function() {
                g()
            }, function() {
                g("over")
            })					
    }, function() {
            g("over")
    });
	
	
	
function g(a) {
        if (a) {
            $(popID).hide()
        }
		else{
			$(popID).show()
			}
}
	
}

function editPopupCreate2() {
    popID2 = "#editpop2";	
	editID2 =".edit2";	
    $(editID2).hover(function(){
        thisBox = this;
		pos = $(thisBox).offset();		
        $(popID2).css({
            top : pos.top + "px",
            left : pos.left + "px"
        });
        $(popID2).show();
		$(popID2).hover(function() {
                g()
            }, function() {
                g("over")
            })					
    }, function() {
            g("over")
    });
	
	
	
function g(a) {
        if (a) {
            $(popID2).hide()
        }
		else{
			$(popID2).show()
			}
}
	
}


function editPopupCreate3() {
    popID3 = "#editpop3";	
	editID3 =".edit3";	
    $(editID3).hover(function(){
        thisBox = this;
		pos = $(thisBox).offset();		
        $(popID3).css({
            top : pos.top + "px",
            left : pos.left + "px"
        });
        $(popID3).show();
		$(popID3).hover(function() {
                g()
            }, function() {
                g("over")
            })					
    }, function() {
            g("over")
    });
	
	
	
function g(a) {
        if (a) {
            $(popID3).hide()
        }
		else{
			$(popID3).show()
			}
}
	
}

</script>
<div id="editpop1" class="editpop"> <span title="编辑" class="a_i" onclick="opendialog(1);"></span> </div>
<div id="editpop2" class="editpop"> <span title="编辑" class="a_i" onclick="opendialog(2);"></span> </div>
<div id="editpop3" class="editpop"> <span title="编辑" class="a_i" onclick="opendialog(3);"></span> </div>

<div class="mainbox">
  <div class="daohang">当前位置:<a href="#">编辑模版</a></div>
  <table width="500" border="0" class="table1" align="center" style="margin:0 auto;">
    <tr>
      <td  style="text-align:center;"><cite class="edit1"> <a href="#"> <img src="http://static.yohobuy.com/images/p_60_60_1.jpg" /> </a> </cite></td>
      <td><div><cite class="edit2"> <a href="#"> 文字标题文字标题文字标题 </a>  </cite></div>
        <div><cite class="edit2"> <a href="#">文字标文字标题文字标题文字标文字标题文字标题题</a> </cite></div>
        <div><cite class="edit2"> <a href="#">文字标题</a> </cite></div></td>
    </tr>
    <tr>
      <td colspan="2"><cite class="edit3"> 文字区域文字区域文字区域文字区域文字区域文字区域文字区域文字区域文字区域文字区域文字区域文字区域字区域文字区域文字区域字区域字区域文字区域文字区域文字区域文字区域文字区域文字区域文字区域文字区域文字区域文字区域文字区域文字区域文字区域文字区域文字区域文字区域文字区域文字区域文字区域文字区域文字区域文字区域文字区域 </cite></td>
    </tr>
  </table>
</div>
<script type="text/javascript">
			$(function(){
	
				$('#dialog1').dialog({
					autoOpen: false,
					width:480,
                    height:200,
					modal: true,
					resizable: false
				});
				
				$('#dialog2').dialog({
					autoOpen: false,
					width:400,
                    height:200,
					modal: true,
					resizable: false
				});
				
				$('#dialog3').dialog({
					autoOpen: false,
					width:400,
                    height:250,
					modal: true,
					resizable: false
				});
		
		
		
			});
			
				function opendialog(flag){
					var dialogid="#dialog"+flag;
					$(dialogid).dialog('open');
					return false;
				}
		
				
</script>
<div id="dialog1" title="修改图片" style="display:none;">
  <table class="tableout" cellspacing="5" align="center">
    <tr>
      <td>上传图片:</td>
      <td><input type="text" name="keyword" id="keyword" style="width:200px;" /></td>
      <td><button class="but2">浏览</button>
        <button class="but2">上传</button></td>
    </tr>
    <tr>
      <td>图片描述:</td>
      <td><input type="text" name="keyword" id="keyword" style="width:200px;" /></td>
      <td>&nbsp;</td>
    </tr>
    <tfoot>
      <tr>
        <td>&nbsp;</td>
        <td style="padding-top:20px;"><button class="but1">提交</button></td>
        <td></td>
      </tr>
    </tfoot>
  </table>
</div>
<div id="dialog2" title="修改文字" style="display:none;">
  <table class="tableout" cellspacing="5" align="center">
    <tr>
      <td><input type="text" name="keyword" id="keyword" style="width:300px;" value="已有的文字" /></td>
    </tr>
    <tr>
      <td style="padding-top:20px;"><button class="but1">提交</button></td>
    </tr>
  </table>
</div>
<div id="dialog3" title="修改文章" style="display:none;">
  <table class="tableout" cellspacing="5" align="center">
    <tr>
      <td><textarea name="" cols="" rows="" style="width:350px;height:100px;">文章区域文章区域文章区域文章区域文章区域文章区域文章区域文章区域文章区域文章区域文章区域文章区域文章区域文章区域</textarea></td>
    </tr>
    <tr>
      <td style="padding-top:20px;"><button class="but1">提交</button></td>
    </tr>
  </table>
</div>
</body>
</html>