Bitcoin Forum

Bitcoin => Project Development => Topic started by: dhen20 on April 12, 2016, 02:57:45 AM



Title: Another Pop up window/box after click on "Get reward" button [I Need help]
Post by: dhen20 on April 12, 2016, 02:57:45 AM
hello guys, I'm newbie here can you please help me for javascript,html or php script code on pop up window after click on Get reward button? i want try this to my bitcoin faucet. Thanks for helping me guys!


Title: Re: Another Pop up window/box after click on "Get reward" button [I Need help]
Post by: jacktheking on April 12, 2016, 12:53:47 PM
It would be great to state what script you using? Faucet in a box? Custom?

Don't know if it help but I recently came across this script, http://t4t5.github.io/sweetalert/. This work good for a 'styled' popup box.


Title: Re: Another Pop up window/box after click on "Get reward" button [I Need help]
Post by: Hazelnutter on April 13, 2016, 04:47:41 PM
What you'll need to do is add a listener for your "Get Reward" button that calls some javascript...

<button onclick="popup()"></button>
<div id="popup_div">I am the popup...</div>
<script>
function popup(){
    if('#popup_div').css('display') == 'none'){
        $("#popup_div").css("display","block");
    }else{
        $("#popup_div").css("display","none");
    }
}
</script>


Title: Re: Another Pop up window/box after click on "Get reward" button [I Need help]
Post by: dhen20 on April 19, 2016, 07:23:29 AM
It would be great to state what script you using? Faucet in a box? Custom?

Don't know if it help but I recently came across this script, http://t4t5.github.io/sweetalert/. This work good for a 'styled' popup box.




Thanks for this i will try.. :-)


Title: Re: Another Pop up window/box after click on "Get reward" button [I Need help]
Post by: modobot on April 21, 2016, 12:47:21 PM
@Hazelnutter,
Kudos for showing how stupidly simple it is to do something like this, rather than recommending a plug-in or script (not that there is anything wrong with that). This developer appreciates that.