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

0 Members and 1 Guest are viewing this topic.

Offline tpweather

  • Firefighter
  • Senior Contributor
  • ****
  • Posts: 160
  • 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: 2155
  • 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


Offline PaulMy

  • Forecaster
  • *****
  • Posts: 4000
    • 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

Offline tpweather

  • Firefighter
  • Senior Contributor
  • ****
  • Posts: 160
  • 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: 6729
  • 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

 

anything