473,772 Members | 3,752 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

over has no properties

here's some more code i inherited on a project:

function set_background( pic){
if(pic==""){
if(ie4)over.bac kgroundImage="n one";
if(ns6)over.sty le.backgroundIm age="none";
}else{
if(ns4){
over.background .src=pic;
}else if(ie4){
over.background Image="url("+pi c+")";
}else if(ns6){
over.style.back groundImage="ur l("+pic+")";
}
}
}

i'm getting an error that says "over has no properties" when i look at
this in firefox. is this the wrong syntax for over
Oct 17 '05 #1
2 1394

Matt wrote:
here's some more code i inherited on a project:

function set_background( pic){
if(pic==""){
if(ie4)over.bac kgroundImage="n one";
if(ns6)over.sty le.backgroundIm age="none";
}else{
if(ns4){
over.background .src=pic;
}else if(ie4){
over.background Image="url("+pi c+")";
}else if(ns6){
over.style.back groundImage="ur l("+pic+")";
}
}
}

i'm getting an error that says "over has no properties" when i look at
this in firefox. is this the wrong syntax for over


The syntax is correct. However, what I would like to know is what is
"over" referencing to? From the looks of all that you gave, over is a
global variable. Has "over" been assigned something in the global
scope? Double check to make sure "over" is referencing something.

Oct 17 '05 #2
Matt wrote :
here's some more code i inherited on a project:

function set_background( pic){
if(pic==""){
if(ie4)over.bac kgroundImage="n one";
I doubt IE4 supports background-image anyway
if(ns6)over.sty le.backgroundIm age="none";
}else{
if(ns4){
over.background .src=pic;
}else if(ie4){
over.background Image="url("+pi c+")";
I doubt IE4 supports background-image anyway
}else if(ns6){
over.style.back groundImage="ur l("+pic+")";
}
}
}

i'm getting an error that says "over has no properties" when i look at
this in firefox. is this the wrong syntax for over


You need to define the id attribute for such element. Then you can
access such element with document.getEle mentById: this creates a
reference to a scriptable node.

e.g.:

var ElementReferenc e = null;

ElementReferenc e = document.getEle mentById("over" );

More on this and other issues:

Using Web Standards in Your Web Pages
http://www.mozilla.org/docs/web-deve...tml#dom_access

Gérard
--
remove blah to email me
Oct 17 '05 #3

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

Similar topics

4
1757
by: marcus | last post by:
Hi <xml>Gurus</xml> :-) I've a scenario where the system configuration is maintained in the server as xml dom tree. clients can change the system config either entirely or in parts. when the client wishes to change it entirely, the new domtree would be sent to server. OTOH, if the client wishes to change only partial config, she would send the subtree xml that needs change. in the following scenario: <system>
8
6557
by: Stevio | last post by:
This is perhaps a bit off topic for this group, but I am using Internet Explorer 6 and I have noticed recently that when I hold the mouse over an image the Alt text is not displayed like it used to be. Does anyone know why this is and how I can fix it so that the Alt text is displayed? Thanks, Stephen
2
1272
by: Matt | last post by:
here's some more code i inherited on a project: function set_background(pic){ if(pic==""){ if(ie4)over.backgroundImage="none"; if(ns6)over.style.backgroundImage="none"; }else{ if(ns4){ over.background.src=pic; }else if(ie4){
0
1095
by: Josh | last post by:
Hi, I am trying to capture the MouseDown event over a 3rd-party control (a streaming video screen). I am trying to draw a rubberbanding rectangle over an area of the streaming screen (which is refreshing slowly). When I drag and stretch a rectangle starting on the form, I can pass it over the streaming screen. However, I cannot start a
2
1883
by: | last post by:
I'm writing web applications. I build and extend a lot of custom objects, and in the course of debugging my apps I invariably find myself writing a lot of junky code: Response.Write("Title: " + uwtm.Title + "<br>"); Response.Write("Pubdate: " + uwtm.Pubdate + "<br>"); Response.Write("Byline String: " + uwtm.Byline + "<br>"); Response.Write("Order (converted): " + uwtm.Order + "<br>"); Response.Write("Body:" + uwtm.Body + "<br>");...
5
3948
by: campbellbrian2001 | last post by:
I'm trying to get the "Carry data over to new record" code to work from Allen Browne's site: http://allenbrowne.com/ser-24.html I follwed the instruction explicitly and somethings not working... any clues? Thanks all!! Brian
2
1237
by: wapsiii | last post by:
From my database layer I get the object oUser. How do I iterate over every property in oUser? something like for each prop as oUserProperty in oUser.Properties do something... next Mort
7
21822
by: moondaddy | last post by:
in asp.net 2.0, i have a link buttonand want to change the forecolor in a mouse over event. how can I do this? -- moondaddy@noemail.noemail
24
8227
by: Jeremy J Starcher | last post by:
While reading c.l.j, I've noticed that some people prefer and indeed even recommend the use of "window.alert()" over "alert()". I can't find any technical reason to make this distinction, and seems to have a (tiny) amount overhead since window itself points to the global object, hence, a circular reference. (From everything I am reading, window is just a REFERENCE back to the global object, as opposed to a separate object.)
0
9620
marktang
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...
0
10104
jinu1996
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...
1
10038
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,...
0
9912
tracyyun
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...
0
8934
agi2029
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...
1
7460
isladogs
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...
0
6715
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();...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
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.