Sandaysoft

Support forum for Cumulus weather station software
It is currently Fri May 24, 2013 4:24 pm
Please click here before posting. Help me to help you!
Useful Links: Cumulus FAQ • Enhancement requests • Wiki (documentation)
Please put your approximate location into your profile
Add your web site to the Cumulus user map
Vantage Pro2 users with firmware 3.00 should upgrade to fw 3.12 and Cumulus 1.9.4

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: line breaks
PostPosted: Sat Jun 02, 2012 5:26 am 
Offline

Joined: Sun Mar 14, 2010 9:41 am
Posts: 38
Location: Sydney
Weather Station: WH1091
Operating System: Win 7
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


Top
 Profile  
 
 Post subject: Re: line breaks
PostPosted: Sat Jun 02, 2012 7:41 am 
Offline
User avatar

Joined: Mon Dec 20, 2010 12:12 pm
Posts: 446
Location: Palmerston, NT, Australia
Weather Station: WS-1081 with rain gauge mod
Operating System: Windows 7 & 1.9.3 b1059
document.write("<br />")

_________________
Michael, Palmerston, NT Australia www.Palmerston-WeatherImageNo image? I'm offline!
ImageImageImage


Top
 Profile  
 
 Post subject: Re: line breaks
PostPosted: Sat Jun 02, 2012 9:49 am 
Offline

Joined: Sun Mar 14, 2010 9:41 am
Posts: 38
Location: Sydney
Weather Station: WH1091
Operating System: Win 7
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


Top
 Profile  
 
 Post subject: Re: line breaks
PostPosted: Sat Jun 02, 2012 10:03 am 
Offline
User avatar

Joined: Tue Dec 09, 2008 1:37 pm
Posts: 1852
Location: Dudley, West Midlands, UK
Weather Station: None !
Operating System: XP SP3
Code:
document.write("<img src=\"" + status_pic + "\" alt=\"test\" title=\"" + status_txt + "\" /><br />" +status_txt);

_________________
Image
......................Imagine, what you will KNOW tomorrow !


Top
 Profile  
 
 Post subject: Re: line breaks
PostPosted: Sat Jun 02, 2012 10:32 am 
Offline

Joined: Sun Mar 14, 2010 9:41 am
Posts: 38
Location: Sydney
Weather Station: WH1091
Operating System: Win 7
Michael,
I have put it through it's paces and it is just brilliant. Thank you very much for your efforts.
Alan


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group