by Guilimus » Sun Mar 10, 2024 5:46 pm
Hi - Thanks for the reply. I set "Line width for wrapping" to 155 then 255 + quote style to Double quotes.
The above changes did fix the problem with the example code but still changes:
/* I know - doc.write not so good - However it is exactly what I want as it deletes all HTML */
var mylinkstyle = "<style> a:link { color: black; text-decoration: none;} \
a:visited { color: black; text-decoration: none; } \
a:hover { color: grey; text-decoration: none !important;} \
</style>";
document.write(mylinkstyle,
" ", dayname, " ", day, " ", monthname, " ", year,
" ", hours, ":", min, ampm, " ",
"<a href='#'title='(Week #)'>(", weeknum, ")</a> ",
"<a href='#'title='(Day #-Days to end / # in Year)'>(", daynum, "-",
daytoend, " / ", yeardays, ")</a>");
TO:
/* I know - doc.write not so good - However it is exactly what I want as it deletes all HTML */
var mylinkstyle =
"<style> a:link { color: black; text-decoration: none;} \
a:visited { color: black; text-decoration: none; } \
a:hover { color: grey; text-decoration: none !important;} \
</style>";
document.write(
mylinkstyle,
" ",
dayname,
" ",
day,
" ",
monthname,
" ",
year,
" ",
hours,
":",
min,
ampm,
" ",
"<a href='#'title='(Week #)'>(",
weeknum,
")</a> ",
"<a href='#'title='(Day #-Days to end / # in Year)'>(",
daynum,
"-",
daytoend,
" / ",
yeardays,
")</a>"
);
I prefer to leave line width to 90. The above problem is only in 2025 not 2022.
Thanks Bill D.