FTalk

FTalk

Welcome guest! Please Login or Register.

#1  2008-08-17 06:56:02

---xXirukiTepe---
---xXirukiTepe---'s display avatar
» SuperFTalker
FTalk Level: 5
Everyone ♥♥♥ Me!Topic InitiatorTop PosterSome FTalkers ♥ My Threads!
Anadipsic en Sarcophilous
KARAKURA TOWN
11014
1302
Website

Window Javascript Animation

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 :D

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=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.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

                    

aLeckS14[?] likes this topic.

#2  2008-08-17 08:56:49

lilyan
 Sysiel Oktaviana
lilyan's display avatar
» FTalker
FTalk Level: zero
ღ sister twin's ღ
No Maden Only
286
14
2009-04-25
Website

Re: Window Javascript Animation

thanks For Sharing sis and God Job :thumbsup:...
1st comments :lol:


#3  2008-08-17 10:33:57

shia chan
 ZSHiA
shia chan's display avatar
» FTalkManiac
FTalk Level: zero
just compramising!~ XD
Barkada Trip
konohagakure
652
56
2009-11-02
Website

Re: Window Javascript Animation

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

#4  2008-08-18 03:58:15

---xXirukiTepe---
---xXirukiTepe---'s display avatar
» SuperFTalker
FTalk Level: 5
Everyone ♥♥♥ Me!Topic InitiatorTop PosterSome FTalkers ♥ My Threads!
Anadipsic en Sarcophilous
KARAKURA TOWN
11014
1302
Website

Re: Window Javascript Animation

^yea. thanks thanks...sis...

#5  2008-08-18 04:26:14

natzin25
 Natzin
natzin25's display avatar
» FTalkManiac
FTalk Level: zero
i am who i am
Otakus society
darkness
730
143
Website

Re: Window Javascript Animation

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



#6  2008-08-19 07:58:27

Inukira
 Hanson
» FTalker
FTalk Level: zero
ayoko na!
Barkada Trip
Bulacan
175
22
2009-03-27

Re: Window Javascript Animation

wow. how is dddis


inlove ako sau...............

#7  2008-08-19 09:16:14

---xXirukiTepe---
---xXirukiTepe---'s display avatar
» SuperFTalker
FTalk Level: 5
Everyone ♥♥♥ Me!Topic InitiatorTop PosterSome FTalkers ♥ My Threads!
Anadipsic en Sarcophilous
KARAKURA TOWN
11014
1302
Website

Re: Window Javascript Animation

wow thanks ppol...

#8  2008-08-20 13:27:08

leonard021
 ™.:: Virus ::.™
leonard021's display avatar
» FTalker
FTalk Level: zero
™.:: Virus ::.™
Singles Goes HOT!
™.:: Local C ::.™
273
4
2010-01-03
Website

Re: Window Javascript Animation

Thnzz For Sharing







™ .:: Please add me Reputation ::.™

ERASERHEADS

#9  2008-08-20 14:34:23

xPEPPERMINTx
xPEPPERMINTx's display avatar
» Promoter
FTalk Level: 6
Novice PromoterSome FTalkers ♥ Me!
1668
404

Re: Window Javascript Animation

wow! u suppose to b an expertise in HTML.
thx 4 sharing this. :thumbsup:

#10  2008-08-22 11:12:36

---xXirukiTepe---
---xXirukiTepe---'s display avatar
» SuperFTalker
FTalk Level: 5
Everyone ♥♥♥ Me!Topic InitiatorTop PosterSome FTalkers ♥ My Threads!
Anadipsic en Sarcophilous
KARAKURA TOWN
11014
1302
Website

Re: Window Javascript Animation

thanks so much hehehe

#11  2008-08-23 12:14:06

MONDYking
 monmon
MONDYking's display avatar
» FTalker
FTalk Level: zero
damn
Barkada Trip
my love's kingdom
173
12
2009-03-21
Website

Re: Window Javascript Animation

its nt rily workin on my part


ill wait 4u...


#12  2008-08-30 15:05:36

banoCore
 aLvin
banoCore's display avatar
» FTalker
FTalk Level: zero
Philippines
103
1
2008-10-13
Website

Re: Window Javascript Animation

wow nc trick sis :D


#13  2008-09-04 12:14:59

yana158
 hArUnO sAkUrA
yana158's display avatar
» n00b
FTalk Level: zero
kOnOhA
38
0
2009-08-26
Website

Re: Window Javascript Animation

tnx 4 da code!

kip it up!

^_____________^


produces

#14  2008-09-14 12:03:51

ravenum008
 Jamhel Segundo
ravenum008's display avatar
» FTalker
FTalk Level: zero
HIT me? BITE you~
Maingay na Kasambahay!!
Rizal
226
7
2010-01-14
Website

Re: Window Javascript Animation

the speed of this animation is editable right~!? :P


#15  2008-09-15 09:50:46

ammar1408
 ElectroStatiC
ammar1408's display avatar
» FTalkWhiz
FTalk Level: 3
Destroy De Enemy
Friendstertalk University
Earth
2920
132
2010-03-12
Website

Re: Window Javascript Animation

Thankz for sharing..

good job :thumbsup:


#16  2008-09-21 02:49:43

~~merwinlloyd_bagunas~~
 Merwin Lloyd
» Banned
FTalk Level: zero
Novice Promoter
"Lover Boy"
"Kyusi???"
577
18
2008-09-28
Website

Re: Window Javascript Animation

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

#17  2008-09-24 04:43:07

miztahz
 Im the man without clothes
miztahz's display avatar
» FTalkManiac
FTalk Level: zero
Hello! ^,~!
Manila,.
679
17
2010-02-12
Website

Re: Window Javascript Animation

Tnx for sharing,... :thumbsup:



:penguin: ( hehehe,.. nice to meet you TOMASIAN ) :penguin:


x---------------------------x
i cant live without you!
x---------------------------x

#18  2008-09-25 03:36:09

hallare31
» n00b
FTalk Level: zero
1
0
2008-10-07

Re: Window Javascript Animation

where will i put this code? dearest xirukitepe?

Code:

(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;}

#19  2008-09-25 09:08:35

xtremebytes9
 hervie~
xtremebytes9's display avatar
» FTalkWhiz
FTalk Level: 7
Still Alive & Kickin'Subscriber
ready for duty... :D
Cbox XD
2898
169
Website

Re: Window Javascript Animation

great job ....
and nice tut.
thx for sharing.......

Last edited by xtremebytes9 (2008-09-25 09:09:45)



If I give you my heart
Please don't tear it apart
'Cause this heart is for you  :heart2:

#20  2008-09-25 09:16:02

---xXirukiTepe---
---xXirukiTepe---'s display avatar
» SuperFTalker
FTalk Level: 5
Everyone ♥♥♥ Me!Topic InitiatorTop PosterSome FTalkers ♥ My Threads!
Anadipsic en Sarcophilous
KARAKURA TOWN
11014
1302
Website

Re: Window Javascript Animation

^thanks for comment.. :P

Search Friendstertalk

Moderated by Ephemeral, aysbeaux

Board footer

The F Talk dot com
© 2002–2010 PunBB

Current time is 03:04:23 GMT

[ 13 queries - 0.041 second ]
Powered by SyntheticNetwork

FTalk

Welcome to FTalk! You'll need to login in order to fully use all the features and view all the sections of this site.

Please register if you're not yet a member. =)

( hide )