87,990
社区成员
发帖
与我相关
我的任务
分享
<!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=gb2312" />
<title>无标题文档</title>
<style>
.blue
{
display:none;
}
</style>
<script type="text/javascript">
function removeHtml(obj,value) {
alert(value);
obj.parentNode.parentNode.removeChild(obj.parentNode);
}
function add()
{
document.getElementById("disDdAjax-1_1").innerHTML+="<dd class='blue'><a href='#'>优惠的名称</a> <span class='undis'>+ _shopid + | + chk.id +</span> <a href=javascript:void(0); onclick=removeHtml(this)><b class=blue>X</b></a></dd>"
}
function change(obj,type)
{
var object1=obj.getElementsByTagName("span")[1];
if(type==1)
{
object1.style.display="block";
}else
{
object1.style.display="none";
}
}
</script>
</head>
<body>
<div id="disAjax-1_1" class="journey_youhui">
<dl id="disDdAjax-1_1">
<dt>目的地优惠</dt>
<dd class=\"blue\" onmouseover="change(this,1)" onmouseout="change(this,2)" ><a href="#">优惠的名称</a> <span class="undis">" + _shopid + "|" + chk.id + "</span> <a href="javascript:void(0);" onclick="removeHtml(this,'第一个数据')"><span class="blue">X</span></a></dd>
<dd class=\"blue\" onmouseover="change(this,1)" onmouseout="change(this,2)" ><a href="#">优惠的名称</a> <span class="undis">" + _shopid + "|" + chk.id + "</span> <a href="javascript:void(0);" onclick="removeHtml(this,'第二个数据')"><span class="blue">X</span></a></dd>
<dd class=\"blue\" onmouseover="change(this,1)" onmouseout="change(this,2)" ><a href="#">优惠的名称</a> <span class="undis">" + _shopid + "|" + chk.id + "</span> <a href="javascript:void(0);" onclick="removeHtml(this,'第三个数据')"><span class="blue">X</span></a></dd>
</dl>
<input type="button" onclick="add()" value="添加" >
</div>
</body>
</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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
function removeHtml(obj) {
obj.parentNode.parentNode.removeChild(obj.parentNode);
}
function add()
{
document.getElementById("disDdAjax-1_1").innerHTML+="<dd class='blue'><a href='#'>优惠的名称</a> <span class='undis'>+ _shopid + | + chk.id +</span> <a href=javascript:void(0); onclick=removeHtml(this)><b class=blue>X</b></a></dd>"
}
</script>
</head>
<body>
<div id="disAjax-1_1" class="journey_youhui">
<dl id="disDdAjax-1_1">
<dt>目的地优惠</dt>
<dd class=\"blue\"><a href="#">优惠的名称</a> <span class="undis">" + _shopid + "|" + chk.id + "</span> <a href="javascript:void(0);" onclick="removeHtml(this)"><b class="blue">X</b></a></dd>
<dd class=\"blue\"><a href="#">优惠的名称</a> <span class="undis">" + _shopid + "|" + chk.id + "</span> <a href="javascript:void(0);" onclick="removeHtml(this)"><b class="blue">X</b></a></dd>
<dd class=\"blue\"><a href="#">优惠的名称</a> <span class="undis">" + _shopid + "|" + chk.id + "</span> <a href="javascript:void(0);" onclick="removeHtml(this)"><b class="blue">X</b></a></dd>
</dl>
<input type="button" onclick="add()" value="添加" >
</div>
</body>
</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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
function removeHtml(obj) {
obj.parentNode.parentNode.removeChild(obj.parentNode);
}
</script>
</head>
<body>
<div id="disAjax-1_1" class="journey_youhui">
<dl id="disDdAjax-1_1">
<dt>目的地优惠</dt>
<dd class=\"blue\"><a href="#">优惠的名称</a> <span class="undis">" + _shopid + "|" + chk.id + "</span> <a href="javascript:void(0);" onclick="removeHtml(this)"><b class="blue">X</b></a></dd>
<dd class=\"blue\"><a href="#">优惠的名称</a> <span class="undis">" + _shopid + "|" + chk.id + "</span> <a href="javascript:void(0);" onclick="removeHtml(this)"><b class="blue">X</b></a></dd>
<dd class=\"blue\"><a href="#">优惠的名称</a> <span class="undis">" + _shopid + "|" + chk.id + "</span> <a href="javascript:void(0);" onclick="removeHtml(this)"><b class="blue">X</b></a></dd>
</dl>
</div>
</body>
</html>