473,564 Members | 2,749 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

document.getEle mentById(toggle[i]) has no properties

2 New Member
I'm getting an error message in FF2.0:

document.getEle mentById(toggle[i]) has no properties

The goal of the script is, when I hover my mouse over an image, to make one div element visible while making all the others div elements in the array, hidden.

thisDocId is the element to avoid hiding.

This is the script:
[HTML]<script>
function makeHidden(this DocId) {
var toggle = new Array();
toggle[0] = "about_us";
toggle[1] = "merchants" ;
toggle[2] = "associatio ns";
toggle[3] = "consumers" ;
toggle[4] = "newsandevents" ;

for (i=0;i<toggle.l ength;i++) {
if (toggle[i] != thisDocId) {
document.getEle mentById(toggle[i]).visibility="h idden";
}
}
} //end makeHidden function
</script>[/HTML]

This is part of the HTML:
[HTML]<a href="aboutus.h tml"><img src="images/H0m2.jpg" alt="" name="Image2" align="top" onmouseover='do cument.getEleme ntById("about_u s").visibility= "visible"; makeHidden("abo ut_us");' /></a>[/HTML]

So the idea is to display a <div> menu while toggling the other menus to "hidden";
Jan 19 '08 #1
1 1949
swiftouch
2 New Member
I figured it out.

The problem code:

Expand|Select|Wrap|Line Numbers
  1. document.getElementById('about_us').visibility='visible';
The solution code:

Expand|Select|Wrap|Line Numbers
  1. document.getElementById('about_us').style.visibility='visible';
I left out style.

Funny how that took me 45 minutes to see. ARRRG!
Jan 19 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1883
by: CJ | last post by:
Hi In my PHP script I'm able to update bookmarks without in hassles but document properties just don't work! I know in VB custom properties can be changed with the following: wdApp.ActiveDocument.CustomDocumentProperties(MyProperty) = "NewValue"
3
1823
by: StrongBad | last post by:
Does anyone know of a way to access the document properties of an office document using ASP? I need to be able to read things like the Title, Author, and Comments fields and pull that information into a web page. Any help is greatly appreciated. Thanks!! Eric
1
2135
by: Patrick Conway | last post by:
Hi! I'm building a Windows form that allows users to view a list of files (and their properties(metadata)) stored in a certain directory. All of the files in the directory are a result of a mail merge created in another process. In the Merge process, I used "BuiltInDocumentProperties"
0
939
by: clintonG | last post by:
Does somebody have code or documented methodology that will audit controls in the framework to generate the names and values for the properties each control uses? <%= Clinton Gallagher METROmilwaukee (sm) "A Regional Information Service" NET csgallagher AT metromilwaukee.com URL http://metromilwaukee.com/ URL...
0
1448
by: Alan T | last post by:
I have modified custom properties of a Word document by code. And there are fields in this Word document link to the properties, however, after running the application and reopen the document, the field values are still the old value until I right click the field and select 'Update field', then the new value will populate the field.
4
1278
by: Morgan | last post by:
Hello! I'm trying to find out if it's possible to access the properties of an document uploaded via the fileupload control? The end goal is to dynamically insert the number of pages in a document into a database field when the file is uploaded, along with the filename and mime property. TIA! -- Morgan Web Developer
0
1118
by: Support | last post by:
Hello: Apparently we can read and write to Document Properties using Dsofile.dll (seel http://support.microsoft.com/?id=224351) My question is: can this be extended to non-native Microsoft files. For example, tiff files. And if so, what should I look for in VB.NET to read and write to those fileds
3
5926
by: Maurizio | last post by:
I create an application with Access 2000 and I wish to read/write the properties of a specified word document. I use dsofile.dll my code is Function fGetDocProps(strInFile As String, strProp As String) Dim objWord As Object, objDocProps As Object On Error GoTo Err_fGetDocProps Set objWord = CreateObject("Word.Application") ...
0
1387
by: hannahhhh1056 | last post by:
Hello! I´m trying to create a makro that finds the text in a wddocument formatted as "heading 1" and then puts it in the document properties. I know how to get the text into doc properties but i see more problems when i try to find the text formatted as heading. As you see below i will have the headingtext as a string and just put in document...
0
7584
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...
1
7644
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...
0
7951
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...
0
6260
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...
1
5484
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...
0
5213
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...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1201
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
925
bsmnconsultancy
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...

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.