Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

line breaks

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Post Reply
Alan
Posts: 51
Joined: Sun 14 Mar 2010 9:41 am
Weather Station: WH1091
Operating System: Win 7
Location: Sydney

line breaks

Post by Alan »

Hello there,
Could somebody please help me out with the code required to insert a line break between the following two 'document. write' codes. Of course, as it is now, the text align itself on the right of the small image. What I am really after is for the text to be on the next line. (javascript has me somewhat rattled)

<td width="25%" align="center" valign="top"><script type="text/javascript">

document.write("<img src=\"" + status_pic + "\" alt=\"test\" title=\"" + status_txt + "\" />");
document.write(status_txt);

</script>
</td>

Thanks in advance,
Alan
User avatar
MickinMoulden
Posts: 499
Joined: Mon 20 Dec 2010 12:12 pm
Weather Station: WS-1081 with rain gauge mod
Operating System: Windows 7 & 1.9.3 b1059
Location: Palmerston, NT, Australia
Contact:

Re: line breaks

Post by MickinMoulden »

document.write("<br />")
Michael, Palmerston, NT Australia www.Palmerston-WeatherImageNo image? I'm offline!
ImageImage
Alan
Posts: 51
Joined: Sun 14 Mar 2010 9:41 am
Weather Station: WH1091
Operating System: Win 7
Location: Sydney

Re: line breaks

Post by Alan »

Hello Michael,
I am having trouble getting your suggested code to work. Would you be please kind enough to indicate exactly where in my current code your modification rests.
Alan
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: line breaks

Post by beteljuice »

Code: Select all

document.write("<img src=\"" + status_pic + "\" alt=\"test\" title=\"" + status_txt + "\" /><br />" +status_txt);
Image
......................Imagine, what you will KNOW tomorrow !
Alan
Posts: 51
Joined: Sun 14 Mar 2010 9:41 am
Weather Station: WH1091
Operating System: Win 7
Location: Sydney

Re: line breaks

Post by Alan »

Michael,
I have put it through it's paces and it is just brilliant. Thank you very much for your efforts.
Alan
Post Reply