Author Topic: Small Gif to menu items  (Read 501 times)

0 Members and 1 Guest are viewing this topic.

Offline tpweather

  • Firefighter
  • Senior Contributor
  • ****
  • Posts: 161
  • Be patient...I'm a firefighter not a computer whiz
    • Tom Price Weather Centre
Small Gif to menu items
« on: January 22, 2018, 11:59:23 AM »
Hi
I have searched this forum for the answer but no luck so sorry if this is a repeat. I wish to add a small "New" gif to the xml menu in Saratoga Template when I update something. Can someone please tell me the right code.
Many thanks
Chris

Offline CNYWeather

  • Forecaster
  • *****
  • Posts: 2165
  • Yeah, I'm hugging my traffic light.
    • http://www.cnyweather.com
Re: Small Gif to menu items
« Reply #1 on: January 22, 2018, 12:04:43 PM »
Here's an example for you. Just replace my "new.gif" with whatever you have
and which folder it's in. Mine is in the root directory. If you dont have one,
mine is attached below.

Code: [Select]
<item caption="Nest Cam Front" img="new.gif" align="right" link="nestfront.php" />
Tony




Online PaulMy

  • Forecaster
  • *****
  • Posts: 4179
    • KomokaWeather
Re: Small Gif to menu items
« Reply #2 on: January 22, 2018, 12:12:28 PM »
In my flyout-menu.xml I have
Code: [Select]
<item caption="Ontario Roads" img="ajax-images/blinking_new.gif">Just replace the path and file with the one you want.

This reminded me to take that out as no longer new :oops:

Enjoy,
Paul
www.komokaweather.ca
« Last Edit: January 22, 2018, 02:56:21 PM by PaulMy »
Davis Vantage Pro 2 Plus 24-FARS Wireless
Envoy/USB DataLogger/Cumulus v.1.9.4   -   Vue Console/WiFiLogger
Komoka, ON  Canada
www.komokaweather.ca   www.komokaweather.com   www.komokaweather.com/weather28/   www.komokaweather.com/pws/index.php
Blitzortung Station #1076 www.lightningmaps.org/blitzortung7/america/index.php?bo_page=statistics&bo_show=network&lang=en&bo_station_id=969

Offline tpweather

  • Firefighter
  • Senior Contributor
  • ****
  • Posts: 161
  • Be patient...I'm a firefighter not a computer whiz
    • Tom Price Weather Centre
Re: Small Gif to menu items
« Reply #3 on: January 22, 2018, 12:14:19 PM »
Legends! Many thanks guys.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6883
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Small Gif to menu items
« Reply #4 on: January 22, 2018, 12:42:15 PM »
For reference, the details on what is handled with the flyout-menu in the Saratoga templates is here
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP