Computing.Net > Forums > Web Development > Javascript 'textDecoration'

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Javascript 'textDecoration'

Reply to Message Icon

Name: mie2com
Date: November 24, 2006 at 20:34:11 Pacific
OS: Windows XP
CPU/Ram: Pentium III
Product: Sony
Comment:

when i wrote like this;

...style.textDecoration = 'underline overline blink line-through'

the script execute and the text elements will be underline, overline, blink, and line-through at the same time.

however, when i break it down to variation, like this;

a = "underline"
b = "overline"
c = "blink"
d = "line-through"

...style.textDecoration = a + b + c + d

the script didn't function at all.

i try this both in mozilla and explorer. how to break the elements into variation and make it execute all elements at the same time?



Sponsored Link
Ads by Google

Response Number 1
Name: mie2com
Date: November 24, 2006 at 20:43:22 Pacific
Reply:

I solve the problem. I need to put a space in those variables. *( _ = space )

a = "underline_"
b = "overline_"
c = "blink_"
d = "line-through_"

...style.textDecoration = a + b + c + d


0
Reply to Message Icon

Related Posts

See More


ODBC connect to web datab... Javascript: return true/f...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Javascript 'textDecoration'

Font Changing Coding in Javascript www.computing.net/answers/webdevel/font-changing-coding-in-javascript/1778.html

javascript importance www.computing.net/answers/webdevel/javascript-importance/3326.html

Javascript - SN u wud be useful www.computing.net/answers/webdevel/javascript-sn-u-wud-be-useful/1648.html