Welcome to TalkGraphics.com
Results 1 to 10 of 39

Hybrid View

  1. #1

    Default Can I add a script in a footer

    Can I add a (code) script that I'd like to use as a footer for each page on my website?

    If so, can you tell me how to do it?

    Thanks,
    Sue

  2. #2
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,862

    Default Re: Can I add a script in a footer

    Quote Originally Posted by SueB View Post
    Can I add a (code) script that I'd like to use as a footer for each page on my website?
    If so, can you tell me how to do it?
    Thanks, Sue
    Sue, easier to explain if you advise what result you are after or a reference to the code itself.

    There is no simple approach but for a single instance, you would create a Placeholder shape and then add the code to its body.
    Unfortunately, cloning this across all pages will probably not work if a HMTL ID reference is used; it needs to be a Class reference.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  3. #3

    Default Re: Can I add a script in a footer

    It's a copyright script that adds the year each year without having to go into each one and change it.

    Here it is: <p>Copyright © 2016-
    <SCRIPT LANGUAGE="JavaScript">
    <!--- Hide from old browsers
    document.write(y0);
    // end hiding --->
    </SCRIPT>

  4. #4
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,862

    Default Re: Can I add a script in a footer

    Quote Originally Posted by SueB View Post
    It's a copyright script that adds the year each year without having to go into each one and change it.

    Here it is: <p>Copyright © 2016-
    <SCRIPT LANGUAGE="JavaScript">
    <!--- Hide from old browsers
    document.write(y0);
    // end hiding --->
    </SCRIPT>
    There will be a method somewhere that add the current year to the variable y0; do you have that?

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  5. #5

    Default Re: Can I add a script in a footer

    I think this is all I have and it works

  6. #6
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,862

    Default Re: Can I add a script in a footer

    Quote Originally Posted by SueB View Post
    I think this is all I have and it works
    Sorry, it doesn't and it can't.
    Somewhere in your header, you will have a piece of code to get today's date...

    Acorn

    P.S. I have added your code to a Placeholder and run it; all you get is "Copyright © 2016-".
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

 

 

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
  •