inherit
154107
0
Aug 30, 2022 7:55:29 GMT -8
endo
1,694
May 2010
endo69
|
Post by endo on May 10, 2021 14:37:19 GMT -8
I have a Halloween countdown image that updates every 24 hours and I was wondering if somewhere in the code I could add "transparent" to make the background transparent?
<a href="https://www.ilovehalloween.com"><img border="0" src="https://www.ilovehalloween.com/h/i/countdown-redbl.jpg"></a>
Thanks in advance for any help.
|
|
Kami
Forum Cat
Posts: 40,201
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,201
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on May 10, 2021 16:31:06 GMT -8
Just a friendly reminder to not hotlink images unless the host allows for it! (No accusations either way, but just a reminder in case).
Without seeing this in action, I can't say for sure, but generally speaking you cannot make backgrounds transparent with code in the manner most people think of when they think of making "backgrounds" transparent.
You can, however, set the opacity of an image -- but the image as a whole, including any text etc that the image may have in the foreground. If that's acceptable, it's an easy enough addition, but if you're only looking to make a portion of an image transparent you'll need an image editor.
Let me know if that is what you want? I'll provide the fix if its (:
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,017
January 2018
retread
|
Post by Retread on May 11, 2021 5:34:23 GMT -8
I have a Halloween countdown image that updates every 24 hours and I was wondering if somewhere in the code I could add "transparent" to make the background transparent? <a href="https://www.ilovehalloween.com"><img border="0" src="https://www.ilovehalloween.com/h/i/countdown-redbl.jpg"></a> Thanks in advance for any help.
Hi endoIf I understand correctly, you want to remove the black (#000000) background and retain only the red-orange (#CD3130) and gray (#242424) text? There isn't a proper way to do that, and here's why: As you already know, that countdown image is dynamic. The site changes it daily such that the number of days decreases each day. By using an image editor to strip the black, you could get the effect you want on today's image, then upload that (for instance as a theme image on your forum). But you'd need to repeat the process, each and every day so the number of days will be up to date. I'm sure you don't want to bother with that! Maybe if you contact them, www.ilovehalloween.com/contact/ they could provide a third choice for that particular (daily updating) image which has a transparent background. But I reckon they'll probably suggest you choose either the black background or the white background and call it close enough. Btw, that's an amazing site for people who are into Halloween. I don't see any third-party advertising at. Just a comprehensive collection of links to events, activities, and images. Way cool!
|
|
inherit
154107
0
Aug 30, 2022 7:55:29 GMT -8
endo
1,694
May 2010
endo69
|
Post by endo on May 11, 2021 10:16:58 GMT -8
Thanks Retread , I was thinking as much with the countdown changing daily, just thought maybe the background was static and only the text changed. And yes, it's a very cool site for Halloween fans, some great info. Anyway, thanks again for the reply!
Thank you Kami for the response as well!
|
|