Results 1 to 5 of 5
  1. #1
    Full Member BrattyKitty's Avatar
    Join Date
    January 18th, 2005
    Location
    Ontario
    Posts
    260
    Is this parasiteware?
    I obtained a template several months ago and just recently noticed the following javascript. I would've thought nothing of it until I looked closer and saw the grab cookie part within it.

    Now I'm wondering if it's some kind of parasiteware and I'm not at all sure what to do with it



    script language='javascript' type='text/javascript'
    !--
    var win=null;


    function NewWindow(winpage,winname,wwidth,wheight,placement,whoinfocus){
    if(GrabCookie("cooklength") == "sharepopcookie"){return;}
    document.cookie="cooklength=sharepopcookie; Path=/; Expires= " + FutureExpire(1);
    if(placement=="center"){winleft=(screen.width)?(screen.width-wwidth)/2:100;wintop=(screen.height)?(screen.height-wheight)/2:100;}
    else if((placement!='center') || placement==null){winleft=0;wintop=20}
    settings="width=" + wwidth + ",height=" + wheight + ",top=" + wintop + ",left=" + winleft + ",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";win=window.open(winpage,winname,settings);
    win.focus();}

    function FutureExpire(numbofdays){
    var futuredate = new Date();
    futuredate.setTime(futuredate.getTime() + (86400001 * numbofdays));
    return futuredate ;
    }

    function GrabCookie (nameofcook) {
    var sentcookname = nameofcook + "=";
    var arglength = sentcookname.length;
    var cooklength = document.cookie.length;
    var icount = 0;
    while (icount < cooklength) {
    var jcount = icount + arglength;
    if (document.cookie.substring(icount, jcount) == sentcookname)
    return GrabCookValue (jcount);
    icount = document.cookie.indexOf(" ", icount) + 1;
    if (icount == 0) break;
    }
    return null;
    }

    function GrabCookValue (spacing) {
    var b = document.cookie.indexOf (";", spacing);
    if (b == -1){
    b = document.cookie.length;
    return unescape(document.cookie.substring(spacing, b));}
    }
    // --
    /script
    Last edited by BrattyKitty; April 20th, 2005 at 01:37 PM. Reason: typo
    Never argue with an idiot.
    The person watching, may not be able to tell the difference!

    :female: :star: :envelope: [url="http://www.bridalbasics.ca/"]:weddingca[/url]

  2. #2
    Lite On The Do, Heavy On The Nuts Donuts's Avatar
    Join Date
    January 18th, 2005
    Location
    Winter Park, FL
    Posts
    6,930
    Your script looks to be just a simple "setting and reading cookies" type example.
    See here for a remarkably similar example:
    http://www.faqts.com/knowledge_base/view.phtml/aid/1977

    A cookie is just a file where some information is stored - it is not a program and it is not parasiteware. Learn more about cookies here:
    http://www.webopedia.com/DidYouKnow/...02/Cookies.asp

  3. #3
    Roll Tide mobilebadboy's Avatar
    Join Date
    January 18th, 2005
    Location
    Mobile, Alabama
    Posts
    1,220
    Looks to be just a script to open a popup and then set a cookie to not show it again for X number of days. But I could be wrong. It happens occasionally.

    Shawn Kerr (.com) | Disney World | SEC Football

  4. #4
    Full Member BrattyKitty's Avatar
    Join Date
    January 18th, 2005
    Location
    Ontario
    Posts
    260
    Red face
    The webopedia item was interesting reading and I want to thank you for sharing it.

    I'm guessing I can remove it or keep it on the page and it isn't going to make a difference either way. Right?


    I must've been in a paranoid state of panic when I posted
    ......what the heck was I thinking?

    Well, I learned something new (again) thanks for the info
    Never argue with an idiot.
    The person watching, may not be able to tell the difference!

    :female: :star: :envelope: [url="http://www.bridalbasics.ca/"]:weddingca[/url]

  5. #5
    Lite On The Do, Heavy On The Nuts Donuts's Avatar
    Join Date
    January 18th, 2005
    Location
    Winter Park, FL
    Posts
    6,930
    Quote Originally Posted by HomeFlower
    I'm guessing I can remove it or keep it on the page and it isn't going to make a difference either way. Right?
    I can't answer this question for you. You need to consult a programmer to determine how your cookies are being used functionally within your site.

    I suggest you post your question somewhere in here:
    http://forum.abestweb.com/forumdisplay.php?f=188

  6. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. parasiteware?
    By winkwa in forum Suspicious Activity!
    Replies: 1
    Last Post: September 28th, 2002, 10:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •