onLine weblog archive
Friday, June 09, 2000
More on Flash: for me, the web is not an entertainment medium, though I am often entertained by it. The thing I look for most from the web is utility. If your site does something for me, makes some activity easier, provides some useful bit of information, then I think your site is a success and I am likely to return. I am struggling to think of a useful Flash based site, though I know that they exist (in the minority)... I think product demos are a good application for Flash. Apart from entertainment, what else is Flash good for? Tell me.
Thursday, June 08, 2000
(One of my favorite concepts is the "lovegetty," which is a matchmaking scheme for mobile phones. Taking advantage of smart phones' ability to know where you are physically, your phone beeps to alert you when a potential mate with matching interests as entered in the lovegetty database is nearby. This form of "personal advertising" sounds like a more efficient way to find a compatible mate than hanging out in noisy, dark bars.)Think what you will of me, but that cracks me up.
A related story from back in April: The Real Power of Wireless.
ME 3, BIKE 1.
Wednesday, June 07, 2000
Sun is the second company to flip-flop on SOAP. In April, IBM also reversed its stance, saying the need for the software industry to find a way for businesses to link their different computing systems outweighed competitive issues.
Tuesday, June 06, 2000
After today it is ME 1, BIKE 0.
Monday, June 05, 2000
Here is a good quote on that matter from an analysis of Seven Samurai, Throne of Blood, The Hidden Fortress and Ran: The Epic Images of Kurosawa:
The forceful editing of Throne of Blood, as in The Seven Samurai, is a major factor to the success of the film. The horizontal wipe is again used extensively, with an interesting variation. More often than not the wipe moves from a scene of pale gray and white tones to a highly contrasted dark scene. Full appreciation of Kurosawa's use of the technique requires multiple viewings. In re-running a sequence, one realizes that Kurosawa's wipes often follow the direction and movement of his characters, prefiguring a similar movement in the ensuing scene. In some cases the movement is from the reverse direction. While the technique is considered dated by many, I have never seen it used with greater success.
Taylor said this:
When you get information about an object, you are getting just the information contained within the tag. The information from the style sheet doesn't cascade down into the DOM to the tag.Kevin Collins instructed me thusly:
What you might want to use is posleft and postop which give the actual position. There are a few other attributes that also give the "real" position that allow you to set style information in the style sheet but still script it.
This is a pretty good resource if you know what you're looking for.
I think this works:
function init() {
alert(document.styleSheets[0].rules[0].style.top);
}"The style object does not provide access to the style assignments in style sheets. To obtain information about styles in style sheets, use the styleSheets collection to access to the individual style sheets defined in the document."Bitey McStink weighed in with this:
Quoted from here.
I assumed this has always been the case (since I usually code for IE, and I didn't do much JS pre-5.0). Whenever I have an attribute that I will need to work with programatically (normally location and size) I assign it using javascript instead of stylesheet. I hope you find another solution. Is the stylesheet itself a part of the DOM? If so, maybe you could cross-reference the property by checking the className of the DIV, then finding the associated property in the stylesheet node???Morton Wang offered this:
Bitey McStink
when everything else fails, please consult the fine manual. :)
as you might have found out by now, the 'left' and 'top' properties of 'style' are not inherited from linked or inline style sheets, so they're undefined unless set specifically by a script. when you use the STYLE attribute directly they'll be set. as found in the manual for 'top'[1]:
"The cascading style sheets (CSS) attribute is not inherited."
same goes for 'pixelTop' & 'pixelLeft', which are the numerical equivalents of 'top' & 'left'. this whole problem with values not being defined unless set specifically is the reason why I've decided that all my positioning will be done relative to the parent element, so 'offsetTop' and 'offsetLeft' are my friends.
Morten!
Link to docs.
WriteTheWeb is a community news site dedicated to encouraging the development of the read/write web. For too long software tools on the web have been about letting the few publish and the many read.
