|
|
|
|
![]() ![]() |
Mar 22 2006, 05:34 PM
Post
#1
|
|
|
Member [ Level 2 ] 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 |
|
|
|
Mar 22 2006, 09:11 PM
Post
#2
|
|
|
'Prentice de-Zighner 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"?
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! 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. |
|
|
|
Nov 3 2007, 06:20 AM
Post
#3
|
|
|
Member - Active Contributor 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 |
|
|
|
Nov 3 2007, 07:27 AM
Post
#4
|
|
|
Oh come on Mrs. B! 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. |
|
|
|
Nov 3 2007, 07:45 AM
Post
#5
|
|
|
the Q 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
|
|
|
|
Nov 4 2007, 10:32 AM
Post
#6
|
|
|
Way Out Of Control - You need a life :) Group: [HOSTED] Posts: 1,010 Joined: 2-August 05 From: Kapellen (Antwerp, Belgium) Member No.: 7,585 |
Nice gimmick, but useless and annoying imho
|
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 30th August 2008 - 04:06 AM |