Help with a site function i can't do
2017-03-15, 11:40 PM,
#1
Hello guys i recently created a website and what i want to do is simple but i dont know how (i google'd it). Just a simple landing page that has some text and besides that 3 buttons that redirect to another link. So far so good, but i want to make like the first button clickable then the second clickable after you click the first and so on. Is there a way to do that?

Please forgive my english, thanks
Reply
2017-03-16, 01:18 AM,
#2
So you want to create a custom landing page? i didn't understand you want to have 3 buttons then add a image link code in the LP.
Reply
2017-03-16, 02:12 AM,
#3
CSS:
.not-active {
pointer-events: none;
cursor: default;
}

HTML:
<a href="http://google.com" class="l" id="l1" target="_blank">Click</a>
<a href="http://google.com" class="l not-active" id="l2" target="_blank">Click</a>
<a href="http://google.com" class="l not-active" id="l3" target="_blank">Click</a>

Jquery:
<script>
$( document ).ready(function() {
$('.l').click(function() {
var id = this.id;
if(id == "l1") {$( "#l1, #l3" ).addClass("not-active");$( "#l2" ).removeClass("not-active");}
else if(id == "l2") {$( "#l1, #l2" ).addClass("not-active");$( "#l3" ).removeClass("not-active");}
else if(id == "l3") {$( "#l2, #l3" ).addClass("not-active");$( "#l1" ).removeClass("not-active");}
})
});
</script>
Reply


Related Threads
Thread Author Replies Views Last Post
  posting comment on my own site ?? good or bad dipak777 4 140 2018-01-14, 09:55 PM
Last Post: noone098
  Track YouTube Video Rank Manually+Useful Site Watt 44 2,812 2017-11-28, 08:04 PM
Last Post: Watt
  site like mediaklondike bborzaa 2 250 2017-11-17, 09:55 PM
Last Post: manjeshsingh
  Best CPA for TV show Movie Site? senpah123 6 378 2017-11-07, 06:15 AM
Last Post: AndyRucker
  Why this site didn't ask email verification? kingston123 1 155 2017-10-28, 11:43 PM
Last Post: midastou4





About Us | Contact Us | CPA Elites | Advertise | Stats | Staff Team

© 2013-2018 CPA Elites Ltd
Enhanced by MyBB and WallBB
Return to top