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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.