Hi,
I need a custom attribute to store arbitrary data, for example:
<div id="page1" myattribute="page">
<h1 id="page1header" myattribute="header">
Is it possible to create a global (like id, lang, etc) attribute, or at least to "import" an attribute from a DTD via xmlns="DTD-URI" ?
I just want the floated div to expand vertically to the parent's size. It seems I need to explicitly set the parent's height for ".child height:100%" to work.
I can't seem to find a way to make a floated div the same height as its parent non-floated div, i.e.:
.parent {
border: 1p solid #ffffff;
}
.child {
float: left;
width: 10px;
height: 100%;
}
If I specify a height for the .parent div (e.g. 100px), then the .child is no taller than that...
In WXP IE6, I have a button call foo():
var frame = window.frames['fname'];
frame.window.scroll(0,300);
function foo () {
if (frame.window.innerHeight) {
pos = frame.window.pageYOffset
alert('window '+pos)
} else if (frame.document.documentElement
&&...
This works in IE6:
var fr = top.frames[5]
if (fr.window.innerHeight) {
height = fr.window.innerHeight
} else if (fr.document.body.clientHeight) {
height = fr.document.body.clientHeight
}
However, this seems to be the height of the document, not the height of the frame.
In the following code, what should go in place of "¿?" to obtain the height of one (any) of the frames?
<head>
...
<script language="javascript">
var frameheight = ¿?
</script>
</head>
<frameset rows="30,*,30">
<frameset cols="30,*,60,*,30">
<frame name="top1" />
<frame...
It's for a quite simple text editor with buttons for bold/italics/etc. I mention the cursor (insert) position because it's the text entered after that position that must be tagged. (Or that's my guess? Dunno.) But how would I go about it if, for example, no text at all has been typed yet but the...
So, there's a button you push to apply format to characters in a text widget. No problem if the characters are already there, you select them and apply the tag to them. But if the cursor is at N.0 of a new (blank) line and you push the button to apply the tag to the text you are about to write...
I have a window with two entry widgets and I would like to get the new window size (width x height) in the widgets every time the user resizes the window. Is that possible ?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.