Hey all:
I have a very simple script that changes an image when the user
'OnMouseOver's it. it works without a problem, but the progress bar at
the bottom of the browser window reappears with the change in image,
and never finishes or goes away. When the page initially loads the
progress bar completes and disappears.
To change to image I am re-assigning it's .src
I am new to javscript, so I apologize if this is a FAQ, but I've
googled and couldn't find an answer.
-cjl 2 1487
Charlie wrote on 29 okt 2004 in comp.lang.javas cript: I have a very simple script that changes an image when the user 'OnMouseOver's it. it works without a problem, but the progress bar at the bottom of the browser window reappears with the change in image, and never finishes or goes away. When the page initially loads the progress bar completes and disappears.
To change to image I am re-assigning it's .src
I am new to javscript, so I apologize if this is a FAQ, but I've googled and couldn't find an answer
Without the code, we cannot say. Please copy and pase your javascript code.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress,
but let us keep the discussions in the newsgroup)
Hey:
I think I've figured it out. What I was trying to create was a tab
strip, which responds without reloading the page.
Instead or re-assiging an image '.src' dynamically, I use javascript
to change the CSS style element 'backgroundPosi tion' of the
appropriate DIV, and I changed my image to have all three tab states
(active, hover, inactive) spaced horizontally by an exact number of
pixels (in my case 30).
I respond to onMouseOver, onMouseOut, and onMouseDown by calling a
function that changes the background position of the element.
Example javascript:
function rollOver(tabNam e) {
obj = document.getEle mentsByTagName( "div");
obj[tabName].style.backgrou ndPosition = '-30px opx';
}
Example HTML:
<div id="tab1" onMouseOver="ro llOver('tab1')" >
</div>
Example CSS:
#tab1 {
background: url(tab1.png);
background-position: 0px 0px;
height: 36px;
width: 30px;
}
This seems to work with both Mozilla and IE. I'm not sure if I'm
supposed to put calls to functions directly in the div tag, but it
works great.
Next, I'm figuring out how to alter the 'html' contents of a DIV. I've
seen how to do it with 'innerHTML', and I think I understand the DOM
child thingy, but we'll see.
-cjl This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Aspersion |
last post by:
I'm building an ASP page that has a lot of text and graphics.
There is a calculation facility on the page. The user enters several
numbers in a form and presses a button to see the calculated answer.
The problem is this: when the user presses the Calculate button, the
whole page is reloaded and, on a large page, this is very noticeable.
Is there any way that I can get the calculation done and the result
displayed without reloading...
|
by: Mad Scientist Jr |
last post by:
How do you get a ASP.NET page to return nothing, so the page posting
form data to it doesn't reload?
I have tried all combinations of the following:
Response.SuppressContent = True
Response.BufferOutput = True
Response.Cache.SetNoStore()
|
by: Richard |
last post by:
Hey there,
I have a textbox and a listbox. When a user types a number in the textbox, I
want to get
all the records from a MS Access DB but without reloading the page. I now
have something manual
and a user first must press a button to get the listbox filled with records
but I want to have it done
automaticly without pressing a sumbit button. I know its prolly done with
javascript but thats one thing
|
by: Alex Gurevich |
last post by:
Hi,
I am having very strange problem,
I have Dropdownlist (DDL) with callback function for SelectedIndexChanged
event on asp.net page, which is populated in codebehind Page_OnLoad page.
After postback of the page, througth on click event of a button on the page,
and returning of the page to client side, usually selection of an item in
the DDL trigers reloading of the page but not as a postback.
Afterwads if you select another item in...
|
by: Jorge Luzarraga Castro |
last post by:
Hey,
hope you can help with this. I have an aspx page which contains several User
Control. At the beggining there´s only one visible User Control but after
working with the page additional UC begin showing up which means the page
gets longer so the scroll bar is needed to reach the ones at the bottom. The
problem I have is that when I´m working with the user control at the bottom
of the page and this page needs to be reloaded the...
| |
by: Code Monkey |
last post by:
Is it possible to update a section on a masterpage from a method on a
content page?
Ie; suppose I've got an area on a masterpage which is essentially a
shopping cart which is displayed on everypage (assuming it has items in
it). On an order summary page, I adjust the quantity of certain items.
How would I update the shopping cart contents (price, # of items) which
is located in the masterpage, without reloading the entire page?
|
by: Gummy |
last post by:
Hello,
I created a user control that has a ListBox and a RadioButtonList (and other
stuff). The idea is that I put the user control on the ASPX page multiple
times and each user control will load with different data (locations,
departments, etc.).
|
by: paul |
last post by:
Hi All,
We have a small dilemma. We have the following page:
http://giggsey.com/m00Cow.php (don't ask about the content) that we
want to turn into an interactive application for some new intake
students at our school. However - we want to have multiple client PCs
running a web interface that will allow them to type in their name / a
message, and then this message appears on the "scroller" page, which
will be on a projector.
|
by: henryrhenryr |
last post by:
Appologies for unclear title. I don't really understand the problem I'm facing.
My system: PHP 5.2.1, Win2K, Apache 2, MySQL 5 (local - problem is same on my live site running php 4.3.9, Linux, Apache 2). Various browsers.
No errors are reported (set to ALL and STRICT) with my problem.
To describe the problem a little more:
The symptoms - very slow page load. I can see the page reloading simply by observing the 'progress' bar in...
|
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: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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: 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: 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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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: 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...
| |