HTML CSS exersice,简单(只是为了理解任务) [英] HTML CSS exersice, simple (just to understand the task)
问题描述
我需要更改此页面的表单 http://dubailifestyleapp.com/members/ 。根据以下步骤:
在
中添加此链接< HEAD>
< link rel =stylesheet
href =https://trafficbalance.io/static/css/sdk/sdk.css>
- 然后添加这些js链接以及脚本:
< script src =https://trafficbalance.io/static/js/sdk/all.min.js>
< / script>
< script>
$(function(){
tbsdk.init({
container:'#cont',
pipe:'0rSX2a2',
campaign:'13',
sub_campaign:'30DayChange',
password_required:true,
extra_data:{
subAffiliateId:30DayChange
}
});
});
< / script>
并将表单的div更改为
< div id =cont>< / div>
我改变了所有这些,网页形式没有任何变化。
我想我需要为表单使用Javascript函数,我该如何使用它?
您需要复制 http://dubailifestyleapp.com 和
http://dubailifestyleapp.com/members/
成员页面然后,在成员页面上将表单更改为以下形式:
inside: p>
before< / body>关闭:
如果jQuery已经在页面中,则不需要添加此行。 / p>
$(function(){
tbsdk.init({
container:'#cont',
pipe:'0rSX2a2',
campaign:'13',
sub_campaign:'30DayChange',
password_required:true,
extra_data:{
subAffiliateId:30DayChange
}
});
});
你应该做的最后一件事就是把这个div放在原来的形式上
< div id =cont>< / div>
I need to change the form of this page http://dubailifestyleapp.com/members/. according to the following steps:
add this link inside the
<head>
<link rel="stylesheet"
href="https://trafficbalance.io/static/css/sdk/sdk.css">
-then to add these js link and also the script:
<script src="https://trafficbalance.io/static/js/sdk/all.min.js">
</script>
<script>
$(function() {
tbsdk.init({
container: '#cont',
pipe: '0rSX2a2',
campaign: '13',
sub_campaign: '30DayChange',
password_required: true,
extra_data: {
subAffiliateId: "30DayChange"
}
});
});
</script>
and to change the div of the form to
<div id="cont"></div>
I change all of these, and nothing was change in the form of the webpage. I guess I need to use the Javascript function for the form, how can I use it?
So first you need to Duplicate http://dubailifestyleapp.com and http://dubailifestyleapp.com/members/
Then on the first page Change the form to only a button that redirect to the members page
Then, on the members page change the form to this form : inside :
before </body> closes:
if jQuery is already in page, no need to add this line.
$(function() {
tbsdk.init({
container: '#cont',
pipe: '0rSX2a2',
campaign: '13',
sub_campaign: '30DayChange',
password_required: true,
extra_data: {
subAffiliateId: "30DayChange"
}
});
});
And the last thing you should do is put this div instead of the original form
<div id="cont"></div>
这篇关于HTML CSS exersice,简单(只是为了理解任务)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!