Archive for August, 2008

All posts written in August, 2008.

jQuery + CSS + XHTML = Jappler Menus v2

Posted by: Jen | 6 Comments »

Categorized: CSS, HOWTOs, HTML/XTML, Javascript, Web Development

Previously – I introduced a nice way to create drop down menus using HTML (lists), Javascript (drop down), and CSS (styling of menu). I put all of this together and called it: Jappler Menus. (See previous post about Jappler Menus).

Since writing that post – I have found a better, faster, cleaner way to work with drop down menus. I had originally seen some nice menus: http://help-developer.com and decided with some changes – that would be a much nicer way to work with menus. For this – I give you Jappler Menus version 2.

Here is an example of Jappler Menus in action: http://jappler.com/downloads/jappler-menus_v2/

There are 3 main components to the Jappler menus: HTML, Javascript (jQuery), and CSS.

  1. The HTML to generate the menu contents. All you need to use to create the menu is create a simple HTML list:
    <ul>
    	<li><a href="#">Home</a></li>
    	<li><a href="#">About Us</a>
    		<ul>
    			<li><a href="#">Our Story</a></li>
    			<li><a href="#">Our Clients</a></li>
    			<li><a href="#">Our Philosophy</a></li>
    		</ul>
    	</li>
    	<li><a href="#">Our Products</a>
    		<ul>
    		       <li><a href="#">WordPress Themes</a></li>
    		       <li><a href="#">WordPress Plugins</a></li>
    		       <li><a href="#">WordPress Consultation</a></li>
    	         </ul>
    	</li>
    	<li><a href="#">HOWTOs</a>
    		<ul>
    			<li><a href="#">bbPress</a></li>
    		        <li><a href="#">WordPress</a></li>
    		        <li><a href="#">General</a>
    		        	<ul>
    					<li><a href="#">CSS</a></li>
    					<li><a href="#">XHTML</a></li>
    					<li><a href="#">Javascript</a></li>
    				</ul>
    			</li>
    	         </ul>
    	</li>
    	<li><a href="#">Archives</a></li>
    	<li><a href="#">RSS Feed</a></li>
    </ul>
    
  2. The javascript that makes the drop downs fade in and out. This uses jQuery and then some custom JS that takes care of our menu:
    function japplerMenu(){
    $(" #navigation ul ").css({display: "none"}); // Opera Fix
    $(" #navigation li").hover(function(){
    		$(this).find('ul:first').css({visibility: "visible",display: "none"}).fadeIn(200);
    		},function(){
    		$(this).find('ul:first').css({visibility: "hidden"});
    		});
    }
     $(document).ready(function(){
    	japplerMenu();
    });
    

    }

  3. The CSS to make things look pretty.Here is the custom CSS that is needed:
    #mainNav {height:30px;background: url('images/mainNav_bg.gif') repeat-x;width:623px;}
    #navigation, #navigation ul{position:relative;z-index:1000;list-style-type:none;list-style-position:outside;margin:0;padding:0;}
    #navigation a {display:block;padding:0 20px 0 20px;font-size:1.1em;font-weight:bold;color:#fff;text-decoration:none;line-height:30px;}
    #navigation li:hover {background: url('images/mainNav_bg-over.gif') repeat-x;}
    #navigation li:hover a {color:#fff;}
    #navigation li{float:left;position:relative;}
    #navigation ul {width:165px;position:absolute;left:-1px;top:29px;display:none;background:#f1f4f2;border:1px solid #4b4d5b;border-bottom:none;}
    #navigation li:hover li a {color:#333;}
    #navigation li ul a {float:left;width:155px;line-height:normal;font-weight:normal;font-size:.95em;text-align:left;border-bottom:1px solid #4b4d5b;background:#f1f4f2;height:auto;padding:5px;}
    #navigation li ul a:hover {background:#a4a5a9;color:#000;}
    #navigation ul ul{top:auto;}
    #navigation li ul ul {left:160px;margin:0;}
    #navigation li:hover ul ul, #navigation li:hover ul ul ul, #navigation li:hover ul ul ul ul{display:none;}
    #navigation li:hover ul, #navigation li li:hover ul, #navigation li li li:hover ul, #navigation li li li li:hover ul{display:block;}
    

    There is also some additional CSS for IE 6. (See IE 6 specific CSS). You can add some conditional logic to include this for only IE 6 (See the example source above – look in the header for the conditional code.)

These menus are compatible with IE 6+, Safari 2+, Opera 9+, and FF 2+. If you want it to work in IE 6 – I have a start on some CSS that will make it work.

Quick CSS for WordPress Images

If you install WordPress and use the media uploader to manage your images in your posts – you can easily style your images quickly by adding the following code to your theme’s stylesheet.

img.alignright, img.aligncenter, img.alignleft {padding:4px;background:#efefef;border-color: #aaa #ccc #ddd #bbb;border-style: solid;border-width: 1px;}
img.alignright {float:right;margin-left:5px;}
img.alignleft, img.alignnone {float:left;margin-right:5px;}
img.aligncenter {display: block;margin-left: auto;margin-right: auto;}

This code will set up your images to float appropriately, as well as give a nice border as seen below.

Christmas in DC

Note* This information is now updated: Updated CSS

Seriously Apple – Find an iMovie Interface and Stick to It

Posted by: Jen | No Comments »

Categorized: Apple, Serenity Now!

Wow. How many times will Apple release a new version of iMovie and completely change the interface and how it works? I cannot tell you how many versions now I have used of iMovie that were completely different than the previous. Each time I have to either waste an hour or so to figure out how to work with my media or read the manual. Good thing I am not afraid to do both – but I feel bad for people who are not as patient as I am.

Amy recently took a grad class on technology in the classroom and the instructor on the last day was going to show everyone how to use iMovie, but unfortunately, the computer they provided to him was new and had the new version of iMovie (iMovie 7) and he was used to iMovie 6…and so he could not do anything. Seriously Apple…

PS – Happy birthday Salsa and the iMac!

HD Finally!

Posted by: Jen | No Comments »

Categorized: Serenity Now!, TV

Phew – finally after I much frustration and a crappy picture – I am making the move to HD. We wanted to get HD a year or so ago when I first bought the big HD TV, but Comcast did not offer the Big Ten Network (for all our Penn State games) and DirecTV could not get all the needed HD signals because of a few trees in our yard. This week I was determined to get HD so it was a matter of either getting some trees trimmed or hoping Comcast and the Big Ten Network finally came to an agreement. Luckily – the later happened and as of tonight – we will be watching the Olympics in HD. Hello clarity!

Tagged: , , ,

My Favorite Thing About the Olympics

Posted by: Jen | No Comments »

Categorized: Entertainment, TV

When it is time for the Olympics – I end up getting sucked into watching all kinds of sports that I never would think about even enjoying (ice skating, track and field, swimming, etc) and I keep thinking – what is it about these sports that draws me in from “eh…to a heart racing suspense finish.” Normally the last thing I want to watch on TV is figure skating. After about two minutes into the Olympics opening ceremony, I figured out what it is that draws me in – the stories….and everyone seems to have one. The stories make me want these athletes to win regardless of what sport they are participating in. As soon as Bob Costas starts in on a story – I am hooked and all the sudden I want to watch figure skating and care about synchronize diving. I love it an I am so excited the Olympics are on now.

For some Olympic memorable moments, check out: The 5 Most Chill-Inducing Olympic Moments

Tagged:

Generation Instant Access

Posted by: Jen | 1 Comment »

Categorized: People

I recently went on a trip which required a long car ride with my son. I figured he would do fine – just as I did when I was his age. I did not have a DVD player and was entertained by just looking out the window or listening to my parent’s 8 tracks. When Amy suggested we bring along a portable DVD player so Evan could watch DVDs in the car to keep him content I was very against it. I have a thing about him not being too dependent on constant entertainment (TV) but in the end, Amy would not give up and we brought the DVD player. Evan spent almost 20 hours in the car in a 4 day period and I do not think we heard one cry, or scream. I am still not excited with the DVD player in the car, but after listening to Amy talk about the grad class she is taking on technology and this generation – it made me think.

This generation of kids has just about everything they want entertainment-wise at any moment. Not only do they have TV – they have several TVs. Not only do they have several TVs, they have hundreds of channels. Not only do they have hundreds of channels, they have the ability to watch their shows/movies without commercials using DVRs, TiVOs, etc. They do not need to get in the car and go to the theatre to watch a movie – they do not even need to go to Blockbuster – they can just automatically download it or order it using their Apple TV or cable box. So – with all of this – there is more. I carry around movies and shows on my iPhone so now they can even watch what the want, listen to what they want anywhere. Instant access to entertainment everywhere, every second of every day.

I will be very interested to see how this turns out long term. Will tuning out become the hip thing in 10 years or will being connected to constant entertainment get even more personal?

Where Have I Been?

Posted by: Jen | No Comments »

Categorized: General

In the last two weeks, I have been crazy busy and…:

  • In New York
  • On conference calls
  • On more conference calls
  • Playing Mario Cart
  • Not blogging

I will try to post some more and finally post an updated Jappler menus post.

Tagged: ,