I'm making a texteditor for a news script, and I got a few questions;
1. When u click on the pic ;
<img alt="Bold" src="images/bold.gif" onClick="doBold()">
it runs doBold, but I want it 2 show bolddown.gif untill I click it again;
wich should make it turn off and show bold.gif again
2. How do I make a margen so the following text will be touching the edges,
and NOT 1 cm left margen and ½ cm top margen?
<iframe id="iView" style="width: 300px; height:200px"></iframe>
3. when I make a linechange with "ENTER", it seems as if it makes <P></P>, like 2 linechanges.
How do I make a function, wich only makes 1 linechange when I hit "ENTER", kind of like this; function doBold()
{
iView.document.execCommand('bold', false, null);
}
4. what's the execCommand for straight margens, I got left, centre and right execCommand.
5. If I want 2 save what I type, into ID=iview in the iframe. I suppose it's the same as; FORM NAME, but don't know. (in ASP)