Content locking pop-up question

vahnz13

Regular Member
Joined
Jun 19, 2011
Messages
442
Reaction score
103
Hi guys, I need a little help here. I want to set up content locking on my site, but I want the gateaway show up when some one click the download button on my page. I try to read the blamads and mgcash tutorial, but I'm really suck at HTML coding anyway :p

Anyone please help me with this :o
 
Using javascript, you can enable the script (such as the blamads javascript) to run only when the button is clicked. Look up javascript buttons and the "onclick" event.
 
Using javascript, you can enable the script (such as the blamads javascript) to run only when the button is clicked. Look up javascript buttons and the "onclick" event.

can you tell more details dude? I swear to God that I'm really, really suck at this :p
Give me more example please..
 
Code:
[COLOR=#000000][FONT=courier new]<img src="[/FONT][/COLOR][I]downloadbutton.png" alt="[I]Download" onclick="startblocker()" />[/I][/I]
 
Code:
[TABLE]
[TR]
[TD]<script language="JavaScript">[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]function startblocker() {[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]//erase this and put your code for your unlocker here[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]}[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]</script>[/TD]
[/TR]
[/TABLE]

Put that around the top of your file, and using the code provided by cookiemonste, together they will load the content locker upon the image (or you can change it to a button like so)

Code:
<button type="button" onclick="startblocker()">Unlock Content</button>
 
Back
Top