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

0 Members and 1 Guest are viewing this topic.

Offline vinesweather

  • Senior Contributor
  • ****
  • Posts: 293
    • The Vines Weather
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: 2295
    • CNYWeather
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: 5509
    • 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 »

Offline vinesweather

  • Senior Contributor
  • ****
  • Posts: 293
    • The Vines Weather
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: 9257
  • 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, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP