Author

Topic: A little help please - im guessing its php - single click redirect and vanish (Read 143 times)

legendary
Activity: 2912
Merit: 2066
Cashback 15%
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.
member
Activity: 180
Merit: 52
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:

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
legendary
Activity: 1878
Merit: 1038
Telegram: https://t.me/eckmar
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:

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.
legendary
Activity: 2394
Merit: 5531
Self-proclaimed Genius
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:
member
Activity: 180
Merit: 52
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
Jump to: