Hello,
I am trying to modify the appearance of the <<newReminder>> macro /
form via a script.
I am having some trouble navigating DOM relationship (parent / child /
sibling)
Here is my existing script:
<<newReminder>><script>
place.firstChild.firstChild.data ="reminder"; //Rename Macro
place.firstChild.title="+ Reminder Form"; //Modify Macro Hover
place.lastChild.style.fontSize="0%"; //Remove Form Label Text
place.lastChild.lastChild.lastChild.lastChild.style.margin="3pt"; //OK
button margin
place.lastChild.lastChild.lastChild.lastChild.style.fontSize="8pt"; //
OK button reduced font size
</script>
I have been able to grab the form "OK" button, but not the input /
selector buttons
(Is their an easier way to get to this location than .lastChild x4?)
Desired Style: (could be made in StyleSheet *globally* if this script
is not possible)
input {
font-size: 8pt;
margin: 3pt;
}
select {
font-size: 8pt;
margin: 3pt;
}
Any thoughts or guidance?
Mike
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to tiddlyw...@googlegroups.com.
To unsubscribe from this group, send email to
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/tiddlywiki?hl=en.