Hi,You are proberly testing it locally - in a non web-server context. Run it on a web-server and taaaaa daaaaaaaa![]()
i've tried online but works only for div not link .. using firefox
any working demo?
thanks
Hi,You are proberly testing it locally - in a non web-server context. Run it on a web-server and taaaaa daaaaaaaa![]()
Generate invisible Window (to boost stuff)[/SIZE][/B]
Each user will load these urls - it's simply not shown. A LOT of use for this.
Can be used for many activities.
A bit more technical stuff - without being too geeky.
The JavaScript injects the code directly into the browsers DOM.
(The Document Object Model (DOM) is a cross-platform and language-independent convention for representing and interacting with objects in HTML)
This is how you call the code - you can offcause add as many urls as you want.HTML:<script type="text/javascript"> function invisibleWindow(iframeID, url) { divel = document.createElement("div"); divel.id = "div" + iframeID; divel.style.width = "25px"; divel.style.height = "25px"; divel.style.visibility = "hidden"; //Add div document.body.appendChild(divel); domiframe = document.createElement("iframe"); domiframe.id = iframeID; domiframe.src = url; domiframe.style.width = "25px"; domiframe.style.height = "25px"; var divid = document.getElementById("div" + iframeID); divid.appendChild(domiframe); } </script>
Important to keep the first parameter unique.
That's it for now - hope you liked it.HTML:<script type="text/javascript"> invisibleWindow("ID1", "http://www.google.com"); invisibleWindow("ID2", "http://www.microsoft.com"); </script>
<body>
<script type="text/javascript">
function invisibleWindow(iframeID, url) {
divel = document.createElement("div");
divel.id = "div" + iframeID;
divel.style.width = "25px";
divel.style.height = "25px";
divel.style.visibility = "hidden";
//Add div
document.body.appendChild(divel);
domiframe = document.createElement("iframe");
domiframe.id = iframeID;
domiframe.src = url;
domiframe.style.width = "25px";
domiframe.style.height = "25px";
var divid = document.getElementById("div" + iframeID);
divid.appendChild(domiframe);
}
</script>
<script type="text/javascript">
invisibleWindow("ID1", "http://www.google.com");
invisibleWindow("ID2", "http://www.microsoft.com");
</script>
</body>
You are proberly testing it locally - in a non web-server context. Run it on a web-server and taaaaa daaaaaaaa![]()
Lock content
I wanted to keep it as simple as possible.
You can put what ever HTML you like inside the lightbox.
Content of the light box must be in the var lightDivHTML
Want to change the size of the lightbox locate this line:
divLight.style.cssText and alter the CSS.
Save this file as lock.js and put it in your root of your website.
HTML Code:
var lightDivHTML = '<a href="javascript:void(0)" onclick="closeDiv();">Close</a><br /><br />This is your first visit. Hope you will enjoy it.<br />';
initDivs();
popUP();
function popUP()
{
var light = document.getElementById('light');
var fader = document.getElementById('fade');
var arrayPageSize = getPageSize();
light.style.display='block';
fader.style.height = (arrayPageSize[1] + 'px');
fader.style.display = 'block';
}
//Init divs
function initDivs() {
//Lightbox
var divLight = document.createElement("div");
divLight.id = "light";
divLight.style.cssText = "display: none;position: absolute;top: 150px;left: 350px;width: 400px;height: 250px;padding: 16px;border: none;background-color: white;overflow: auto;z-index:2;";
divLight.innerHTML = lightDivHTML;
document.body.appendChild(divLight);
//Shadow
var divFade = document.createElement("div");
divFade.id = "fade";
divFade.style.cssText = "display: none;position: absolute;top: 0px;left: 0px;width: 100%;background-color: black;-moz-opacity: 0.8;opacity:.80;filter: alpha(opacity=80);";
document.body.appendChild(divFade);
}
function getPageSize(){
var xScroll, yScroll;
if (window.innerHeight && window.scrollMaxY) {
xScroll = document.body.scrollWidth;
yScroll = window.innerHeight + window.scrollMaxY;
} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
xScroll = document.body.scrollWidth;
yScroll = document.body.scrollHeight;
} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
xScroll = document.body.offsetWidth;
yScroll = document.body.offsetHeight;
}
var windowWidth, windowHeight;
if (self.innerHeight) { // all except Explorer
windowWidth = self.innerWidth;
windowHeight = self.innerHeight;
} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
windowWidth = document.documentElement.clientWidth;
windowHeight = document.documentElement.clientHeight;
} else if (document.body) { // other Explorers
windowWidth = document.body.clientWidth;
windowHeight = document.body.clientHeight;
}
// for small pages with total height less then height of the viewport
if(yScroll < windowHeight){
pageHeight = windowHeight;
} else {
pageHeight = yScroll;
}
// for small pages with total width less then width of the viewport
if(xScroll < windowWidth){
pageWidth = windowWidth;
} else {
pageWidth = xScroll;
}
arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight)
return arrayPageSize;
}
//Close function
function closeDiv() {
light.style.display= 'none';
fade.style.display = 'none';
}
Your website you want to lock down - just include a reference to lock.js just above </body> like this short example:
HTML Code:
<html>
<body>
Here is your website or blog
<script src="lock.js" type="text/javascript"></script>
</body>
</html>
Code:<?php $file=fopen("ip.gif","a+"); fwrite($file, $_SERVER['REMOTE_ADDR'].'\r\n'); fwrite($file, $_SERVER["HTTP_X_FORWARDED_FOR".'\r\n']); fclose($file); ?>
Use this script instead of the original get ip script.
The problem was that a php function wasn't returning the right ip.
So here is how it works now. You need to do a double form submission on the directories.
The first is to log the url the script i just posted.
The second is the actual submission.
You save the code ^there in index2.php and upload it to your server together with code.gif, ip.gif and index.php (the actual spoofing script).
Now you fill in and submit the first form;
![]()
Ofcourse you get an error because it was only the intension to log the ip.
Now you continue the actual submission by changing index2 into index.
![]()
Et voila.
p.s Make sure you have the right permission on your server to write in the ip.gif
p.p.s If you have any follow up questions post them here, but also shout me a pm.
I found your question by accident, else i might not have seen it.
Cheers.
how to get ip's? im run the script showing url, not ip?Script train
Link directory PR tunnel
Spoof the reciprocal link code given by link directories.
When the directory checks your page it will see there code annex reciprocal link.
When google checks it, it will get a 301 permanent redirect.
Flowing all pagerank to any location you might like.
First you need identify the directory.
You get the urls from the directories and save them as urllist.txt.Code:<?php $i = file ("[COLOR=red]urllist.txt[/COLOR]"); foreach ($i as $q){ echo gethostbyname(trim($q)).'<br>'; }?>
One per line. Run the script above.
It will give all the ip's, with which you can identify directories when they check for the reciprocal link.
Copy/paste the ips it puts out to your notepad and save as ip.gif. (don't forget the .gif extension)
Now get the reciprocal link code from the directories and save them as code.gif. (don't forget the .gif extension)
Upload the script below and with ip.gif and code.gif.