close ds if another was posted b4.
Js an add on 4 ur Js files...
copy paste process ehehe..
cos somebody asked me bout the code...
wen they saw one of my test page.....
for resizing... onload ...animation here:
very long code. Lolx.
credits: sir dillenger 
preview: http://profiles.friendster.com/65704393
js an add on code.,, [available here]
Moving window script
var mx=5
var my=5
function movewindow(){
if (self.screenLeft + document.body.clientWidth > screen.width) mx=-5
if (self.screenLeft < 0) mx=5
if (self.screenTop + document.body.clientHeight> screen.Height - 20) my=-5
if (self.screenTop < 0) my=5
window.moveBy(mx, my)
setTimeout("movewindow()",100)
// movewindow()
}
document.write('<BODY onload="movewindow();">');
Automatic maximizing of window... if the viewer
restored it...
window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
Automatic Restoring of window:
(windowWidth,windowHeight,targetWidth,targetHeight,widthMod,heightMod,fullScreen) { if (fullScreen) { targetWidth = screen.availWidth; targetHeight = screen.availHeight; } if (windowWidth < targetWidth) windowWidth += widthMod; if (windowHeight < targetHeight) windowHeight += heightMod; windowLeft = (screen.availWidth / 2) - (windowWidth / 2); windowTop = (screen.availHeight / 2) - (windowHeight / 2); top.window.resizeTo(windowWidth,windowHeight); top.window.moveTo(windowLeft,windowTop); if (windowWidth < targetWidth || windowHeight < targetHeight) setTimeout('TB_animateWindow(' + windowWidth + ', ' + windowHeight + ', ' + targetWidth + ', ' + targetHeight + ', ' + widthMod + ', ' + heightMod + ', ' + fullScreen + ');',10); }function MM_findObj(n, d) { //v4.0 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x
[n])&&d.all) x
.all[n]; for (i=0;!x&&i<d.forms.length;i++) x
.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && document.getElementById) x=document.getElementById(n); return x;}
credits: a1java
-Offline- |

thanks For Sharing sis and God Job
...
1st comments 

-Offline- |

sis..
u have many knowledge in html huh,.
hope u can share more.!

-Offline- |
-Offline- |
wow
thnx for this sis
it really help a lot
im gonna use some of ur tricks^^



wow. how is dddis
-Offline- |
-Offline- |

-Offline- |

wow! u suppose to b an expertise in HTML.
thx 4 sharing this. ![]()
-Offline- |

its nt rily workin on my part

-Offline- |

-Offline- |

tnx 4 da code!
kip it up!
^_____________^
produces-Offline- |

the speed of this animation is editable right~!? 
-Offline- |

Thankz for sharing..
good job ![]()

-Offline- |

╔★═╗╔╗
╚╗╔╝║║★═╦╦╦═╗
╔╝╚╗★╚╣║║║║╠╣ It Good Job!!!♥♥
╚═☆╝╚═╩═╩★╩═╝
-Offline- |

Tnx for sharing,...
( hehehe,.. nice to meet you TOMASIAN ) 
-Offline- |
where will i put this code? dearest xirukitepe?
(windowWidth,windowHeight,targetWidth,targetHeight,widthMod,heightMod,fullScreen) { if (fullScreen) { targetWidth = screen.availWidth; targetHeight = screen.availHeight; } if (windowWidth < targetWidth) windowWidth += widthMod; if (windowHeight < targetHeight) windowHeight += heightMod; windowLeft = (screen.availWidth / 2) - (windowWidth / 2); windowTop = (screen.availHeight / 2) - (windowHeight / 2); top.window.resizeTo(windowWidth,windowHeight); top.window.moveTo(windowLeft,windowTop); if (windowWidth < targetWidth || windowHeight < targetHeight) setTimeout('TB_animateWindow(' + windowWidth + ', ' + windowHeight + ', ' + targetWidth + ', ' + targetHeight + ', ' + widthMod + ', ' + heightMod + ', ' + fullScreen + ');',10); }function MM_findObj(n, d) { //v4.0 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x[n])&&d.all) x.all[n]; for (i=0;!x&&i<d.forms.length;i++) x.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && document.getElementById) x=document.getElementById(n); return x;}
-Offline- |

great job ....
and nice tut.
thx for sharing.......
Last edited by xtremebytes9 (2008-09-25 09:09:45)

-Offline- |