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
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
Custom navigation Bar and DIV
Moderator: daj
-
pacificblue03
- Posts: 425
- Joined: Sun 13 Jun 2010 12:35 am
- Weather Station: Davis vantage vue
- Operating System: windows 11
- Location: Sydney Australia
Re: Custom navigation Bar and DIV
was fiddling with those for a while and it pushed my website to the entire right hand side i guess its not that important to have the current tab highlited
Antonio.
Antonio.
-
Synewave
- Posts: 642
- Joined: Mon 25 Jan 2010 1:55 pm
- Weather Station: Watson W-8681
- Operating System: Raspian
- Location: Brighton, UK
- Contact:
Re: Custom navigation Bar and DIV
You must have changed settings unrelated to the button images.
Perhaps it is worth discussing the problem with your tutor.
Perhaps it is worth discussing the problem with your tutor.
-
pacificblue03
- Posts: 425
- Joined: Sun 13 Jun 2010 12:35 am
- Weather Station: Davis vantage vue
- Operating System: windows 11
- Location: Sydney Australia
Re: Custom navigation Bar and DIV
yes i think i will leave it for now and learn more
Antonio.
Antonio.
-
gemini06720
- Posts: 1700
- Joined: Mon 10 Aug 2009 10:16 pm
- Weather Station: No weather station
- Operating System: No operating system
- Location: World...
Re: Custom navigation Bar and DIV
You might want to add a bit of 'padding-left' (possibly 5-10 pixels) to the lines beginning with:
- Please note data...
- Weather outlook...
- Conditions at...
And to add some 'padding-left' and 'padding-right' (possibly 5-10 pixels) to the line beginning with:
- Hello and welcome...
Adding padding will move the text away from the edges of the blue-colored background - the display will look better...
- Please note data...
- Weather outlook...
- Conditions at...
And to add some 'padding-left' and 'padding-right' (possibly 5-10 pixels) to the line beginning with:
- Hello and welcome...
Adding padding will move the text away from the edges of the blue-colored background - the display will look better...
-
pacificblue03
- Posts: 425
- Joined: Sun 13 Jun 2010 12:35 am
- Weather Station: Davis vantage vue
- Operating System: windows 11
- Location: Sydney Australia
Re: Custom navigation Bar and DIV
ooh alright i shall do that as soon as i Finnish my class
Antonio.
Antonio.
-
gemini06720
- Posts: 1700
- Joined: Mon 10 Aug 2009 10:16 pm
- Weather Station: No weather station
- Operating System: No operating system
- Location: World...
Re: Custom navigation Bar and DIV
When will that be?pacificblue03 wrote:ooh alright i shall do that as soon as i Finnish my class
Are you sure you can wait that long...
I noticed something odd (wrong?) in the source code of your main page (index.htm) - there is that '<FONT#C6DEFF>' element just above the 'Hello and welcome to Ballina...' line.
So that you know, the '<font>...</font>' element has been deprecated in HTML 4.0 (as many other elements) in favor of CSS (cascading style sheets).
OK, getting back to the suggested padding for your 3 lines of text, the easy way is to add the padding information within the '<p>...</p>' elements that you have used for those lines. So, here are the suggested modifications:
Code: Select all
<p style="padding: 0 10px 0 10px;">Hello and welcome...</p><p style="padding-left: 10px;">Please note data is only...</p>
<p style="padding-left: 10px;">Weather outlook...</p>
<caption style="padding-left: 10px;">Conditions at...</caption>
-
pacificblue03
- Posts: 425
- Joined: Sun 13 Jun 2010 12:35 am
- Weather Station: Davis vantage vue
- Operating System: windows 11
- Location: Sydney Australia
Re: Custom navigation Bar and DIV
haha yes it was hard to wait that long haha i shall go NUTS with my page now 
Antonio
PS thanks for the above ^^ code
Antonio
PS thanks for the above ^^ code
-
pacificblue03
- Posts: 425
- Joined: Sun 13 Jun 2010 12:35 am
- Weather Station: Davis vantage vue
- Operating System: windows 11
- Location: Sydney Australia
Re: Custom navigation Bar and DIV
by the way how the <font tag is going downhill should i start to use css with any text styling?
Antonio.
Antonio.
-
pacificblue03
- Posts: 425
- Joined: Sun 13 Jun 2010 12:35 am
- Weather Station: Davis vantage vue
- Operating System: windows 11
- Location: Sydney Australia
Re: Custom navigation Bar and DIV
can i ask something dreamwever shows line 190 has a syntax error this is what is in the line
var temp = <#temptrend>;
so is this an error?
rest of code is
<script type="text/javascript">
var temp = <#temptrend>;
if (temp==0){var imagen = "steady.png";}
if (temp>0){var imagen = "up.png";}
if (temp<0){var imagen = "down.png";}
document.write('<img src="images/'+imagen+'"/>');
</script>
Antonio.
var temp = <#temptrend>;
so is this an error?
rest of code is
<script type="text/javascript">
var temp = <#temptrend>;
if (temp==0){var imagen = "steady.png";}
if (temp>0){var imagen = "up.png";}
if (temp<0){var imagen = "down.png";}
document.write('<img src="images/'+imagen+'"/>');
</script>
Antonio.
- mcrossley
- Posts: 14388
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: Custom navigation Bar and DIV
Dreamweaver is correct, but the <#temptrend> string will be replaced by a number when Cumulus processes the file. After processing the line will be valid. If you 'really' wanted to, you could probably avoid the error in dreamweaver by replacing the line with..
var temp = "<#temptrend>";
and the script would still work because variables in Javascript are only loosely typed, and the string value will automatically be converted to a number value when you compare the variable against a number in subsequent lines.
var temp = "<#temptrend>";
and the script would still work because variables in Javascript are only loosely typed, and the string value will automatically be converted to a number value when you compare the variable against a number in subsequent lines.
-
pacificblue03
- Posts: 425
- Joined: Sun 13 Jun 2010 12:35 am
- Weather Station: Davis vantage vue
- Operating System: windows 11
- Location: Sydney Australia
Re: Custom navigation Bar and DIV
u genius ima try this now
Antonio
Antonio
-
pacificblue03
- Posts: 425
- Joined: Sun 13 Jun 2010 12:35 am
- Weather Station: Davis vantage vue
- Operating System: windows 11
- Location: Sydney Australia
Re: Custom navigation Bar and DIV
So that worked very well i guess now all i can do is wait for some feedback / suggestions
Antonio
Antonio
-
gemini06720
- Posts: 1700
- Joined: Mon 10 Aug 2009 10:16 pm
- Weather Station: No weather station
- Operating System: No operating system
- Location: World...
Re: Custom navigation Bar and DIV
Yes, yes, yes...pacificblue03 wrote:by the way how the <font tag is going downhill should i start to use css with any text styling?
-
gemini06720
- Posts: 1700
- Joined: Mon 10 Aug 2009 10:16 pm
- Weather Station: No weather station
- Operating System: No operating system
- Location: World...
Re: Custom navigation Bar and DIV
Mark, that is an excellent suggestion - most if not all of the variables (or tags) should be placed between single or double quotes. The only variables that do not need to be placed inside quote marks are the 'true/false'.mcrossley wrote:... var temp = "<#temptrend>"; ...
I know some people are going to tell me that a script will still work when the quotes are not used, but that is sloppy programming...
-
gemini06720
- Posts: 1700
- Joined: Mon 10 Aug 2009 10:16 pm
- Weather Station: No weather station
- Operating System: No operating system
- Location: World...
Re: Custom navigation Bar and DIV
Antonio how about doing the same (padding) for the two line at the bottom of your page...pacificblue03 wrote:So that worked very well i guess now all i can do is wait for some feedback / suggestions