PC Review


Reply
Thread Tools Rate Thread

Change the style of a Textbox

 
 
Markus
Guest
Posts: n/a
 
      13th Feb 2008
Hallo

I hopy some one can help i would like to change the style of a textbox after
i selected something from a combo box

function Box(){
if(document.FrontPage_Form1.Affected1.value == "ABC"){
window.document.FrontPage_Form1.A1.value = 'Test';
window.document.FrontPage_Form1.Code.style = "color: #FFFFFF; border: 1px
solid #000852; background-color: #000852; font-size:12pt; font-family:Times
New Roman; font-weight:bold; text-align:right";
return false;
}
}

Regards
Markus

 
Reply With Quote
 
 
 
 
Steve Easton
Guest
Posts: n/a
 
      13th Feb 2008
Google for: javascript css style swap


--

Steve Easton
Microsoft MVP FrontPage
FP Cleaner
http://www.95isalive.com/fixes/fpclean.htm
Hit Me FP
http://www.95isalive.com/fixes/HitMeFP.htm


"Markus" <(E-Mail Removed)> wrote in message
news:5279DE9E-13FA-4905-A561-(E-Mail Removed)...
> Hallo
>
> I hopy some one can help i would like to change the style of a textbox after
> i selected something from a combo box
>
> function Box(){
> if(document.FrontPage_Form1.Affected1.value == "ABC"){
> window.document.FrontPage_Form1.A1.value = 'Test';
> window.document.FrontPage_Form1.Code.style = "color: #FFFFFF; border: 1px
> solid #000852; background-color: #000852; font-size:12pt; font-family:Times
> New Roman; font-weight:bold; text-align:right";
> return false;
> }
> }
>
> Regards
> Markus
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
TEXTBOX --- i want to select part of the text and change its style pedro@code4cerveja.com Microsoft C# .NET 2 14th Apr 2008 04:41 PM
Change Textbox Border Style Randy Microsoft VB .NET 2 22nd Apr 2007 01:25 AM
if Empty bound field then change the style of the textbox =?Utf-8?B?bWFYaW0=?= Microsoft Access Form Coding 5 10th Aug 2006 02:29 PM
VB2005: Make Panel's border style similar to xp style textbox? =?Utf-8?B?Sm9iIExvdA==?= Microsoft Dot NET 0 21st Dec 2005 10:49 PM
equation editor won't change from math style to text style =?Utf-8?B?YWxhbm1v?= Microsoft Word Document Management 5 14th Oct 2004 03:58 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:03 AM.