Welcome to TalkGraphics.com
Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 26
  1. #11
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,486

    Default Re: Dynamic Date Script

    Easy script to edit (even for me) Egg. Not sure why your file has four extra layers though?

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

    Info Re: Dynamic Date Script

    My approach allows you to change the font, colour, size and alignment as Xara functions - just use the Text Tool.

    JavaScript - Todays Date.web

    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. #13
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,486

    Default Re: Dynamic Date Script

    What? Are we having a "script off"?

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

    Default Re: Dynamic Date Script

    Why not?
    bring it on!
    A
    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. #15
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,895

    Default Re: Dynamic Date Script

    Not sure why your file has four extra layers though?
    Whoops, sorry Gary that wasn't intended, it was just that in another thread some member was finding why a new layer was named Layer 5. I accidentally used a template that removed this. So just ingonre the additional layers
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  6. #16
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,895

    Default Re: Dynamic Date Script

    What? Are we having a "script off"?
    I hope not, I learn to much from Acorn & Sirans scripts. It's just that there is so many scripts to achieve similar results.
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  7. #17
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,486

    Default Re: Dynamic Date Script



    Both solutions are very good though I prefer the simplicity of Egg's script.

  8. #18
    Join Date
    Oct 2003
    Location
    Kettering, Northamptonshire, UK
    Posts
    48

    Default Re: Dynamic Date Script

    My thanks to Egg for sorting out my alignment issue with the dynamic date script. To keep things exciting ... another issue has arisen!

    I have put the script on the main site and adjusted the font, size and alignment - as expected, it works perfectly.

    It's a responsive site and because I want to make the font smaller for the date on the mobile variant, I copied the script, created a new placeholder and reduced the font size.

    ..then my troubles began!

    Bizarrely, the MAIN site now takes on the font size of the MOBILE site's font settings even though when I look at the placeholder script on the MAIN page, it shows the *larger* font size. After a bit of poking around, I found that if I delete the dynamic date script on the MOBILE page, the MAIN script then behaves itself - ie it shows the larger font size.

    So, I've concluded that it must be a glitch somewhere and if I have the need for the script on BOTH variants, the MAIN website page is always going to adopt the font size of the MOBILE page's script.

    I don't yet know enough about what goes on 'under the bonnet' of WD's web pages to see what's happening. I can only conclude that the MOBILE script seems to 'take priority' over the main page's script.

    I've pulled enough hair out over this , and would really appreciate some guidance from any WD gurus out there.

    Many thanks!
    Thanks

    Steve
    Kettering UK

  9. #19
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,895

    Default Re: Dynamic Date Script

    I would say it's because you are calling the same class i.e. .mytime in both variants. I changed the class name on the mobile version to .mymobileclass and this appears to have done the trick.

    You only need to alter two occasions of the class name in the mobile code.

    EDIT: Amended xar file.
    Attached Files Attached Files
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  10. #20
    Join Date
    Oct 2003
    Location
    Kettering, Northamptonshire, UK
    Posts
    48

    Default Re: Dynamic Date Script

    Thanks Egg

    I really appreciate your help with this. Will implement your suggestion in the next few days.

    All the best!
    Thanks

    Steve
    Kettering UK

 

 

Tags for this Thread

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
  •