Pop-Up Menu is quite different and like any tool has its positives and negatives.
Advice!
Before doing anything, it’s good if you save your code as a precaution.
Let’s begin with the javascript code! Put it before </head> tag.
In the code, look for:
<img src="http://tiny.cc/closeimg" class="btn_close" title="Close Window" alt="Close" /></a>
This is the code for the close image (the “X” that will be in the top right corner). You can replace the URL for your own image if you want.
Now you will put in your CSS the codes to customize your pop-up window.
#fade {
display: none;
background: #000;
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
opacity: .80;
z-index: 9999;
}
.popup_block{
display: none;
background: #FFFFFF;
padding: 20px;
float: left;
position: fixed;
top: 50%;
left: 50%;
z-index: 99999;
}
img.btn_close {
float: right;
margin: -55px -55px 0 0;
}
*html #fade {
position: absolute;
}
*html .popup_block {
position: absolute;
}
That is the simple code, you can add more features and change the colors (the popup_block is the code for the pop-up window).
Now this step requires attention! You will put this code where it’ll be the link to your pop up (HTML):
<a href="#?w=500" rel="popup_name" class="poplight"> Pop-Up Menu NAME </a>
Just need to change “Pop-Up Menu NAME”. Understanding better the code:
Now we’ll create the content! *You can put this in any part of HTML
<div id="popup_name" class="popup_block"> PAGE CONTENT HERE! </div>
Note that is same name in rel=”popup_name” and div id=”popup_name”!
That’s all!
I think that Pop-up menu it’s a nice way to create a “ask me” page. Like I use in SAKANA theme. To make it, you just need to put this code where will be the content:
<iframe frameborder="0" height="150" id="ask_form" scrolling="no" src="http://www.tumblr.com/ask_form/YOUR-TUMBLR-URL" width="100%"> </iframe>
And change for your TUMBLR URL WITHOUT THE “HTTP://” (like: starious.tumblr.com).
SOURCE: Karine Fernandes