eCRATER.com Forum Index

SearchSearch
ProfileProfile
  Log in to check your private messagesLog in to check your private messages   
Log inLog in

Neat Javascript Trick
Goto page 1, 2  Next
 
Post new topic   Reply to topic    eCRATER.com Forum Index -> Lounge
View previous topic :: View next topic  
Author Message
aspencounty



Posts: 815

PostPosted: Mon Mar 30, 2009 12:15 pm    Post subject: Neat Javascript Trick Reply with quote

If you are like me and easily entertained then this simple Javascript "trick" will provide humm, maybe 30 seconds of fun and entrainment.

Here's what to do. Open your Ecrater store. Next remove the URL from the address bar and copy the code snippet below into the address bar and press enter.

javascript:R= 0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI= document.images ; DIL=DI.length; function A(){for(i=0; i<DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=Math. sin(R*x1+ i*x2+x3)* x4+x5; DIS.top=Math. cos(R*y1+ i*y2+y3)* y4+y5}R++ }setInterval('A()',5); void(0)

This will work with most any page that has images.
Back to top
View seller's profile Send private message Visit seller's eCRATER store
acread
moderator


Posts: 11986

PostPosted: Mon Mar 30, 2009 12:30 pm    Post subject: Reply with quote

LOL Thanks aspen, that was fun Laughing
I tried it at eCraters homepage. They have more images than my homepage.

Let's see how Amazon will look.
Back to top
View seller's profile Send private message Visit seller's eCRATER store
maggiethehousecat



Posts: 2401

PostPosted: Mon Mar 30, 2009 1:55 pm    Post subject: Reply with quote

The suspense is killing me. What does it do?
Back to top
View seller's profile Send private message Visit seller's eCRATER store
acread
moderator


Posts: 11986

PostPosted: Mon Mar 30, 2009 2:59 pm    Post subject: Reply with quote

I won't tell Very Happy

Try and see.
Back to top
View seller's profile Send private message Visit seller's eCRATER store
skincareideas



Posts: 367

PostPosted: Mon Mar 30, 2009 5:29 pm    Post subject: Reply with quote

This is fun. Very Happy
Back to top
View seller's profile Send private message Visit seller's eCRATER store
momsretro



Posts: 791

PostPosted: Mon Mar 30, 2009 7:38 pm    Post subject: Reply with quote

It's like magic!

Now write a script where our shops are flooded with rich customers on a buying spree! Laughing
Back to top
View seller's profile Send private message Visit seller's eCRATER store
Periwinkles



Posts: 2908

PostPosted: Mon Mar 30, 2009 7:43 pm    Post subject: Reply with quote

I don't know what it's supposed to do but it just made my browser shut down. What is it supposed to do?
Back to top
View seller's profile Send private message Visit seller's eCRATER store
SheilaDeesPostcards



Posts: 3980

PostPosted: Mon Mar 30, 2009 8:28 pm    Post subject: Reply with quote

Well that was amazing! Thanks Aspen.

Now, about MomsRetro's request ... be sure to let us know when you find That script. Very Happy
Back to top
View seller's profile Send private message Visit seller's eCRATER store
acread
moderator


Posts: 11986

PostPosted: Mon Mar 30, 2009 8:47 pm    Post subject: Reply with quote

Periwinkles wrote:
I don't know what it's supposed to do but it just made my browser shut down. What is it supposed to do?

If we tell you, it won't be as much fun for others.
Just try a different browser, if you have one. If not I'll pm you.
Back to top
View seller's profile Send private message Visit seller's eCRATER store
NuthinbutSTUFF



Posts: 48

PostPosted: Tue Mar 31, 2009 7:38 am    Post subject: Reply with quote

Ha! yeah, I'm easily amused! Loved it! The more you press enter, the ...... .. ..... all over ... ......! Thanks for the laugh, made my day!
Back to top
View seller's profile Send private message Visit seller's eCRATER store
topupwireless



Posts: 10

PostPosted: Wed Apr 01, 2009 4:39 am    Post subject: Reply with quote

Thanks that was awsome! I would love to learn to do something like that on my myspace.
Back to top
View seller's profile Send private message Visit seller's eCRATER store
jjseuts



Posts: 1148

PostPosted: Wed Apr 01, 2009 8:18 am    Post subject: Reply with quote

Surprised Surprised Very Happy Very Happy Surprised Surprised

OOOooooohhhh!

That was cute. Give us some more tricks to do
. Very Happy
Back to top
View seller's profile Send private message Visit seller's eCRATER store
kawaiierasers



Posts: 19

PostPosted: Wed Apr 01, 2009 12:00 pm    Post subject: Reply with quote

Neat!!!!
Back to top
View seller's profile Send private message Visit seller's eCRATER store
aspencounty



Posts: 815

PostPosted: Wed Apr 01, 2009 1:35 pm    Post subject: Reply with quote

Don't know if you noticed but if you click on a category image the link still works. Of course it's darn near impossible...at least it is for me.

You can slow thing down however. Here's a hint: the interval is set to 5 and the greater the number the slower things move. If I increase the interval x 20, I can click an image with a little effort.
Back to top
View seller's profile Send private message Visit seller's eCRATER store
Books2Read



Posts: 447

PostPosted: Wed Apr 01, 2009 2:15 pm    Post subject: Reply with quote

Oh Wow! That is totally awesome, dude. Smile
Back to top
View seller's profile Send private message Visit seller's eCRATER store
Display posts from previous:   
Post new topic   Reply to topic    eCRATER.com Forum Index -> Lounge
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum