STARIOUS
Place where I share stuff related to tumblr like themes and resources. Feel free to ask me anything if you need. I'll be happy to help you. Enjoy it! /

starious is run by yvi.
status: hiatus
Latest theme
theme: chronos

release on: 08/05/2012
Tutorial: Pop Up Menu

VIEW DEMO!

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.

CODE

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

tags: #tutorial #resource
  1. lashlights reblogged this from starious
  2. akekiku-themes reblogged this from redfox-themes
  3. beneficii reblogged this from alphathemes
  4. chalolite reblogged this from themesrec
  5. shoebox94themes reblogged this from starious
  6. shanhammer reblogged this from starious
  7. yongguq reblogged this from lmthemes
  8. atsuyeah reblogged this from regispectre
  9. femfinland reblogged this from starious
  10. melisandrelikesreferences reblogged this from starious
  11. heartcapsule reblogged this from starious
  12. guruum reblogged this from starious
Page 1 of 1