Results 1 to 3 of 3

Thread: Neon Lights II Line Break

  1. #1
    Join Date
    Sep 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Neon Lights II Line Break

    1) Script Title: Neon Lights Text II

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici.../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/s...ext-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!

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You can use \n. But you first have to add this style section to the head of the page:

    Code:
    <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:

    Code:
    <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 . . .
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Sep 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by jscheuer1 View Post
    You can use \n. But you first have to add this style section to the head of the page:

    Code:
    <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:

    Code:
    <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!

Similar Threads

  1. Neon Lights Text Line Break
    By Nightwing308 in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 07-03-2011, 02:56 AM
  2. Neon Lights script
    By suesan in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 03-21-2008, 02:25 AM
  3. Neon Lights Text help
    By Johntech in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 06-27-2006, 05:30 AM
  4. Neon Lights Text
    By Aimee in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 12-11-2005, 11:29 PM
  5. Neon Lights Text IE
    By jatsfam in forum Dynamic Drive scripts help
    Replies: 4
    Last Post: 09-15-2004, 05:33 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •