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

📄 dragdrop5_test.html

📁 这是一款js组建
💻 HTML
字号:
<html><head><title>script.aculo.us Drag and drop functional test file</title><script src="../../lib/prototype.js" type="text/javascript"></script><script src="../../src/scriptaculous.js" type="text/javascript"></script><script src="../../src/unittest.js" type="text/javascript"></script></head><style>  div.hoverclass123 {    border:1px solid red;  }</style><body><h1>script.aculo.us Drag and drop functional test file</h1><h2>w/o hoverclass</h2><div id="cart" class="cart" style="text-align:center;height:50px;padding:10px;background-color:#fba">### DROP HERE ###</div><script type="text/javascript">Droppables.add('cart', {onDrop:function(element,dropon){alert('w/o hoverclass, should be \'product_id\':' + encodeURIComponent(element.id) + ', dropon should be \'cart\':' + dropon.id)}})</script><br/><img alt="Product2" id="product_id" src="icon.png" /> &lt;-- drag this!<script type="text/javascript">new Draggable('product_id', {revert:true})</script><h2>w/ hoverclass</h2><div id="carth" class="cart" style="text-align:center;height:50px;padding:10px;background-color:#fba">### DROP HERE ###</div><script type="text/javascript">Droppables.add('carth', {hoverclass:'hoverclass123',onDrop:function(element, dropon, event){alert('w/ hoverclass: should be \'product_id\':' + encodeURIComponent(element.id) + ', dropon should be \'carth\':' + dropon.id)}})</script></body></html>

⌨️ 快捷键说明

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