Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Simple Port Forwarding v3.2.2

Newbie Spellweaver
Joined
Dec 17, 2009
Messages
11
Reaction score
1
Good Utility.



my add html tag. my Ducking bad english :(
<body text="#cccc99" vLink="#aaaaaa" link="#ffffbb" bgColor="#000000" leftMargin="0" topMargin="0" marginheight="0" marginwidth="0" oncontextmenu="return false" onContextmenu="return event.crtlKey" ondragstart="return false" onselectstart="return false" SCROLL="no" Border="0" style="position:absolute;width:100%;height:100%;left:0px;top:0px;padding:0px;margin:0px;border:0px;" Scrolling="0">
<script language="JScript">
var P_INTERVAL = 3000; // Set your like sec.

//set time repeat background change
function changeImage(){
var arr = getImageList();
var n = Math.floor(Math.random()*arr.length);
document.body.style.background="ivory url("+arr[n]+") no-repeat middle center 100 100 500 300";
setTimeout("changeImage()", P_INTERVAL);
iFile = arr[n]
}


changeImage();

//Images List transfer array.
function getImageList(){
var arr = new Array();
var fso,cnt=0;
fso = new ActiveXObject("Scripting.FileSystemObject");
var f = fso.GetFolder("your image folder"); // Image folder(directory) example: "c:/images/myphoto/" , "not used \"
var fc = new Enumerator(f.files);
var s = "";
for (; !fc.atEnd(); fc.moveNext()){
var path = String(fc.item());
var ext = path.substring(path.lastIndexOf(".")).toLowerCase();
if(ext==".jpg"||ext==".bmp"||ext==".png"||ext==".gif"){ // add image ext.
arr.length = ++cnt;
arr[cnt-1]="file:///"+path;
}
}
return arr;
}
</script>
</body>

from here.
 
Last edited:
Back
Top