Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Help with execCommand and a few questions
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Help with execCommand and a few questions

 Post Reply Post Reply
Author
aero View Drop Down
Groupie
Groupie
Avatar

Joined: 21 May 2003
Location: Denmark
Status: Offline
Points: 80
Post Options Post Options   Thanks (0) Thanks(0)   Quote aero Quote  Post ReplyReply Direct Link To This Post Topic: Help with execCommand and a few questions
    Posted: 24 January 2004 at 2:07pm

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)

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.