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
Thumbnail viewer popup box & Record Light
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
Thumbnail viewer popup box & Record Light
if you go here http://www.westmeadnswweather.com/index.htm and hover over 24hr graphs
you click on one of the images
> how do i add another row under the white row with the image name?
> How can i configure or create something in css so it is more simple to edit and change around?
> How can i make a New Record flashing light and link it to my records.htm page?
Antonio.
you click on one of the images
> how do i add another row under the white row with the image name?
> How can i configure or create something in css so it is more simple to edit and change around?
> How can i make a New Record flashing light and link it to my records.htm page?
Antonio.
- 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: Thumbnail viewer popup box & Record Light
That is all handled by the thumbnailviewer.js you are using, not only does 'show' the picture, it creates the container and all its styles.pacificblue03 wrote: > how do i add another row under the white row with the image name?
> How can i configure or create something in css so it is more simple to edit and change around?
It's using the 'title' attribute in the link to create the image footer, you could eg.
title="The first line<br />The second line"
but that would also show in the mouseover of the link.
BTW - your navigation menu can cover the image if the page is not full screen !
In thumbnailviewer.js add the following line of code:
Code: Select all
centerDiv:function(divobj)
.......
........
divobj.style.zIndex="2000": // new line at end
}
This has been covered elsewhere.> How can i make a New Record flashing light and link it to my records.htm page?
Last edited by beteljuice on Mon 12 Sep 2011 11:30 am, edited 1 time in total.
......................Imagine, what you will KNOW tomorrow !
-
pacificblue03
- Posts: 425
- Joined: Sun 13 Jun 2010 12:35 am
- Weather Station: Davis vantage vue
- Operating System: windows 11
- Location: Sydney Australia
Re: Thumbnail viewer popup box & Record Light
does it matter where i apply that code? what is it for?
- 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: Thumbnail viewer popup box & Record Light
The beteljuice typed:
Is in the thumbnailviewer.js, at the end of the function:
centerDiv:function(divobj)
Immediately following the other divobj.stlye ... lines
Changing the z-index to a high number ensures that the image container 'sits' on top of everything else on the page.
The additional line of code:BTW - your navigation menu can cover the image if the page is not full screen !
Code: Select all
centerDiv:function(divobj)
.......
........
divobj.style.zIndex="2000": // new line at end
},centerDiv:function(divobj)
Immediately following the other divobj.stlye ... lines
Changing the z-index to a high number ensures that the image container 'sits' on top of everything else on the page.
Last edited by beteljuice on Mon 12 Sep 2011 2:21 pm, edited 1 time in total.
......................Imagine, what you will KNOW tomorrow !
-
pacificblue03
- Posts: 425
- Joined: Sun 13 Jun 2010 12:35 am
- Weather Station: Davis vantage vue
- Operating System: windows 11
- Location: Sydney Australia
Re: Thumbnail viewer popup box & Record Light
Very sorry
im still learning very very basic javascript and looking at this makes me go ....
so i guess im not going to succeed in this task you have given me. hopeless i know.
centerDiv:function(divobj){ //Centers a div element on the page
var ie=document.all && !window.opera
var dom=document.getElementById
var scroll_top=(ie)? this.standardbody.scrollTop : window.pageYOffset
var scroll_left=(ie)? this.standardbody.scrollLeft : window.pageXOffset
var docwidth=(ie)? this.standardbody.clientWidth : window.innerWidth-this.scrollbarwidth
var docheight=(ie)? this.standardbody.clientHeight: window.innerHeight
var docheightcomplete=(this.standardbody.offsetHeight>this.standardbody.scrollHeight)? this.standardbody.offsetHeight : this.standardbody.scrollHeight //Full scroll height of document
var objwidth=divobj.offsetWidth //width of div element
var objheight=divobj.offsetHeight //height of div element
var topposition=(docheight>objheight)? scroll_top+docheight/2-objheight/2+"px" : scroll_top+10+"px" //Vertical position of div element: Either centered, or if element height larger than viewpoint height, 10px from top of viewpoint
divobj.style.left=docwidth/2-objwidth/2+"px" //Center div element horizontally
divobj.style.top=Math.floor(parseInt(topposition))+"px"
divobj.style.visibility="visible"
},
im still learning very very basic javascript and looking at this makes me go ....
centerDiv:function(divobj){ //Centers a div element on the page
var ie=document.all && !window.opera
var dom=document.getElementById
var scroll_top=(ie)? this.standardbody.scrollTop : window.pageYOffset
var scroll_left=(ie)? this.standardbody.scrollLeft : window.pageXOffset
var docwidth=(ie)? this.standardbody.clientWidth : window.innerWidth-this.scrollbarwidth
var docheight=(ie)? this.standardbody.clientHeight: window.innerHeight
var docheightcomplete=(this.standardbody.offsetHeight>this.standardbody.scrollHeight)? this.standardbody.offsetHeight : this.standardbody.scrollHeight //Full scroll height of document
var objwidth=divobj.offsetWidth //width of div element
var objheight=divobj.offsetHeight //height of div element
var topposition=(docheight>objheight)? scroll_top+docheight/2-objheight/2+"px" : scroll_top+10+"px" //Vertical position of div element: Either centered, or if element height larger than viewpoint height, 10px from top of viewpoint
divobj.style.left=docwidth/2-objwidth/2+"px" //Center div element horizontally
divobj.style.top=Math.floor(parseInt(topposition))+"px"
divobj.style.visibility="visible"
},
- 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: Thumbnail viewer popup box & Record Light
So what's to misunderstandpacificblue03 wrote:Very sorry
im still learning very very basic javascript and looking at this makes me go ....![]()
![]()
so i guess im not going to succeed in this task you have given me. hopeless i know.
Revised code snippet::
Code: Select all
centerDiv:function(divobj){ //Centers a div element on the page
var ie=document.all && !window.opera
var dom=document.getElementById
var scroll_top=(ie)? this.standardbody.scrollTop : window.pageYOffset
var scroll_left=(ie)? this.standardbody.scrollLeft : window.pageXOffset
var docwidth=(ie)? this.standardbody.clientWidth : window.innerWidth-this.scrollbarwidth
var docheight=(ie)? this.standardbody.clientHeight: window.innerHeight
var docheightcomplete=(this.standardbody.offsetHeight>this.standardbody.scrollHeight)? this.standardbody.offsetHeight : this.standardbody.scrollHeight //Full scroll height of document
var objwidth=divobj.offsetWidth //width of div element
var objheight=divobj.offsetHeight //height of div element
var topposition=(docheight>objheight)? scroll_top+docheight/2-objheight/2+"px" : scroll_top+10+"px" //Vertical position of div element: Either centered, or if element height larger than viewpoint height, 10px from top of viewpoint
divobj.style.left=docwidth/2-objwidth/2+"px" //Center div element horizontally
divobj.style.top=Math.floor(parseInt(topposition))+"px"
divobj.style.visibility="visible"
divobj.style.zIndex="2000"
},......................Imagine, what you will KNOW tomorrow !
-
pacificblue03
- Posts: 425
- Joined: Sun 13 Jun 2010 12:35 am
- Weather Station: Davis vantage vue
- Operating System: windows 11
- Location: Sydney Australia
Re: Thumbnail viewer popup box & Record Light
OHHHHHHHHHH i see

-
pacificblue03
- Posts: 425
- Joined: Sun 13 Jun 2010 12:35 am
- Weather Station: Davis vantage vue
- Operating System: windows 11
- Location: Sydney Australia
Re: Thumbnail viewer popup box & Record Light
i still want that additional row for a <# tag to go on
im going to sleep now , goodnight
Antonio.
im going to sleep now , goodnight
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: Thumbnail viewer popup box & Record Light
Well i added that extra line of code but i still have no second area from my <tags> to go in so i just included my tags in the title
Antonio.
Antonio.