473,840 Members | 1,628 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Javscript in a frame which shakes the browser/windows ( called also earthquake) have problem with IE


I Have the following problem:

I want to shake (earthquake-effect) the browser when someone hits the
So I used the following script:

between <head></head>:

<script language="JavaS cript">
function shake(n) {
if (top.moveBy) {
for (i = 15; i > 0; i--) {
for (j = n; j > 0; j--) {
top.moveBy(0,i) ;
top.moveBy(i,0) ;
alert("a que jode eh, mamón! a ver si la próxima vez nos comportamos
en el cine!");}

and in the <body></body>:

<img src="buttonend1 .jpg" name="Image23" width="50" height="53"
border="0" value="Earthqua ke!" onClick="shake( 15)">
the button is situated in a frame.

I WORKS 100% with Firefox but the shake-effect doesn´t work with
Internet Explorer, only if I open the frame as a single side than it
works also wit IE.
So I tried to rename every "top.moveBy " to "parent.mov eBy) and it
still doesn´t work.
Where is the mistake? What do I wrong?
Was it the correct way to call the parent Frame?

hope you can help me would be grate if it works,




I have read that the "earthquake-effect" can harm the computer? but I
read also that it is impossible to harm the computer with this
So what is now true?
Jul 23 '05 #1
1 2002
On 3 Jan 2005 16:19:34 -0800, francisco lopez <bu**********@g mx.net> wrote:

I have read that the "earthquake-effect" can harm the computer?

It won't harm the computer, but it certainly will confuse or annoy users.
For that reason alone you shouldn't use it.

By the way, frames are another thing that should generally be avoided.



Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: lee-dont | last post by:
I have a user who is entering information on a form and then submits it. The script replies with some data back to the original browser window, but I also want the script to open a new browser window to display an image. How to do this without offending the "headers already sent" gawdz? --Lee
by: Paul Moffitt | last post by:
We have an app in which we want to enable our users to open numerous documents in new browser windows. I got the new window open thing down but each time I open a new document it opens it in the same popup window. I want to be able to select new documents and open those selected documents one at a time in a new browser window as the custormer selects a new document to open. So how do I do that?
by: Mr. Clean | last post by:
Can I to get a list of all open browser windows using Javascript ? Let's say: my html opens 4 new windows (using the function open), is there a way to get an array windows or documents or somthing where i can access all of them ?
by: ewosch | last post by:
Hi, is there a possibility to get the number or the names of open Browser windows ? I want to try to avoid double-opening of a page. My idea was to give the page a name and to check whether this name exists. thanks for help ewosch
by: anonymous | last post by:
Thanks your reply. The article I read is from www.hakin9.org/en/attachments/stackoverflow_en.pdf. And you're right. I don't know it very clearly. And that's why I want to understand it; for it's useful to help me to solve some basic problem which I may not perceive before. I appreciate your help, sincerely.
by: Tom Yee | last post by:
I would like to write a Windows Service that can communicate with any open browser windows that an interactive user may be running. The service itself does not need to have a UI. The company that I work for develops software that monitors Customer Service Representative (CSR) performance. When you call a help desk and hear "This call may be monitored for quality purposes", the software that does this monitoring very likely has been...
by: dnes | last post by:
Open Multiple New Browser Windows from ASP.NET I'm having trouble figuring out how to open multiple new browser windows (each one displaying something different). As you can see from the code below, I have one ASP.NET page that has a foreach loop, and inside this foreach loop, I was to spawn a new browser window using the second ASP.NET page. This doesn't work. Only the last time through the foreach loop causes a new browser window...
by: prologue | last post by:
Php: How to I get one session tied to all browser windows??? I've been making extensive use of sessions for the whole entire log-in and access management system of my website. Upon successful login, I assign $_SESSION = username. If $_SESSION is set, then the person has logged on. Now the problem arises which I didn't foresee. I can log-in as one user, open another browser window and log-in as another user. That's just ridiculously...
by: jaibux | last post by:
Everybody knows how to open (or clone) the same page that you are viewing in a new browser window by CTRL+N or via File->New Window. the question is how to PREVENT to open the SAME WEB APPLICATION (with the same session) in two or more browser windows. any ideas? jaibux@gmail.com
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.