pyronaut
Thanks for this, i been up all night trying to do some thing to my liking, are as follow
1) to implment a progress bar upon clicking of the offer. I was able to accomplish this.
2) was trying to implment a cookie that once they click a offer they get cookied and the widget will not show for 'X' amount of days, i tried stripping the cookie part off crazyfix content locker and adjust it to what i was trying to accomplish, but to no prevail
3) was to rotate the offers on every refresh, i know this is simple cause i done it before on some other link, it was with a random link script in html i think, i have it somewhere. didnt really give this one my whole hearted effort as i was burnt out. but will try again tonight.
4) post back this i didnt even attempt yet, but will be a neat feature but beyond my knowledge. will learn.
Please keep in mind i know very little i just cut and paste lil section of content lockers here and their and played with it till i got something i wanted.
Example of the widget i created thanks to you.
http://bit.ly/aB0yIs
for those who want this edited version here
to get yours to work like mines
Put this in between the head tags <head> </ head>
Code:
<script src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
var Delay = 20;//Seconds after them clicking the link, the gateway vanishes.
function setupgateway()
{
var Left = $(window).width() /2;
Left = Left - $('#gatewaydiv').width()/2;
var Top = $(window).height() /2;
Top = Top - $('#gatewaydiv').height()/2;
$('#gatewaydiv').css('top', Top+'px').css('left', Left+'px').css('display', 'inline');
$('#gatewayDimmer').width($('html').width());
$('#gatewayDimmer').height($('html').height());
$('#gatewayDimmer').css('display','block');
}
function removegateway()
{
$('#gatewaydiv').css('display', 'none');
$('#gatewayDimmer').css('display','none');
}
$(document).ready(function()
{
$('.offerlink').click(function()
{
setTimeout('removegateway()', Delay*1000);
{
document.getElementById('gatewayMessage').innerHTML = "Checking For Completion...." + "<br></br>" + "<br></br>" + "<img src='bar_load.gif'></>";
}
{
document.getElementById('cash').innerHTML = "Not yet completed still confirming human verification";
}
});
setupgateway();
});
</script>
<style>
body
{
background-image:url('');
background-repeat:repeat;
height:100%;
margin:0;
}
#mainContent
{
background-color:white;
margin-left:auto;
margin-right:auto;
margin-top:30px;
width:700px;
border:3px solid #CDCDCD;
text-align:center;
}
#gatewaydiv
{
background-image:url("");
background-repeat:no-repeat;
width:700px;
height:318px;
padding:20px;
position:absolute;
display:none;
background-color:#FFFFFF;
border:solid 4px gray;
text-align:center;
font-family:arial;
}
#gatewaydiv h1
{
font-size:22px;
color:#cc0000;
}
#gatewayMessage
{
font-size:16px;
}
.offerlink
{
color:red;
font-weight:bold;
}
#OfferList
{
margin:0;
padding:0;
}
#OfferList
{
list-style:none;
}
#gatewayDimmer
{
background-color:#000000;
opacity:0.8;
display:none;
position:absolute;
top:0;
}
</style>
And this in between teh body tags <body> </ body>
Code:
<body onscroll="scrolltop();">
<script language="javascript">document.write(ad);</script>
<div id="gatewayDimmer">
</div>
<div id="gatewaydiv">
<ul id="OfferList">
<h1>Welcome to the content locker</h1>
<span id="gatewayMessage">Some statement if you wish to put
<br /><br />
<li><a href="http://google.com" class="offerlink" target="_blank">offerone</a></li>
<li><a href="http://google.com" class="offerlink" target="_blank">offertwo</a></li>
<li><a href="http://google.com" class="offerlink" target="_blank">Offerthree</a></li>
</ul></span>
<br /><br />
Some other statemnet you will like to put<br />
Thank you!
<br></br>
</div>
And you will need to save this gif and upload to the same directory where your content locker located
Code:
http://img818.imageshack.us/img818/5836/barload.gif
For pyronaut or who can help
this is my main goal that i have not figured out, is the cookie the content locker so once they click on a offer, it will not show for like 30 days or what ever i choose.
this is what i had and couldent figure it out, i just ripped crazy fix cookie thing and thought i can tweak it till it works but i failed. well here it is
Code:
<script src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
var Delay = 20;//Seconds after them clicking the link, the gateway vanishes.
var AppearDelay = 3;//Seconds before gateway appears
var oldHistLength = history.length;
var stop_scroll = false;
var once_per_session=1;
var unknown=true;
function setcookie() {
if (unknown==false){
document.cookie="alerted=yes"
}
}
function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) { // if cookie exists
offset += search.length
// set index of beginning of value
end = document.cookie.indexOf(";", offset);
// set index of end of cookie value
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}
function alertornot(){
if (get_cookie('alerted')==''){
loadalert();
}
}
function loadalert(){
delayappearance();
}
if (once_per_session==365)
loadalert()
else
alertornot()
setInterval ( "checkHistory()", 1000 );
function checkHistory()
{
if (oldHistLength != history.length)
{
removegateway();
oldHistLength = history.length;
}
}
function scrolltop(){
if(stop_scroll==true){
scroll(0,0);
}
}
function delayappearance()
{
setTimeout("setupgateway()", AppearDelay*1000);
}
function setupgateway()
{
stop_scroll = true;
window.scrollTo(0,0);
document.body.style.overflow = "hidden"
var Left = $(window).width() /2;
Left = Left - $('#gatewaydiv').width()/2;
var Top = $(window).height() /2;
Top = Top - $('#gatewaydiv').height()/2;
$('#gatewaydiv').css('top', Top+'px').css('left', Left+'px').css('display', 'inline');
$('#gatewayDimmer').width($('html').width());
$('#gatewayDimmer').height($('html').height());
$('#gatewayDimmer').css('display','block');
setTimeout("setcookie()", AppearDelay*6000);
}
function removegateway()
{
stop_scroll = false;
document.body.style.overflow = ""
$('#gatewaydiv').css('display', 'none');
$('#gatewayDimmer').css('display','none');
}
$(document).ready(function()
{
$('.offerlink').click(function()
{
setTimeout('removegateway()', Delay*1000);
{
document.getElementById('gatewayMessage').innerHTML = "Checking..." + "<br></br>" + "<img src='ajax-loader.gif'></>";
}
{
document.getElementById('cash').innerHTML = "Not yet completed still confirming human verification";
}
});
setupgateway();
});
</script>
thanks to sources:
http://www.blackhatworld.com/blackhat-seo/black-hat-seo-tools/210109-free-cpa-gateway-content-locker-code.html?highlight=content+locker and http://www.blackhatworld.com/blackhat-seo/black-hat-seo-tools/224283-free-content-gateway-geotarget-rotate-offers-session-cookies-instructions.html?highlight=content+locker click their name for their threads.