Jump to content
Sign in to follow this  
abdua5s

Help

Recommended Posts

hey i wanted to ask how to make a ad pop up on thwe side of page like there will be a box showing ad but a man who visits will click hide and it will collapse any idea how to do it i am using word press

Share this post


Link to post
Share on other sites

See...

 

http://www.w3schools.com/css/tryit.asp?filename=trycss_display_none

 

...which can easily be modified like this...

<!DOCTYPE html><html><head><meta charset="utf-8"><title>tab</title><style>.hidden { display: none;}.display {  display: block;  cursor:pointer;  background-color:yellow;}</style><script>window.onload = init;function init(){setTimeout(showit,5000);}function showit(){var it = document.getElementsByClassName('hidden')[0];it.className = 'display';it.onclick = hideit;}function hideit(){var it = document.getElementsByClassName('display')[0];it.className = 'hidden';}</script></head><body><h1>This is a visible heading</h1><h1 class="hidden">This is a hidden heading (Click Here)</h1><p>Notice that the h1 element with display: none; does not take up any space.</p></body></html>

Share this post


Link to post
Share on other sites

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.   Paste as plain text instead

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...