Jump to content

Changeable fixed image behind the text


Certis

Recommended Posts

Greetings.

 

I require assistance with something. I'm not entirely sure with what it could be solved, but I had a feeling that it would probably be JavaScript.

 

I'd like to place an image to some of my WordPress posts, that would appear behind the text, yet stay fixed there, like a background image.

 

By default, it should stay hidden, but when clicking a link (which is where JavaScript comes into play, I assume) it would appear in my post, behind the text, fixed, not up or down when people scroll.

 

I know this is a really selfish request for help, but I'd also like if I could somehow click on other links as well, further along in my WordPress posts, that would change that image and disable (hide) it, when necessary.

 

I would be extremely grateful if someone could tell me how to do that.

Link to comment
https://forums.phpfreaks.com/topic/210878-changeable-fixed-image-behind-the-text/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.