Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Browser Quaker Script - Shock Your Visitors!, this script shakes the browser like a quake happened!
shiv
post Mar 22 2006, 05:34 PM
Post #1


Member [ Level 2 ]
Group Icon

Group: Members
Posts: 53
Joined: 20-March 06
Member No.: 12,139



Browser Quaker! SHOCK your visitors! this script shakes the browser like a quake happened! yeah....try this script to believe it! im sure u will be stunned at the effect! a good way to show your visitor that...your website ROCKS!..and literally so ! ! i got this script from Bravenet's webmaster freebrees newsletter. if you haven't known bravenet before..it is a beginner webmaster's friend! you get lot many features for your website hosted freely. and subscribe to their newsletter to get gems like these!

ok here's the code:
CODE

<script language="JavaScript" type="text/javascript">
function init() {
setTimeout("shake(3)",1000);
setTimeout("this.focus()",4000);
setTimeout("shake(3)",4100);
}
function register()
{
var isAol = "no";
var res = 800;
}
function shake(n) {
if (self.moveBy) {
for (i = 10; i > 0; i--) {
for (j = n; j > 0; j--) {
self.moveBy(0,i);
self.moveBy(i,0);
self.moveBy(0,-i);
self.moveBy(-i,0);
}
}
}
}
a=275;
b=275;
r=20;
x=1;
z=1;

function rotate(r) {
while (z<=3) { for (var i = 0; i <360; i++) { x = (r * Math.cos((i * Math.PI)/180)) + a; y = (r * Math.sin((i * Math.PI)/180)) + b; window.moveTo(x,y); } z+= 1; } setTimeout("shake(3)",10000); } </script>

play around with it and make your website rock!

cheerz!
shiv

This post has been edited by moonwitch: Mar 25 2006, 05:38 PM
Go to the top of the page
 
+Quote Post
techocian
post Mar 22 2006, 09:11 PM
Post #2


'Prentice de-Zighner
Group Icon

Group: Members
Posts: 368
Joined: 23-January 05
From: USA
Member No.: 2,290



Interesting code. I've seen it before but sometimes it gets fairly annoying when everytime you walk into a page and it "rocks"? laugh.gif
Speaking of fancy rocking of webpages, download the latest version of the Comet toolbar, (Yes i know it has spyware but just for a minute or so then scan your computer with ad-aware or something)install it and there's a set of features inside that enable you to do like so many different things to a webpage. There is one that changes the whole page into a WYSIWYG editor and you can change anything in it. I tried it with MSN's and Yahoo!'s webpage and it was fun! wink.gif
This also reminds me of the AOL browser where you get certain features to alter the webpage you're seeing, the one i tried was the upside-down feature which, of course tilts your page upside down and i think your cursor goes too.
Go to the top of the page
 
+Quote Post
Ronel
post Nov 3 2007, 06:20 AM
Post #3


Member - Active Contributor
Group Icon

Group: Members
Posts: 76
Joined: 6-August 07
From: Philippines
Member No.: 23,872



odd...doesn't work?

EDIT: Well it works now...just add this:

HTML
<body onLoad="init()">...</body>


Or a link to shake, rattle and roll when clicking

HTML
<a href="#" onClick="init()>blah!</a>


This post has been edited by Ronel: Nov 3 2007, 06:33 AM
Go to the top of the page
 
+Quote Post
Sten
post Nov 3 2007, 07:27 AM
Post #4


Oh come on Mrs. B!
Group Icon

Group: Members
Posts: 648
Joined: 6-June 07
From: Tasmania, Australia
Member No.: 22,422



i was expecting it do like wot msn messenger does when you nudge someone.

wait dont worry, it works well in internet explorer. its not that brilliant in firefox but anyway.


Go to the top of the page
 
+Quote Post
Quatrux
post Nov 3 2007, 07:45 AM
Post #5


the Q
Group Icon

Group: [HOSTED]
Posts: 1,017
Joined: 13-July 05
From: Lithuania, Vilnius
Member No.: 7,059



Well, this script just did some funny stuff with the window, it doesn't work in Opera, even though I thought I will turn some javascript things on which I have turned off, due to I don't need them, like allow moving of windows biggrin.gif and yeah, doesn't work in Firefox too, at least for me biggrin.gif maybe I also have some settings turned off, I don't see any of point to use this script on a website, unless it is a game or something and seems to work only on Internet Explorer, so its for Explorers biggrin.gif
Go to the top of the page
 
+Quote Post
wutske
post Nov 4 2007, 10:32 AM
Post #6


Way Out Of Control - You need a life :)
Group Icon

Group: [HOSTED]
Posts: 1,010
Joined: 2-August 05
From: Kapellen (Antwerp, Belgium)
Member No.: 7,585



Nice gimmick, but useless and annoying imho cool.gif . It won't work here anyway, I've disabled all javascript options in Opera, damn stupid features rolleyes.gif .
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Javascript: Disable Mouse Right-click In Browser(16)
  2. Need Drop Down Menu Script(1)
  3. Slideshow Of Pictures(0)
  4. Need Opinion - Language Redirection Script...(0)
  5. Let's Make Rainbow Link(1)
  6. Bid Visitors Bye/thank U With A Popup Onunload In Just One Line!(0)
  7. Let Visitors Bookmark Ur Site To Get Repeat Visitors!(1)
  8. Sweet Titles(0)
  9. A Cool Collection Cursor Followers! Excite Your Visitors!(1)
  10. Password Protect Your Page(2)
  11. Calling Of Functions Between Mulitple External Javascript Files(2)
  12. JavaScript: A Welcome To Visitors Script(8)
  13. Javascript: Browser Detection Script(0)
  14. Create And Import JavaScript Modules For A Large Script(2)
  15. JavaScript Off Redirect Script(2)
  1. Enlarge Image Script(19)
  2. One Click To Copy Script(0)
  3. When A User Close The Browser Window(1)
  4. Love Script(3)


 



- Lo-Fi Version Time is now: 30th August 2008 - 04:06 AM