Dynamic Profile Codes
Would you like to react to this message? Create an account in a few clicks or log in to continue.

floating images

+5
Kira
XED
MhingMhengXD
Patrick
danielvicedo
9 posters

Go down

floating images Empty floating images

Post by danielvicedo Sat Oct 17, 2009 1:21 pm

no preview.. :(
sorry.

CREDITS: DYNAMIC DRIVE

Code:
/***********************************************
* Floating image script- By Virtual_Max (http://www.geocities.com/siliconvalley/lakes/8620)
* Modified by Dynamic Drive for various improvements
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/


var vmin=2;
var vmax=5;
var vr=2;
var timer1;

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function Chip(chipname,width,height){
 this.named=chipname;
 this.vx=vmin+vmax*Math.random();
 this.vy=vmin+vmax*Math.random();
 this.w=width+20;
 this.h=height;
 this.xx=0;
 this.yy=0;
 this.timer1=null;
}

function movechip(chipname){
if (document.getElementById){
eval("chip="+chipname);
  if (window.innerWidth || window.opera){
       pageX=window.pageXOffset;
    pageW=window.innerWidth-40;
    pageY=window.pageYOffset;
    pageH=window.innerHeight-20;
    }
  else if (document.body){
       pageX=iecompattest().scrollLeft;
    pageW=iecompattest().offsetWidth-40;
    pageY=iecompattest().scrollTop;
    pageH=iecompattest().offsetHeight-20;
    }

  chip.xx=chip.xx+chip.vx;
  chip.yy=chip.yy+chip.vy;
 
  chip.vx+=vr*(Math.random()-0.5);
  chip.vy+=vr*(Math.random()-0.5);
  if(chip.vx>(vmax+vmin))  chip.vx=(vmax+vmin)*2-chip.vx;
  if(chip.vx<(-vmax-vmin)) chip.vx=(-vmax-vmin)*2-chip.vx;
  if(chip.vy>(vmax+vmin))  chip.vy=(vmax+vmin)*2-chip.vy;
  if(chip.vy<(-vmax-vmin)) chip.vy=(-vmax-vmin)*2-chip.vy;

  if(chip.xx<=pageX){
         chip.xx=pageX;
      chip.vx=vmin+vmax*Math.random();
    }
  if(chip.xx>=pageX+pageW-chip.w){
         chip.xx=pageX+pageW-chip.w;
      chip.vx=-vmin-vmax*Math.random();
    }
  if(chip.yy<=pageY)
    {chip.yy=pageY;
      chip.vy=vmin+vmax*Math.random();
    }
  if(chip.yy>=pageY+pageH-chip.h)
    {chip.yy=pageY+pageH-chip.h;
      chip.vy=-vmin-vmax*Math.random();
    }

document.getElementById(chip.named).style.left=chip.xx+"px";
document.getElementById(chip.named).style.top=chip.yy+"px";


  chip.timer1=setTimeout("movechip('"+chip.named+"')",100);
  }
}

compile it in JS form then here you go. XD
danielvicedo
danielvicedo
DPC Freak

Male
Posts : 1078
Age : 29
Joined date : 2009-10-16
Location : under my bebe's bed. :)
Cash : 28323

http://danielvicedo.tk

Back to top Go down

floating images Empty Re: floating images

Post by Patrick Sat Oct 17, 2009 6:53 pm

nice. thanks for this. :]
Patrick
Patrick
DPC Elite

Male
Posts : 4574
Age : 29
Joined date : 2009-10-13
Location : Molino, Bacoor, Cavite, Philippines
Cash : 2147510242

http://akosipat.co.cc

Back to top Go down

floating images Empty Re: floating images

Post by danielvicedo Sat Oct 17, 2009 10:35 pm

your welcome Patrick.. XD
danielvicedo
danielvicedo
DPC Freak

Male
Posts : 1078
Age : 29
Joined date : 2009-10-16
Location : under my bebe's bed. :)
Cash : 28323

http://danielvicedo.tk

Back to top Go down

floating images Empty Re: floating images

Post by MhingMhengXD Tue Oct 20, 2009 2:48 pm

waaaaaaaaaaaa--- what`s that?
(can't relate:()
MhingMhengXD
MhingMhengXD
DPC Elite

Female
Posts : 4895
Age : 29
Joined date : 2009-10-17
Location : sa tabi mo:3
Cash : 28457

http://friendster.com/purteenxd

Back to top Go down

floating images Empty Re: floating images

Post by XED Thu Oct 22, 2009 7:28 pm

tnx for this.
XED
XED
Global Moderator
 Global Moderator

Male
Posts : 6137
Age : 114
Joined date : 2009-10-22
Location : sa bag mo :]]
Cash : 32117

Back to top Go down

floating images Empty Re: floating images

Post by Kira Thu Oct 22, 2009 10:08 pm

we can't attach dis in our profile
cause we haven't solution.
Kira
Kira
DPC Geek

Female
Posts : 655
Age : 29
Joined date : 2009-10-10
Location : Laguna?
Cash : 28365

http://www.dynamicprofilecodes.com/

Back to top Go down

floating images Empty Re: floating images

Post by MoiMoi<3 Tue Oct 27, 2009 8:57 pm

i saw this a million times bepor. ::
&& MR. Pls provide credit when posting a code.
ghet it? got it.
MoiMoi<3
MoiMoi<3
DPC Addict

Female
Posts : 218
Age : 31
Joined date : 2009-10-26
Location : yur BF's room
Cash : 27826

Back to top Go down

floating images Empty Re: floating images

Post by danielvicedo Tue Oct 27, 2009 8:59 pm

yea ok. I know it nman. I'm not putting credits 'coz I have changed some parts on my own version. got it?
danielvicedo
danielvicedo
DPC Freak

Male
Posts : 1078
Age : 29
Joined date : 2009-10-16
Location : under my bebe's bed. :)
Cash : 28323

http://danielvicedo.tk

Back to top Go down

floating images Empty Re: floating images

Post by MoiMoi<3 Tue Oct 27, 2009 9:02 pm

only a some of it ln nman e.
yu still need to put credit.
don't inborn wats not yurs.
MoiMoi<3
MoiMoi<3
DPC Addict

Female
Posts : 218
Age : 31
Joined date : 2009-10-26
Location : yur BF's room
Cash : 27826

Back to top Go down

floating images Empty Re: floating images

Post by danielvicedo Tue Oct 27, 2009 9:04 pm

ok. I do, so .. ok na..
danielvicedo
danielvicedo
DPC Freak

Male
Posts : 1078
Age : 29
Joined date : 2009-10-16
Location : under my bebe's bed. :)
Cash : 28323

http://danielvicedo.tk

Back to top Go down

floating images Empty Re: floating images

Post by Russel Tue Oct 27, 2009 9:05 pm

@ chicc. DONE! any problem?
Russel
Russel
Manager
 Manager

Male
Posts : 827
Age : 35
Joined date : 2009-10-06
Location : Batangas, Philippines
Cash : 13576373

http://www.russeltubo.com

Back to top Go down

floating images Empty Re: floating images

Post by Marz Tue Oct 27, 2009 10:57 pm

script is quitely complicated to understand than I've seen some tricks like this before...

@rueniel

Did you change all part..?

cause seems like some script missing.and mostly bout the title floating images
btw: what floating images were suppose to see in this trick, cause I didn't see any image inside the script.

to be honest, I do some testing for this. but seems that it is not working..
maybe conflicts of codes or missing something..

@Russel

Can I share the working widget I am using now to rueniel, so that he can provide some preview and modify his script..
Marz
Marz
DPC Whiz

Male
Posts : 2030
Joined date : 2009-10-17
Location : .
Cash : 242451446

Back to top Go down

floating images Empty Re: floating images

Post by danielvicedo Tue Dec 08, 2009 12:14 am

hmmm @ marz , alam mo naman na hindi ko katayuan ang paggwa ng scripts . sige edit lang ako .
sorry nman na . di mo na ba ko mapaptawad ? hmm . :(

sorry .

edit it nalang sir .
danielvicedo
danielvicedo
DPC Freak

Male
Posts : 1078
Age : 29
Joined date : 2009-10-16
Location : under my bebe's bed. :)
Cash : 28323

http://danielvicedo.tk

Back to top Go down

floating images Empty Re: floating images

Post by jhennyz Sat Mar 06, 2010 7:31 pm

^

how Kyut reaction u did...

hahaha..

ofcourse u can be forgiven..xD



Mr. Marz...

yea.. some codes are missing..

like to where the image url shud be inserted..

lack of instructions indeed..
jhennyz
jhennyz
DPC Addict

Female
Posts : 148
Age : 32
Joined date : 2010-03-04
Location : ~NOWHERETOFiND~
Cash : 27551

Back to top Go down

floating images Empty Re: floating images

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum