# Shake Browser

**URL:** <https://forum.kirupa.com/t/shake-browser/8217>\
**Category:** flash\
**Created:** [November 15, 2002, 11:44pm UTC](https://forum.kirupa.com/t/shake-browser/8217 "2002-11-15T23:44:25Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Condor182](https://avatars.discourse-cdn.com/v4/letter/c/f4b2a3/32.png) [@Condor182](https://forum.kirupa.com/u/Condor182)\
**Post date:** [November 15, 2002, 11:44pm UTC](https://forum.kirupa.com/t/shake-browser/8217/1 "2002-11-15T23:44:25Z")

</div>

Hey I want to know how to make the browser shake?  
I know it’s something like shakexy…but I don’t get it.  
Can someone tell me exactly how to do this??  
I have made a movie and want on some particular frames the browser to shake.  
Help :-\<  
Thnx

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2002, 12:11am UTC](https://forum.kirupa.com/t/shake-browser/8217/2 "2002-11-16T00:11:18Z")

</div>

It is much more difficult then just shake(x,y).

I am sure you can find a script for it at [www.dynamicdrive.com](http://www.dynamicdrive.com) or [www.javascriptkit.com](http://www.javascriptkit.com) or [www.a1javascripts.com](http://www.a1javascripts.com)

I am really pressed for time and I can’t type one up right now.

Also, I believe [www.flashkit.com](http://www.flashkit.com) has a tutorial on it, not sure though.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2002, 7:13am UTC](https://forum.kirupa.com/t/shake-browser/8217/3 "2002-11-16T07:13:54Z")

</div>

Put this code on ur HTML:

```auto

function terremoto(x) { 
	brie4 = (navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4); 
	if (brie4) { 
		for (i = 5; i > 0; i--) { 
			for (j = x; j > 0; j--) { 
				self.moveBy(0,i); 
				self.moveBy(i,0); 
				self.moveBy(0,-i); 
				self.moveBy(-i,0); 
			} 
		} 
	} 
}

```

and on ur flash button:

```php
myButton.onRelease = function(){
getURL("java script:terremoto(4);")
}

```

Hope this helps!

yours,  
h88

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2002, 7:39am UTC](https://forum.kirupa.com/t/shake-browser/8217/4 "2002-11-16T07:39:18Z")

</div>

Hey lost,

why dont u move this thread to serverside/scripting forum?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2002, 7:50am UTC](https://forum.kirupa.com/t/shake-browser/8217/5 "2002-11-16T07:50:56Z")

</div>

Yeah I should, I am moving it now…

I neglected to check the section it was in so I didn’t realize it was in MX.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 11, 2002, 11:04pm UTC](https://forum.kirupa.com/t/shake-browser/8217/6 "2002-12-11T23:04:46Z")

</div>

All the tutorials I’ve seen on the recommended sites reference a script that has the viewer cliking a button before the browser will shake. I’m looking for a script that does exactly what Condor182 was referencing—having the browser shake at a certain frame in the movie. Any helpp would be appreciated.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 12, 2002, 1:15pm UTC](https://forum.kirupa.com/t/shake-browser/8217/7 "2002-12-12T13:15:50Z")

</div>

did’nt u c the script above?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 13, 2002, 6:30am UTC](https://forum.kirupa.com/t/shake-browser/8217/8 "2002-12-13T06:30:37Z")

</div>

This script requires the user to depress a button; is there a script that would shake the browser at a certain point in the timeline in the SWiSH movie?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 13, 2002, 6:45am UTC](https://forum.kirupa.com/t/shake-browser/8217/9 "2002-12-13T06:45:15Z")

</div>

just call the script with an enter frame command

Peace

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 13, 2002, 3:40pm UTC](https://forum.kirupa.com/t/shake-browser/8217/10 "2002-12-13T15:40:39Z")

</div>

That’s a bit over my head; could you give an example of that?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 13, 2002, 6:40pm UTC](https://forum.kirupa.com/t/shake-browser/8217/11 "2002-12-13T18:40:38Z")

</div>

Did’nt work with swish before. :-\

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 13, 2002, 8:02pm UTC](https://forum.kirupa.com/t/shake-browser/8217/12 "2002-12-13T20:02:32Z")

</div>

ahhhh… totally missed the fact that he was trying with Swish…hmmm sorry buddy.

Peace

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 14, 2002, 7:10am UTC](https://forum.kirupa.com/t/shake-browser/8217/13 "2002-12-14T07:10:14Z")

</div>

if you wanna do it with flash I’d gladly help you out.

Peace

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 16, 2002, 10:53pm UTC](https://forum.kirupa.com/t/shake-browser/8217/14 "2002-12-16T22:53:22Z")

</div>

I just got it to work using Swish, but it will only work when you export to HTML, then you have to FTP the .swf and .html files to your server. I’d like to know if it can work in Flash; that is, would the Javascript work in the Flash player window?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 16, 2002, 10:54pm UTC](https://forum.kirupa.com/t/shake-browser/8217/15 "2002-12-16T22:54:27Z")

</div>

No, the javascript calls upon a function that the browser itself interprets.

So using this code in the stand alone player will not work.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 16, 2002, 11:29pm UTC](https://forum.kirupa.com/t/shake-browser/8217/16 "2002-12-16T23:29:22Z")

</div>

> \*Originally posted by lostinbeta \*  
> \*\*No, the javascript calls upon a function that the browser itself interprets.

So using this code in the stand alone player will not work. \*\*  
… exactly

Plus your not shaking the flash movie - really youre shaking the browser window… so as lost said - se la vi - you just gotta upload it…

Peace\<:}
