Hi,
Another query from me
I have a link that runs almost down the right hand side of my map, now when I mouse over this link to display the usage graph it is displyed with half the grpah of the page to the right, is there anyway Weathermap can be made to show the popup to the left of the mouse pointer when on the right hand side of the screen and visa versa for the left hand side?
Thanks.
Mouseover Data source Issue
Moderators: Developers, Moderators
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: Mouseover Data source Issue
Yes. Set the OVERLIBWIDTH and OVERLIBHEIGHT, and then weathermap has enough information to figure out that it needs to do this.Syngress wrote:Hi,
Another query from me
I have a link that runs almost down the right hand side of my map, now when I mouse over this link to display the usage graph it is displyed with half the grpah of the page to the right, is there anyway Weathermap can be made to show the popup to the left of the mouse pointer when on the right hand side of the screen and visa versa for the left hand side?
Thanks.
If all your graphs come from the same source (e.g. Cacti), then you can do this for all graphs at once by adding those two lines to the LINK DEFAULT section at the top of the config file.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
-
- Cacti User
- Posts: 59
- Joined: Tue Dec 19, 2006 4:35 pm
Howie:
I had the same issue as well. I remember playing around with it a while back, and the real issue is that when you try to force the graph to be on the left, above the mouse, the overlib covers up the link your hovering over, causing a loop or a blink effect.. Fooling around with the OVERLIBWIDTH and OVERLIBHEIGHT didn't fix this issue, the only resolution was to force the graph to the right (which looked bad)
I just played around with it again, this time looking in the overlib.js file. I made some changes and it fixed my issue. Here is the section I modified:
Obviously this isn't the place to make the change, since it's global; it should really be done within weathermap, perhaps on a per-link basis. Looking ahead, to v1.0 (or whatever version your moving towards), you might want to add an option to set the relx/y positions of the overlib. This would make them look better on a lot of maps (well at least mine ).
Hope this helps!
I had the same issue as well. I remember playing around with it a while back, and the real issue is that when you try to force the graph to be on the left, above the mouse, the overlib covers up the link your hovering over, causing a loop or a blink effect.. Fooling around with the OVERLIBWIDTH and OVERLIBHEIGHT didn't fix this issue, the only resolution was to force the graph to the right (which looked bad)
I just played around with it again, this time looking in the overlib.js file. I made some changes and it fixed my issue. Here is the section I modified:
As you can see, I changed the ol_offsety to 40 instead of 10. This forces the overlib to be offset a bit more, pushing it above the mouse (NOTE: this also pushes the graph further down when the graph is below the mouse!). Voila, no more issues!if (typeof ol_offsetx=='undefined') var ol_offsetx=10;
if (typeof ol_offsety=='undefined') var ol_offsety=40;
Obviously this isn't the place to make the change, since it's global; it should really be done within weathermap, perhaps on a per-link basis. Looking ahead, to v1.0 (or whatever version your moving towards), you might want to add an option to set the relx/y positions of the overlib. This would make them look better on a lot of maps (well at least mine ).
Hope this helps!
Who is online
Users browsing this forum: No registered users and 0 guests