Results 1 to 2 of 2

Thread: Neon Lights Text help

  1. #1
    Join Date
    Mar 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Neon Lights Text help

    hi im using the following script from Dynamic drive found here.
    http://dynamicdrive.com./dynamicindex10/neontext2.htm !! but it is not working this is what i put caN SOME FIX IT FOR ME ??

    <h2><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="Welcome to our 2006 new and improved website.Now officially part of the website Team the site is Bigger Better and Faster the only thing that has not change our mission and that is to get the community together. we have added so Many things but you have to come back to get the details. Please look around everywhere and give us you feedback or fill our quick form in contact us page. Also download toolbar with a lot of features and links to this page. with yahoo search. And links to all pages. For easy navigation! So whats new? Did you add your email to our email list? If so, check your email for our new Movies, pages, and updates. Thank You For Visiting and GOD BLESS YOU ALL!!"
    var neonbasecolor="gray"
    var neontextcolor="yellow"
    var neontextcolor2="#FFFFA8"
    var flashspeed=150 // speed of flashing in milliseconds
    var flashingletters=9 // number of letters flashing in neontextcolor
    var flashingletters2=10 // number of letters flashing in neontextcolor2 (100 to disable)
    var flashpause=0 // the pause between flash-cycles in milliseconds

    ///No need to edit below this line/////

    var n=0
    if (document.all||document.getElementById){
    document.write('<font color="'+neonbasecolor+'">')
    for (m=0;m<message.length;m++)
    document.write('<span id="neonlight'+m+'">'+message.charAt(m)+'</span>')
    document.write('</font>')
    }
    else
    document.write(message)

    function crossref(number){
    var crossobj=document.all? eval("document.all.neonlight"+number) : document.getElementById("neonlight"+number)
    return crossobj
    }

    function neon(){

    //Change all letters to base color
    if (n==0){
    for (m=0;m<message.length;m++)
    crossref(m).style.color=neonbasecolor
    }

    //cycle through and change individual letters to neon color
    crossref(n).style.color=neontextcolor

    if (n>flashingletters-1) crossref(n-flashingletters).style.color=neontextcolor2
    if (n>(flashingletters+flashingletters2)-5) crossref(n-flashingletters-flashingletters2).style.color=neonbasecolor


    if (n<message.length-1)
    n++
    else{
    n=0
    clearInterval(flashing)
    setTimeout("beginneon()",flashpause)
    return
    }
    }

    function beginneon(){
    if (document.all||document.getElementById)
    flashing=setInterval("neon()",flashspeed)
    }
    beginneon()


    </script></h2>

  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

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
    <html>
    <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    
    </head>
    <body>
    <h2><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="Welcome to our 2006 new and improved website.Now officially part of the website Team the site is Bigger Better and Faster the only thing that has not change our mission and that is to get the community together. we have added so Many things but you have to come back to get the details. Please look around everywhere and give us you feedback or fill our quick form in contact us page. Also download toolbar with a lot of features and links to this page. with yahoo search. And links to all pages. For easy navigation! So whats new? Did you add your email to our email list? If so, check your email for our new Movies, pages, and updates. Thank You For Visiting and GOD BLESS YOU ALL!!"
    var neonbasecolor="gray"
    var neontextcolor="yellow"
    var neontextcolor2="#FFFFA8"
    var flashspeed=100 // speed of flashing in milliseconds
    var flashingletters=10 // number of letters flashing in neontextcolor
    var flashingletters2=9 // number of letters flashing in neontextcolor2 (100 to disable)
    var flashpause=0 // the pause between flash-cycles in milliseconds
    
    ///No need to edit below this line/////
    
    var n=0
    if (document.all||document.getElementById){
    document.write('<font color="'+neonbasecolor+'">')
    for (m=0;m<message.length;m++)
    document.write('<span id="neonlight'+m+'">'+message.charAt(m)+'</span>')
    document.write('</font>')
    }
    else
    document.write(message)
    
    function crossref(number){
    var crossobj=document.all? eval("document.all.neonlight"+number) : document.getElementById("neonlight"+number)
    return crossobj
    }
    
    function neon(){
    
    //Change all letters to base color
    if (n==0){
    for (m=0;m<message.length;m++)
    crossref(m).style.color=neonbasecolor
    }
    
    //cycle through and change individual letters to neon color
    crossref(n).style.color=neontextcolor
    
    if (n>flashingletters-1) crossref(n-flashingletters).style.color=neontextcolor2 
    if (n>(flashingletters+flashingletters2)-1) crossref(n-flashingletters-flashingletters2).style.color=neonbasecolor
    
    
    if (n<message.length-1)
    n++
    else{
    n=0
    clearInterval(flashing)
    setTimeout("beginneon()",flashpause)
    return
    }
    }
    
    function beginneon(){
    if (document.all||document.getElementById)
    flashing=setInterval("neon()",flashspeed)
    }
    beginneon()
    
    
    </script></h2>
    </body>
    </html>
    - John
    ________________________

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

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
  •