如何解决带有单击功能的几个复选框进行确认,然后它应显示一个用于PayPal的按钮
我的网站访问者必须先同意某些条件才能付款。只有这样,贝宝按钮才会出现。不幸的是,我不知道如何在代码中添加多个按钮。一个人走了,但别人怎么同意?请帮忙
<head>
<center><meta charset="utf-8">
<style type="text/css">
input[type=checkbox],label{
cursor: pointer;
}
#formdiv{
padding-top: 30px;
}
</style>
</head>
<body>
<input type="checkbox" class= "larger" id="AGB" <name="AGB" <br> <strong></name>AGB</name></strong>
<style>
input.larger {
transform: scale(126px);
margin: 15px;
}
</style>
<input type="checkbox" class= "larger" id="Wid" <name="Widerruf" <br> <strong></name>Widerruf</name></strong>
<style>
input.larger {
transform: scale(126px);
margin: 15px;
}
</style>
<center><div id="formdiv">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="AQPGG3BXQ7JMJ">
<input type="image" id="submitimage" src="https://www.paypalobjects.com/de_DE/DE/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="Jetzt einfach,schnell und sicher online bezahlen – mit PayPal.">
<img alt="" border="0" src="https://www.paypalobjects.com/de_DE/i/scr/pixel.gif" width="1" height="1">
</form></center>
</div>
<script>
function button_klick(ids) {
if (document.getElementById('AGB').checked) {
document.getElementById('submitimage').style.width = '126px';
document.getElementById('submitimage').style.height = '47px';
}
else {
document.getElementById('submitimage').style.width = '0px';
document.getElementById('submitimage').style.height = '0px';
}
}
document.getElementById('AGB').onclick = function() {
button_klick();
};
button_klick(); //
</script>
</body>
我的网站访问者必须先同意某些条件才能付款。只有这样,贝宝按钮才会出现。不幸的是,我不知道如何在代码中添加多个按钮。一个人走了,但别人怎么同意?请帮忙
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。