Author Topic: Missing banner image with "style" present  (Read 703 times)

0 Members and 1 Guest are viewing this topic.

Offline miraculon

  • Sunrise Side Weather
  • Forecaster
  • *****
  • Posts: 4109
  • KE8DAF
    • Sunrise Side Weather in Rogers City MI USA
Missing banner image with "style" present
« on: October 25, 2022, 03:35:41 PM »
After working fine for years, I saw that my banner image was suddenly missing from my web site. I checked the image itself and it was fine as below.



I checked other sites and noticed that my header.php had a "style" declaration as below:

Code: [Select]
<a href="index.php" title="Browse to homepage"><img style="border:none;border-radius: 12px;padding-top: 1px;" src="http://www.rogerscityweather.com/SSWbanner3.png" alt="Sunrise Side Weather Banner" width=800></a>
I removed it as follows:

Code: [Select]
<a href="index.php" title="Browse to homepage"><img src="http://www.rogerscityweather.com/SSWbanner3.png" alt="Sunrise Side Weather Banner" width=800></a>
And it was back working again.

Anyone have any idea on why this used to work and is suddenly not. I'll leave it with the "style" removed, but I am curious as to why it quit working with it present. I think that this was added at some point to give rounded corners to the banner image, if I remember correctly.

For some context for the above line(s), here is the area in the header.php file:

Code: [Select]
<div id="header">
      <h1 class="headerTitle">
        <a href="index.php" title="Browse to homepage"><img src="http://www.rogerscityweather.com/SSWbanner3.png" alt="Sunrise Side Weather Banner" width=800></a>
      </h1>
  <div class="headerTemp">
    <span class="doNotPrint">
    <span class="ajax" id="ajaxbigtemp"><?php print isset($tempnodp)?"$tempnodp$tuom":"&nbsp;"?>
  </span>
</span>
    </div>


Greg H.



Blitzortung Stations #706 and #1682
CoCoRaHS: MI-PI-1
CWOP: CW4114 and KE8DAF-13
WU: KMIROGER7
Amateur Radio Callsign: KE8DAF

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9297
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Missing banner image with "style" present
« Reply #1 on: October 25, 2022, 03:42:23 PM »
It was likely caused by using http:// instead of https:// on the banner image.  Your site uses HTTPS and mixed (http) images and javascripts are blocked by browsers when viewing a site using https
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 miraculon

  • Sunrise Side Weather
  • Forecaster
  • *****
  • Posts: 4109
  • KE8DAF
    • Sunrise Side Weather in Rogers City MI USA
Re: Missing banner image with "style" present
« Reply #2 on: October 25, 2022, 03:50:07 PM »
It was likely caused by using http:// instead of https:// on the banner image.  Your site uses HTTPS and mixed (http) images and javascripts are blocked by browsers when viewing a site using https

I'll revert it and give it a try with https are report back...

Greg H.


Blitzortung Stations #706 and #1682
CoCoRaHS: MI-PI-1
CWOP: CW4114 and KE8DAF-13
WU: KMIROGER7
Amateur Radio Callsign: KE8DAF

Offline miraculon

  • Sunrise Side Weather
  • Forecaster
  • *****
  • Posts: 4109
  • KE8DAF
    • Sunrise Side Weather in Rogers City MI USA
Re: Missing banner image with "style" present
« Reply #3 on: October 25, 2022, 03:59:06 PM »
OK, that worked. I tried a relative addressing as below and that works too, as expected.

Code: [Select]
<a href="index.php" title="Browse to homepage"><img style="border:none;border-radius: 12px;padding-top: 1px;" src="SSWbanner3.png" alt="Sunrise Side Weather Banner" width=800></a>
Greg H.
« Last Edit: October 25, 2022, 04:01:32 PM by miraculon »


Blitzortung Stations #706 and #1682
CoCoRaHS: MI-PI-1
CWOP: CW4114 and KE8DAF-13
WU: KMIROGER7
Amateur Radio Callsign: KE8DAF

Offline miraculon

  • Sunrise Side Weather
  • Forecaster
  • *****
  • Posts: 4109
  • KE8DAF
    • Sunrise Side Weather in Rogers City MI USA
Re: Missing banner image with "style" present
« Reply #4 on: October 25, 2022, 04:01:08 PM »
Thanks for the hint, Ken!

Greg H.


Blitzortung Stations #706 and #1682
CoCoRaHS: MI-PI-1
CWOP: CW4114 and KE8DAF-13
WU: KMIROGER7
Amateur Radio Callsign: KE8DAF