The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

change background on view page

3 posters

Go down

Solved change background on view page

Post by poesia-verses June 14th 2023, 12:57 pm

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
change background on view page Clipbo13

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
poesia-verses
poesia-verses
Forumember

Male Posts : 531
Reputation : 21
Language : and small english

https://stihi-podval.forumotion.com/

Back to top Go down

Solved Re: change background on view page

Post by tikky June 14th 2023, 1:11 pm

Hello poesia-versos,

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);
  }
Change
Code:
purple
to the color you want to use and
Code:
#fff
to the link
tikky
tikky
Forumember

Posts : 898
Reputation : 157
Language : 🇵🇹

https://www.forumotion.com/create-forum/modernbb

TonnyKamper and poesia-verses like this post

Back to top Go down

Solved Re: change background on view page

Post by poesia-verses June 14th 2023, 1:33 pm

solved
poesia-verses
poesia-verses
Forumember

Male Posts : 531
Reputation : 21
Language : and small english

https://stihi-podval.forumotion.com/

Back to top Go down

Solved Re: change background on view page

Post by Razor12345 June 14th 2023, 1:39 pm

Problem solved & topic archived.
Please read our forum rules: ESF General Rules


change background on view page Screen51
Razor12345
Razor12345
Support Moderator
Support Moderator

Male Posts : 1493
Reputation : 262
Language : Ukr, Rus, Eng
Location : Ukraine

poesia-verses likes this post

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum