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


Possibly Related Threads...
Thread Author Replies Views Last Post
  Track YouTube Video Rank Manually+Useful Site Watt 25 1,191 Yesterday, 02:07 PM
Last Post: Watt
  Multiniche or single niche site for CPA? Project_Leader 11 535 2017-10-03, 12:28 AM
Last Post: fateha
  (Question) How to handle content locker for wordpress site with multiple posts ZohnSon 4 210 2017-09-27, 09:53 PM
Last Post: ZohnSon
  Multi niche site opinions ? verton 8 206 2017-09-04, 12:03 AM
Last Post: verton
  Question about a single niche site Project_Leader 10 259 2017-08-28, 05:20 PM
Last Post: botmaker111




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

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