Christmas Decoration Issue
4 posters
Page 1 of 1
Christmas Decoration Issue
http://betheasbyte.forumotion.com
Hi guys.
Like the title says I have a funny, yet annoying issue.
I (purposely) have Christmas Lights and Garland at the top of my page as well as snow flurries falling. The issue is with the Garland when I go to read or make a post. It's like it resizes itself to cover my entire banner. What can I do (if anything) to resolve this annoyance?
Hi guys.
Like the title says I have a funny, yet annoying issue.
I (purposely) have Christmas Lights and Garland at the top of my page as well as snow flurries falling. The issue is with the Garland when I go to read or make a post. It's like it resizes itself to cover my entire banner. What can I do (if anything) to resolve this annoyance?
Last edited by The Last Outlaw on Sat Dec 14 2019, 20:58; edited 1 time in total
Re: Christmas Decoration Issue
Hello,
Just replace your garland script with that one :
Just replace your garland script with that one :
- Code:
var garland = 2; var howhigh = 110;
$(function() {
var garlandSources = ['https://i.imgur.com/JlA9EbE.png', 'https://i.imgur.com/R3azwF4.png', 'https://i.imgur.com/CcX2vOx.png'];
var g = (typeof garland !== 'undefined') ? garland : 0;
var hei = (typeof howhigh !== 'undefined') ? howhigh : 110;
var css = ".christmas_garland { width: 100%; position: absolute; z-index:1; top: 0; left: 0; background-image: url('" + garlandSources[g] + "'); background-size: auto 100%; height: " + hei + "px;";
$('body').prepend('<div class="christmas_garland"></div>');
$('head').append("<style>" + css + "</style>");
});
Re: Christmas Decoration Issue
Neptune- wrote:Hello,
Just replace your garland script with that one :
- Code:
var garland = 2; var howhigh = 110;
$(function() {
var garlandSources = ['https://i.imgur.com/JlA9EbE.png', 'https://i.imgur.com/R3azwF4.png', 'https://i.imgur.com/CcX2vOx.png'];
var g = (typeof garland !== 'undefined') ? garland : 0;
var hei = (typeof howhigh !== 'undefined') ? howhigh : 110;
var css = ".christmas_garland { width: 100%; position: absolute; z-index:1; top: 0; left: 0; background-image: url('" + garlandSources[g] + "'); background-size: auto 100%; height: " + hei + "px;";
$('body').prepend('<div class="christmas_garland"></div>');
$('head').append("<style>" + css + "</style>");
});
Awesome piece of coding, @Neptune- Thank you so much!
EDIT:
One more thing. If I want to change the garland at anytime, what do I do? Change the number?
Re: Christmas Decoration Issue
hello
Please change the title of your topic to something that is related to your question/issue, so that other users will be able to find their question/issue using the search engine.
|
Re: Christmas Decoration Issue
Hello.skouliki wrote:hello
Please change the title of your topic to something that is related to your question/issue, so that other users will be able to find their question/issue using the search engine.
Please read our forum rules: ESF General Rules
This is relevant to my previous question. This code that @Neptune gave me (and I'm very appreciative of it) I wanted to know if it's changeable.
Re: Christmas Decoration Issue
skouliki wrote:i know that
iam talking about the topic title
O I C.
No Problem and DONE
Re: Christmas Decoration Issue
You can change the first line of the script with 0, 1 or 2 for garland value.
You can even change garlands themselves editing line 3 (garlandSources variable) with new pictures
You can even change garlands themselves editing line 3 (garlandSources variable) with new pictures
I've coded nothing, just took original script and replaced variable height (already used by text editor) with variable howhighThe Last Outlaw wrote:Awesome piece of coding, @Neptune- Thank you so much!
Re: Christmas Decoration Issue
Neptune- wrote:You can change the first line of the script with 0, 1 or 2 for garland value.
You can even change garlands themselves editing line 3 (garlandSources variable) with new picturesI've coded nothing, just took original script and replaced variable height (already used by text editor) with variable howhighThe Last Outlaw wrote:Awesome piece of coding, @Neptune- Thank you so much!
Thank you so much. Now this one is SOLVED!
Re: Christmas Decoration Issue
Topic Solved & Archived
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Similar topics
» Halloween Decoration
» christmas decoration
» How to apply this Christmas decoration on my site?
» Christmas Deals: Great Presents and discount for Christmas!
» No decoration
» christmas decoration
» How to apply this Christmas decoration on my site?
» Christmas Deals: Great Presents and discount for Christmas!
» No decoration
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum