Easy script to edit (even for me) Egg. Not sure why your file has four extra layers though?
Easy script to edit (even for me) Egg. Not sure why your file has four extra layers though?
Gary W. Priester
Mr. Moderator Emeritus Dude, Sir
gwpriester.com | eyetricks-3d-stereograms.com | eyeTricks on Facebook | eyeTricks on YouTube | eyeTricks on Instagram
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
What? Are we having a "script off"?
Gary W. Priester
Mr. Moderator Emeritus Dude, Sir
gwpriester.com | eyetricks-3d-stereograms.com | eyeTricks on Facebook | eyeTricks on YouTube | eyeTricks on Instagram
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
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 layersNot sure why your file has four extra layers though?
Egg
Minis Forum UM780XTX AMD Ryzen7 7840HS with AMD Radeon 780M Graphics + 32 GB Ram + MSI Optix Mag321 Curv monitor + 1Tb SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host
I hope not, I learn to much from Acorn & Sirans scripts. It's just that there is so many scripts to achieve similar results.What? Are we having a "script off"?
Egg
Minis Forum UM780XTX AMD Ryzen7 7840HS with AMD Radeon 780M Graphics + 32 GB Ram + MSI Optix Mag321 Curv monitor + 1Tb SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host
Both solutions are very good though I prefer the simplicity of Egg's script.
Gary W. Priester
Mr. Moderator Emeritus Dude, Sir
gwpriester.com | eyetricks-3d-stereograms.com | eyeTricks on Facebook | eyeTricks on YouTube | eyeTricks on Instagram
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
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.
Egg
Minis Forum UM780XTX AMD Ryzen7 7840HS with AMD Radeon 780M Graphics + 32 GB Ram + MSI Optix Mag321 Curv monitor + 1Tb SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host
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
Bookmarks