change background on view page
3 posters
Page 1 of 1
change background on view page
I need to change the background on the image view page, is it possible to add another style to the script for this?
https://stihi-podval.forumotion.com/viewimage?u=https%3A%2F%2Fi.servimg.com%2Fu%2Ff10%2F20%2F33%2F56%2F10%2Fa_58011.png
such a background is desirable
and one more thing: so that the link above the image changes color, (otherwise it will not be visible against such a background
in this code add styles for the above
https://stihi-podval.forumotion.com/viewimage?u=https%3A%2F%2Fi.servimg.com%2Fu%2Ff10%2F20%2F33%2F56%2F10%2Fa_58011.png
such a background is desirable
and one more thing: so that the link above the image changes color, (otherwise it will not be visible against such a background
- Code:
if (window.location.href.indexOf('viewimage') > -1) {
var style = document.createElement('style');
style.innerHTML = '#left { display: none; }';
document.head.appendChild(style);
}
in this code add styles for the above
Last edited by poesia-verses on June 14th 2023, 1:33 pm; edited 1 time in total
Re: change background on view page
Hello poesia-versos,
Here
to the color you want to use and
to the link
Here
- Code:
if (window.location.href.indexOf('viewimage') > -1) {
var style = document.createElement('style');
style.innerHTML = 'body { background-color: purple !important; }a[href="javascript:window.close()"] { color: #fff !important; } #left { display: none; }';
document.head.appendChild(style);
}
|
|
TonnyKamper and poesia-verses like this post
Re: change background on view page
Problem solved & topic archived.
|
Razor12345- Support Moderator
- Posts : 1586
Reputation : 268
Language : Ukr, Rus, Eng
Location : Ukraine
poesia-verses likes this post
Similar topics
» Background music not playing when in Guest view.
» User Cannot Scroll Page + Sudden Page Format Change
» Created a new portal page , not able to view it
» Jumping to the last page on mobile view
» Setting Groups so all members view the page.
» User Cannot Scroll Page + Sudden Page Format Change
» Created a new portal page , not able to view it
» Jumping to the last page on mobile view
» Setting Groups so all members view the page.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum