Results 1 to 8 of 8

Thread: Script needs to be centralised.

  1. #1
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default Script needs to be centralised.

    I am using a script taken from this site & shown by the link below.

    http://www.dynamicdrive.com/dynamicindex10/neontext.htm

    When the script runs on my page the text is shown to the left.
    Please can you advise a line of text etc so i can run the script central to the page.
    Many thanks.

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Should be easily achieveable with CSS rather than any additional script. It's a very old one so I wouldn't recommend using it 'as-is' - at least update the deprecated font tags to spans with an inline-style. Anyway, its untested, but this should do it;
    Code:
    h2{text-align:center;}
    If you need more help, please provide a link to your page.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  3. #3
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    Ha Ha im a newbie so easily achieveable is miles away yet.
    Here is a link to the page if you could advise where i need to put the code you knidly advised.

    http://www.ianparsons.info/ztestpage.htm

  4. #4
    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

    Where you have:

    Code:
    <p align="center"><b><font size="5" face="Arial Black">Example BMW 1, HONDA 2, Etc Etc</font></b></p>
    <u><b><font face="Arial Black" size="6" color="#0000FF"><h2>
    <script language="JavaScript1.2">
    
    /*
    Neon Lights Text
    By JavaScript Kit (http://javascriptkit.com)
    For this script, TOS, and 100s more . . .
    Make that:

    Code:
    <p align="center"><b><font size="5" face="Arial Black">Example BMW 1, HONDA 2, Etc Etc</font></b></p>
    <u><b><font face="Arial Black" size="6" color="#0000FF"><h2 style="text-align: center;">
    <script language="JavaScript1.2">
    
    /*
    Neon Lights Text
    By JavaScript Kit (http://javascriptkit.com)
    For this script, TOS, and 100s more . . .
    - John
    ________________________

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

  5. #5
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    The easiest way would be to look for the <h2> tag that is right in front of that Neon Lights JavaScript, and change it to this;
    Code:
    <h2 style="text-align:center">
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  6. #6
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    I have now done that.
    Just need a pointer for text size code please

  7. #7
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Are you wanting to change the size of that h2 font?

    If so you could just do;
    Code:
    <h2 style="text-align:center; font-size:12pt;">
    Note the semi-colon seperators, and you can change the font-size value up or down depending on how big/small you need text to be.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  8. #8
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    Now sorted.
    Many thanks for that.

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
  •