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

0 Members and 1 Guest are viewing this topic.

Offline vinesweather

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




Offline PaulMy

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

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

Offline vinesweather

  • Forecaster
  • *****
  • Posts: 304
    • The Vines Weather
Re: Small Gif to menu items
« Reply #5 on: April 07, 2024, 10:39:46 AM »
Hi
I'm on sick leave due to a hand injury so thought I'd work on my site. Though I'm still quite dumb in where to put the correct code lol. You will get fed up with me soon asking so many questions...

In my fly out menu, I've got the new gif working on links under main headings, but where do I place in the main heading to show there is new content?

For example, next to the main heading "Reports"

https://vinesweather.com/index.php

Many thanks

Chris


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9278
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Small Gif to menu items
« Reply #6 on: April 07, 2024, 04:23:02 PM »
In the
Quote
<item caption="Reports">
entry like
Quote
<item caption="Reports" img="ajax-images/blinking_new.gif" align="right">
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

Offline vinesweather

  • Forecaster
  • *****
  • Posts: 304
    • The Vines Weather
Re: Small Gif to menu items
« Reply #7 on: April 07, 2024, 09:17:03 PM »
Brilliant as always. Thanks Ken. Much appreciated.

 

anything