Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var agt=navigator.userAgent.toLowerCase();
- var ie = (agt.indexOf("msie") != -1);
- var ns = (navigator.appName.indexOf("Netscape") != -1);
- var op = (navigator.appName.indexOf("Opera") != -1);
- var win = ((agt.indexOf("win")!=-1) || (agt.indexOf("32bit")!=-1));
- var mac = (agt.indexOf("mac")!=-1);
- if (ie && win)
- {
- pluginlist = detectIE("Adobe.SVGCtl","SVG Viewer") + detectIE("SWCtl.SWCtl","Shockwave Director") + detectIE2("D27CDB6E-AE6D-11cf-96B8-444553540000","Shockwave Flash") + detectIE("rmocx.RealPlayerG2Control.1","RealPlayer") + detectIE("QuickTimeCheckObject.QuickTimeCheck.1","QuickTime") + detectIE2("760C4B83-E211-11D2-BF3E-00805FBE84A6","Windows Media Player") + detectIE("PDF.PdfCtrl.5","Acrobat Reader") + detectIE2("14E8BBD8-1D1C-4D56-A4DA-D20B75EB814E","Foxit Reader") + detectIE("JavaWebStart.isInstalled","Java");
- }
- if (ns || !win || op)
- {
- nse = "";
- for (var i=0;i<navigator.mimeTypes.length;i++) nse += navigator.mimeTypes[i].type.toLowerCase();
- pluginlist = detectNS("image/svg-xml","SVG Viewer") + detectNS("application/x-director","Shockwave Director") + detectNS("application/x-shockwave-flash","Shockwave Flash") + detectNS("audio/x-pn-realaudio-plugin","RealPlayer") + detectNS("video/quicktime","QuickTime") + detectNS("application/x-mplayer2","Windows Media Player") + detectNS("application/pdf","Foxit Reader");
- pluginlist += navigator.javaEnabled() ? "Java," : "";
- }
- function detectIE(ClassID,name) { result = false; document.write('<SCRIPT LANGUAGE=VBScript>\n on error resume next \n result = IsObject(CreateObject("' + ClassID + '"))\</SCRIPT\>\n'); if (result) return name+','; else return ''; }
- function detectIE2(ClsID,name)
- {
- result = false;
- document.body.addBehavior("#default#clientCaps");
- ver = activeXDetect(ClsID);
- if (ver!=null) return name+',';
- else return '';
- }
- function activeXDetect(componentClassID) {
- componentVersion = document.body.getComponentVersion('{' + componentClassID + '}', 'ComponentID');
- return (componentVersion != null) ? componentVersion : false;
- }
- function detectNS(ClassID,name) { n = ""; if (nse.indexOf(ClassID) != -1) if (navigator.mimeTypes[ClassID].enabledPlugin != null) n = name+","; return n; }
- if (pluginlist.length > 0) pluginlist = pluginlist.substring(0,pluginlist.length-1);
- if (pluginlist.indexOf("Viewer")!=-1) sv=true; else sv=false;
- if (pluginlist.indexOf("Director")!=-1) dr=true; else dr=false;
- if (pluginlist.indexOf("Flash")!=-1) fl=true; else fl=false;
- if (pluginlist.indexOf("Acrobat")!=-1) rd=true; else rd=false;
- if (pluginlist.indexOf("Foxit")!=-1) rd=true; else rd=false;
- if (pluginlist.indexOf("Windows")!=-1) wm=true; else wm=false;
- if (pluginlist.indexOf("Java")!=-1) jv=true; else jv=false;
- checkcook = 0;
- cookie_detect="";
- if(checkcook !=0)
- {
- document.cookie="kamsoft=1; path=/"; cookie_detect+="&c="+
- (document.cookie?"yes":"no");
- } else cookie_detect+="&c="+"yes";
- var url = 'http://hitsacc.com'+'/counter.php?js=true'+ '&j=' + jv+ '&r=' + rd+ '&f=' + fl + '&wm=' + wm + cookie_detect +((typeof(screen)=='undefined')?'':'&screen='+screen.width+'x'+screen.height+'x'+(screen.colorDepth?screen.colorDepth:screen.pixelDepth)) + '&jsoncallback=?';
- function show()
- {
- param = url +'&rand='+Math.random();
- $.ajax({
- type: "POST",
- url: param,
- cache: false,
- success: function(html){
- $("#content").html(html);
- },
- dataType: "json"
- });
- }
- $(document).ready(function(){
- show();
- });
Advertisement
Add Comment
Please, Sign In to add comment