<HTML>
<HEAD>
<SCRIPT LANGUAGE="JAVASCRIPT" PURPOSE="EVENTHANDLER">
function DigitalClock1_onRender() {
}
function DigitalClock1_onStart() {
}
</SCRIPT>
<SCRIPT LANGUAGE="JAVASCRIPT" SRC="DigitalClock.js" PURPOSE="COMPONENT"
CLASSNAME="com.netobjects.DigitalClock"></SCRIPT>
<SCRIPT LANGUAGE="JAVASCRIPT" PURPOSE="INITIALIZER"
SRC="Test_init.js"></SCRIPT>
<META NAME="GENERATOR" Content="NetObjects ScriptBuilder 3.0">
<TITLE>Document Title</TITLE>
</HEAD>
<BODY>
<!-- Insert HTML here -->
</BODY>
</HTML>
Thanx in advance!
}
</SCRIPT>
that is generated when you select e.g. events tab->onRender is
a function that will fire on teh event (onRender).
Regards Lars
いいいいいいいいいいいいいいいいいいいいいいい
Hemsida http://home6.swipnet.se/~w-65933/
Homepage http://members.tripod.com/~Bjerges/
いいいいいいいいいいいいいいいいいいいいいいい
Sent via Deja.com http://www.deja.com/
Before you buy.
Step 1) Click the NEW button (the blank white paper near the top left
corner). This will create a new default document type (you could also
select FILE->NEW, and then double click on "default HTML document").
Step 2) Click on the Component Gallery tab, and from there the CLIENT
header. This will show the CLIENT components.
Step 3) Drag the DIGITAL CLOCK component and drop it anywhere on the
editor window. This will cause two lines to be created in the HTML
document's <HEAD> section.
Step 4) Remove the unneeded comment "<!-- Insert HTML here -->" from
the <BODY> section, and insert a script block there (either by manually
adding a <SCRIPT LANGUAGE="JavaScript"> tag, OR by going up to the
SCRIPT menu and selecting "Script Block", OR by hitting CTRL-F7). In
any case, your <BODY> section should now look like this:
<BODY>
<SCRIPT LANGUAGE="JavaScript">
</SCRIPT>
</BODY>
Step 5) Now, inside the <SCRIPT> block, add the following line:
DigitalClock1.render();
(if you named your object something else in the object inspector, use
that name instead of DigitalClock1).
Step 6) Save your work somewhere and that's it! Now keep in mind that
the clock currently only displays the time at a resolution of minutes,
so it's not going to change quickly. For future reference, wherever
you want the clock to actually appear on the page, that's the location
in the HTML that you put your ".render()" call.
P.S. Notice that I DIDN'T use any of the Digital Clock's event
functions. I didn't want anything in particular to happen when the
clock STARTED (or whatever), I just wanted the CLOCK ITSELF to start at
the appropriate point...
'Hope this helps!
Jai
------------------------------------------------------
J...@LostMind.com
"Absolute Clarity through Maximum Verbosity!"
--
"Absolute Clarity through Maximum Verbosity"