Hi, I want to animate the change of a frames' size. Something like; - for (i=0, i<250, i++)
-
{
-
var aValue = i + "px,*"
-
parent.document.getElementById(whichFrameSet).cols = aValue;
-
}
What I do not understand is why the frame is not updated each and every time the size is set... not until i = 250 it will display the result.
Is it because the frameset is not updated visually when in loop? Or is it just counting to 250 too fast so I need to put a timer here as well?
If I put an alert in the loop, the frame will change each time I click "ok".
Is there any way in js to update the framset visually in a loop?
Thanks in advance!
2 2258
Question moved to more appropriate HTML Forum.
acoder 16,027
Recognized Expert Moderator MVP
This belongs to the JavaScript forum, but anyway...
You need to use setInterval for the animation effect. It's too fast otherwise.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: James Hong |
last post by:
Help please, I try to sending an email from my html page using the java
applet.
but it give error on most of the PC only very few work, what is the error i
make
the java applet show as below
**********************************
package Celcom.Client;
|
by: xmp333 |
last post by:
Hi,
I know the noresize attribute will keep the user from resizing a
frame, but is there a way to keep a frame from being resized by the
browser (in response to things like different layouts/sizes on the
page)?
Basically I want my frame sizes to remain fixed no matter what
happens.
|
by: RWD |
last post by:
I am trying to figure out how to change the target frame in my hyperlink on
a DHTML menu. The menu is in one frame and the target frame is called
"main"
The code is below:
Thanks in advance
RWD
<script type='text/javascript'>
|
by: RC |
last post by:
I know how to do this in JavaScript by
window.open("newFile.html",
"newTarget",
"scrollbars=no,resizable=0,width=200,height=200");
The browser will open a new window size 200x200, not allow resize and
no auto horizontal, vertical scrolling bars.
I am wonder can I do the similar inside a HTML file like
|
by: liqfemail |
last post by:
Below are my source code:
import wx
import wx.html
class MyHtmlFrame(wx.Frame):
def __init__(self, parent, title):
wx.Frame.__init__(self, parent, -1, title, size=(600,400))
html = wx.html.HtmlWindow (self)
| |
by: spiralof5 |
last post by:
Hi. I must first say I'm not an experienced scripter.
Here's my problem and how far I am so far. I struggled for awhile to get the browser to fill most of it with my flash movie and keep it proportional if the user chooses to size up or size down. This pretty much takes care of the browser size complications. Here is original script and it works. But now I have few problems after this.
CODE#1
<!-- masked -->
<html>
<head>...
|
by: Peter Webb |
last post by:
I want to animate one object moving in front of another. I cannot re-render
the background as the object moves, as it would be extremely time consuming.
This is what I would like to do. I draw the background to a Graphics object,
copy it, draw the front object on the original, render it to the screen,
then reload the copy (Clone?) of the background for the next loop.
I couldn't find any way of doing this directly, and if there is I...
|
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: 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: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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: 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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |