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 Wed Jun 14 2023, 14:33; 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 : 1476
Reputation : 262
Language : Ukr, Rus, Eng
Location : Ukraine
poesia-verses likes this post
Similar topics
» How to View and Alter CSS Code for Page Elements, e.g. Poll Background and Title Colors
» My Page Background; i want to change it!
» Page Background Picture Won't Change
» How to change background color of calendar widget
» How do i change the 'view last post' to 'view active topics' ?
» My Page Background; i want to change it!
» Page Background Picture Won't Change
» How to change background color of calendar widget
» How do i change the 'view last post' to 'view active topics' ?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum