⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.html

📁 JavaScript+剪切图片并把剪切结果传到服务器端生成新的图片的简单的
💻 HTML
字号:
<!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" lang="UTF-8">
<head>
<title>JavaScript Image Cut Demo</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Language" content="zh-cn" />
<meta name="keywords" content="JavaScript Image Cut Demo" />
<meta name="author" content="Phzzy (PhzzyZhou [At] gmail [dot] com)" />
<script type="text/javascript" src="prototype.js"></script>
<script type="text/javascript" src="drag.js"></script>
<script type="text/javascript" src="cut_image.js"></script>
<style type="text/css">
*{ margin:0; padding:0;}
h1{ margin:0 0 10px;}
h3{ margin:0 0 10px;}
#wrapper{ margin:10px; padding:0;}
#title{ border-bottom:1px solid #bbb; font-size:12px; padding:0 0 10px; margin-bottom:10px;}
#title h1{ font-size:16px;}
#title #intro{}
#cut_div{ height:100px; width:100px; border:1px dashed #eee; background:#000; filter:alpha(opacity=60); opacity: 0.6;}
#preview_div{ height:100px; width:100px; border:1px solid #000; background:url('test.jpg');}
</style>
</head>

<body>
<div id="wrapper">
<div id="title">
<h1>JavaScript Image Cut Demo</h1>
<div id="intro">
<strong>Author:</strong> <a href="http://www.phzzy.org" title="Phzzy.ORG">Phzzy</a><br />
<strong>Last Modify:</strong> 2007-03-08 00:12<br />
杩欐槸涓

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -