Whats wrong with this?
top.document.fr mMain.tabMain.b order = "1";
thanks 9 43526
"Harry" <a@abc.com> wrote in message
news:A1******** *************@n ews-text.cableinet. net... Whats wrong with this?
top.document.fr mMain.tabMain.b order = "1";
It has no context.
Richard.
how would I do it then? - what am I missing?
thanks
"Richard Cornford" <Ri*****@litote s.demon.co.uk> wrote in message
news:bn******** ***********@new s.demon.co.uk.. . "Harry" <a@abc.com> wrote in message news:A1******** *************@n ews-text.cableinet. net... Whats wrong with this?
top.document.fr mMain.tabMain.b order = "1";
It has no context.
Richard.
In article <n8************ *********@news-text.cableinet. net>, a@abc.com
enlightened us with... how would I do it then? - what am I missing?
You're missing the rest of the code and an explanation of what doesn't
work, what you want, and target browsers, if any.
Context = tell us what the heck you want.
-------------------------------------------------
~kaeli~
Jesus saves, Allah protects, and Cthulhu
thinks you'd make a nice sandwich. http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace
-------------------------------------------------
sorry, target browsers are ie 5.5 & netscape 7
I want the user to be able to click on a checkbox which will using
javascript show/hide the border of a table
thanks
harry
"kaeli" <in************ ********@NOSPAM att.net> wrote in message
news:MP******** *************** *@nntp.lucent.c om... In article <n8************ *********@news-text.cableinet. net>, a@abc.com enlightened us with... how would I do it then? - what am I missing?
You're missing the rest of the code and an explanation of what doesn't work, what you want, and target browsers, if any.
Context = tell us what the heck you want.
------------------------------------------------- ~kaeli~ Jesus saves, Allah protects, and Cthulhu thinks you'd make a nice sandwich. http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace -------------------------------------------------
In article <2d************ *********@news-text.cableinet. net>, a@abc.com
enlightened us with... sorry, target browsers are ie 5.5 & netscape 7
I want the user to be able to click on a checkbox which will using javascript show/hide the border of a table
thanks
If the table is named tabMain (<table id="tabMain">)
if (document.getEl ementById && document.getEle mentById("tabMa in").style)
{
document.getEle mentById("tabMa in").style.bord er = "1";
}
else alert("You need a better browser.");
You don't need "top" unless you're using frames, in which case you need
the frame name as defined in the frameset.
if (top.frames["frameName"].document.getEl ementById && top.frames
["frameName"].document.getEl ementById("tabM ain").style)
{
top.frames["frameName"].document.getEl ementById
("tabMain").sty le.border = "1";
}
else alert("You need a better browser.");
-------------------------------------------------
~kaeli~
Jesus saves, Allah protects, and Cthulhu
thinks you'd make a nice sandwich. http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace
-------------------------------------------------
kaeli <in************ ********@NOSPAM att.net> writes: If the table is named tabMain (<table id="tabMain">)
if (document.getEl ementById && document.getEle mentById("tabMa in").style) { document.getEle mentById("tabMa in").style.bord er = "1";
That is unlikely to work, since "1" is not a valid CSS value for the
border property.
You don't need "top" unless you're using frames, in which case you need the frame name as defined in the frameset.
The original poster wrote this "top.document.f rmMain.tabMain. border". I
assume "frmMain" is a frame name. I.e., something like:
var frm = top.frames['frmMain'];
if (frm && frm.document.ge tElementById) {
var elem = frm.document.ge tElementById("t abMain");
if (elem && elem.style) {
elem.style.bord er = "1px solid black";
}
}
/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit. html>
'Faith without judgement merely degrades the spirit divine.'
In article <3c**********@h otpop.com>, lr*@hotpop.com enlightened us
with... kaeli <in************ ********@NOSPAM att.net> writes:
If the table is named tabMain (<table id="tabMain">)
if (document.getEl ementById && document.getEle mentById("tabMa in").style) { document.getEle mentById("tabMa in").style.bord er = "1";
That is unlikely to work, since "1" is not a valid CSS value for the border property.
How WOULD you set the border to 1? I stick to DIVs mostly, which would
be like...
document.getEle mentById("tabMa in").style.bord er="thin solid black";
I don't think that would set the borders for the cells, though, just the
table. It would look different than having border be "1" in the table
def...
-------------------------------------------------
~kaeli~
Jesus saves, Allah protects, and Cthulhu
thinks you'd make a nice sandwich. http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace
-------------------------------------------------
kaeli <in************ ********@NOSPAM att.net> writes: How WOULD you set the border to 1? I stick to DIVs mostly, which would be like... document.getEle mentById("tabMa in").style.bord er="thin solid black";
If you want to simulate the border attribute, the most likely way is:
document.getEle mentById("tabMa in").border=1 ;
If that doesn't work, you can try:
document.getEle mentById("tabMa in").setAttribu te("border","1" );
I don't think that would set the borders for the cells, though, just the table. It would look different than having border be "1" in the table def...
Yes. I never used the border attribute, so I would go for a CSS solution:
<style type="text/css">
table {
border-collapse:collap se;
}
.borderTable td {
border: 1px solid black;
}
</style>
and then set the className instead of the border property:
document.getEle mentById("tabMa in").className= "borderTabl e";
To remove the border, you would then do:
document.getEle mentById("tabMa in").className= "";
/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit. html>
'Faith without judgement merely degrades the spirit divine.'
In article <u1**********@h otpop.com>, lr*@hotpop.com enlightened us
with... kaeli <in************ ********@NOSPAM att.net> writes:
Yes. I never used the border attribute, so I would go for a CSS solution:
Thanks!
-------------------------------------------------
~kaeli~
Jesus saves, Allah protects, and Cthulhu
thinks you'd make a nice sandwich. http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace
------------------------------------------------- This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Robert |
last post by:
I created two pages. One using CSS and the other using a table. I'd
like the css version to work like the table version.
The problem arises when the full image doesn't fit in the window.
Click on the moon thumb to see the problem. In IE 5.2 on MacOS
10.2.6, the moon drops down below the list of thumbs. I'd like it to
say to the right of the thumbs and be able to scroll right. In
Netscape 7.2, the larger image of the moon stays to...
|
by: yurps |
last post by:
Hello here is my html, if you click the missing image in the first
column on the left, the div is shown, when clicked again the div
disappears...but the bottom border disappears as well...Is there anyway
to stop this...???
<HTML>
<HEAD>
<title>Conform Inbox</title>
<meta content="False" name="vs_snapToGrid">
|
by: Peter Williams |
last post by:
Hi All,
I want to write some javascript for a html page which does the
following.
Imagine that the page contains a table with 2 columns and 3 rows, e.g.:
+---+---+
| A | B |
+---+---+
|
by: Gary |
last post by:
I have a table with a form consisting of several checkboxes and I'm
wondering if its possible to change the table row background color on
mouseover or hover and make it stay that color when the checkbox in that row
is selected?
Poko
|
by: vanisathish |
last post by:
Hi
I am running a client side javascript timer to periodically refresh the
contents of some tables in the HTML page. The table values are
dynmically binded from XML DOM object using the <XML tag in HTML>. The
data is getting updated properly. but whenever the value is refreshed,
the HTML page flickers. How do i avoid this flickering..
below is my html page
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
| |
by: Rako |
last post by:
My problem is:
I want to create an index to any of the available picture-groups.
This index is a table of thumbs with a scrollbar. If you click on the thumb, you get the full picture displayed.
This table must be created from scratch. (The function must be reusable, and speed up the load-time: only one of the various possible picture-groups will be indexed. any other will be loaded by request.
The picture-groups are defined in flexible...
|
by: RubbedLung |
last post by:
http://www.hometeamproperties.net/Forms/PVA/LPV.htm
As you can see its a valid page but now the bottom right rounded corner is gone, and there are entire blocks of color missing from the interior of the table. Anyone have any ideas?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta...
|
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: 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: 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: 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.
| |