Bitcoin Forum
September 22, 2019, 05:01:54 AM *
News: Latest Bitcoin Core release: 0.18.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: A little help please - im guessing its php - single click redirect and vanish  (Read 65 times)
The_Trader
Member
**
Offline Offline

Activity: 115
Merit: 31


View Profile
April 09, 2019, 03:08:31 AM
Merited by eckmar (1)
 #1

Man I'm so fucked off  Cheesy

4 hours on google and i still cant figure it out.

And breath !!!!

So I am trying to figure out how this dude does this :



So basically you click on the blue button and it opens his youtube page up in another browser tab, well that's simple code even for me but the bit I cant get my head around is when you go back to his page that button has gone and the download link has been revealed.

How the hell is he doing that ?

I want to use similar for a faucet i am creating and would love to be able to add that feature.

Im not worried about the download link its just the redirect and un-veil bit im interested in

His link is http://ramindigital.com/template10/free-intro-6.php

I thought to start with perhaps it was a meta refresh but thats not the case

Any help would be great

TT

★★★ BitCloak Bitcoin Mixer |BTC & BCH| FAST MIX | API | PGP PROOF | ESCROW ★★★
★ Tor and Clearnet mirrors | Payouts Every 60 seconds | Cheap 2% Service Fee | The Most Advanced Mixer | Discuss More
1569128514
Hero Member
*
Offline Offline

Posts: 1569128514

View Profile Personal Message (Offline)

Ignore
1569128514
Reply with quote  #2

1569128514
Report to moderator
1569128514
Hero Member
*
Offline Offline

Posts: 1569128514

View Profile Personal Message (Offline)

Ignore
1569128514
Reply with quote  #2

1569128514
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
nc50lc
Hero Member
*****
Online Online

Activity: 714
Merit: 542


Self-proclaimed Genius ㊙️


View Profile WWW
April 09, 2019, 05:33:20 AM
Merited by eckmar (2)
 #2

You can do the same thing using the combination of CSS and HTML by hiding the "link" underneath the displayed "subscribe button".
Add: a.subscribebutton:visited {display = "none"} to hide it after one click which displays the link behind it.
Just change the special class "subscribebutton" to your liking and add to subscribe button's element class="subscribebutton".

Javascript can also do the same : Javascript - Hide/Show. But it's toggle-able.

Add the attribute: target="_blank" to your HTML link(s) to open the link in a new tab .
Code:
<a target="_blank" href="google.com">Link to Google</a>

eckmar
Legendary
*
Offline Offline

Activity: 1666
Merit: 1022


Telegram: @eckmar


View Profile
April 09, 2019, 07:55:13 AM
 #3

You can do the same thing using the combination of CSS and HTML by hiding the "link" underneath the displayed "subscribe button".
Add: a.subscribebutton:visited {display = "none"} to hide it after one click which displays the link behind it.
Just change the special class "subscribebutton" to your liking and add to subscribe button's element class="subscribebutton".

Javascript can also do the same : Javascript - Hide/Show. But it's toggle-able.

Add the attribute: target="_blank" to your HTML link(s) to open the link in a new tab .
Code:
<a target="_blank" href="google.com">Link to Google</a>

Thats one solution, better one is to store the download link in some variable in js (or even get it after button is clicked) and then remove button with js or change link to the newly gotten link. Hope I've explained it fine.

The_Trader
Member
**
Offline Offline

Activity: 115
Merit: 31


View Profile
April 09, 2019, 11:01:09 AM
 #4

You can do the same thing using the combination of CSS and HTML by hiding the "link" underneath the displayed "subscribe button".
Add: a.subscribebutton:visited {display = "none"} to hide it after one click which displays the link behind it.
Just change the special class "subscribebutton" to your liking and add to subscribe button's element class="subscribebutton".

Javascript can also do the same : Javascript - Hide/Show. But it's toggle-able.

Add the attribute: target="_blank" to your HTML link(s) to open the link in a new tab .
Code:
<a target="_blank" href="google.com">Link to Google</a>

Right so its some sort off css witchcraft skulduggery.

So im guessing then the css will force the image into position and then a.subscribebutton:visited {display = "none"} will remove it

Many Thanks both for your replies

TT

★★★ BitCloak Bitcoin Mixer |BTC & BCH| FAST MIX | API | PGP PROOF | ESCROW ★★★
★ Tor and Clearnet mirrors | Payouts Every 60 seconds | Cheap 2% Service Fee | The Most Advanced Mixer | Discuss More
HeRetiK
Legendary
*
Offline Offline

Activity: 1232
Merit: 1123


the forkings will continue until morale improves


View Profile
April 09, 2019, 03:41:05 PM
 #5

Right so its some sort off css witchcraft skulduggery.

So im guessing then the css will force the image into position and then a.subscribebutton:visited {display = "none"} will remove it

Many Thanks both for your replies

TT

While a fun approach setting a:visited { display: none; } will likely not work on most modern browsers:

For privacy reasons, browsers strictly limit which styles you can apply using this pseudo-class, and how they can be used:
  • Allowable CSS properties are color, background-color, border-color, border-bottom-color, border-left-color, border-right-color, border-top-color, column-rule-color, and outline-color.
  • Allowable SVG attributes are fill and stroke.
  • The alpha component of the allowed styles will be ignored. The alpha component of the element's non-:visited state will be used instead, except when that component is 0, in which case the style set in :visited will be ignored entirely.
  • Although these styles can be change the appearance of colors to the end user, the window.getComputedStyle method will lie and always return the value of the non-:visited color.

This means you'll probably have to rely on JavaScript instead.

If you want the website to remember whether a user has clicked the button you'll then additionally have to persist it locally using either cookies, Local Storage or IndexedDB with Local Storage probably being the recommendable approach for this use case.

Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!