PDA

View Full Version : Neon Lights II Line Break



D-Boy
09-12-2012, 06:39 PM
1) Script Title: Neon Lights Text II

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex10/neontext2.htm

3) Describe problem: I am trying to add a line break in my message for Neon Lights II. "<br />" and "\n" didn't work so I started searching the forums and saw a solution for Neon Lights at http://www.dynamicdrive.com/forums/showthread.php?61725-Neon-Lights-Text-Line-Break but I'm not sure how to edit the code to make it work for Neon Lights II.

Any help would be much appreciated. Thanks!

jscheuer1
09-13-2012, 12:43 AM
You can use \n. But you first have to add this style section to the head of the page:


<style type="text/css">
#neonlight {
white-space: pre;
}
</style>

And at the beginning of the code that goes in the body of the page, add the highlighted:


<h2 id="neonlight"><script language="JavaScript1.2">

//Neon Lights Text II by G.P.F. (gpf@beta-cc.de)
//visit http://www.beta-cc.de
//Visit http://www.dynamicdrive.com for this script

var message="Thank you for \n visiting Dynamic Drive!"
var neonbasecolor="gray"
var neontextcolor="ye . . .

D-Boy
09-13-2012, 03:05 PM
You can use \n. But you first have to add this style section to the head of the page:


<style type="text/css">
#neonlight {
white-space: pre;
}
</style>

And at the beginning of the code that goes in the body of the page, add the highlighted:


<h2 id="neonlight"><script language="JavaScript1.2">

//Neon Lights Text II by G.P.F. (gpf@beta-cc.de)
//visit http://www.beta-cc.de
//Visit http://www.dynamicdrive.com for this script

var message="Thank you for \n visiting Dynamic Drive!"
var neonbasecolor="gray"
var neontextcolor="ye . . .

Works perfectly. Thanks!