PDA

View Full Version : Help extract code from the js file



js_
16 Apr 2011, 05:11 AM
Hi, I'm a beginner of JavaScript.

js file: http://pastebin.com/NTZXnTjw

I need the code for creating pgv_pvid and ssid.

I had searched the web, and got some code, I wonder if the code is right:


var curDate = new Date();
var curMs = curDate.getUTCMilliseconds();
pgv_pvid = (Math.round(Math.random() * 2147483647) * curMs) % 10000000000;
ssid = "s" + (Math.round(Math.random() * 2147483647) * curMs) % 10000000000;
WScript.Echo(pgv_pvid)
WScript.Echo(ssid)