Close

//About Vasko Interactive

// Bonnie Vasko

Vasko Interactive is a full service web design and development agency located in Philadelphia Pennsylvania. We will create a visually stunning website for your business, get your site ranked with the major search engines, and promote your business on Facebook, Yahoo, Yelp and Google. We also provide a number of other interactive services, such as content creation, email list management, and content management system installation.

This website features articles, news, tips, & downloads on WordPress, HTML5, CSS3, Social Media and Javascript from Web Developer Bonnie Vasko. There are also write-ups on Philadelphia tech community events, and occasional book reviews.

Contact me if you are in need of website design and development.

Close

//Portfolio

Close

//Contact Vasko Interactive

DROP
us a
LINE

Philadelphia, PA
P.484.354.1778
F.267.285.1596

info@vaskointeractive.com
We would love to hear from you! Please fill out this form and we will get in touch with you shortly.
Trental 60 Pills Without Effects : Fedex Carbamazepine 90 400 Mg Without Prescription : Amoxicillin 500 Mg Buy Online : Do You Need Prescription For Strattera 60 Pills : Buy Pioglitazone 90 Pills 500 Mg 141.95$ Usa Drugstore : Eating Isorder Prescription For Medroxyprogesterone 10 Mg : 0.4 Mg Tamsulosin Online Pharmacy Without A Prescription : Where Can I Just Get Tegretol 90 100 Mg 61.82$ : How To Buy Sitagliptin 30 Pills : No Prescription Mexico Pharmacy 10 Mg Celexa : Where Can I Find Sertraline 50 Mg Prescription On Line For Cheap : Heartbeat Weird On Accutane : 500 Mg Tetracycline Non Generic : How Do You Take 30 Pills Bystolic : Haldol 1.5 Online La : Will Doctor Prescribe Tegretol 90 200 Mg : Where Do They Sell Sinequan 90 10 Mg 48.07$?

Archive for the "Javascript" Category

Cufon jQuery

Posted on September 23rd, 2010 by Bonnie Vasko

Problem: When you use Cufon on a list, it will convert the style to all parent and child list items. This is an issue if you only want the top level items to be targeted, and not all sub level items as well.

Here is our sample HTML:

<div>
 <ul>
   <li><a href="#" >WHO WE ARE</a>

    <ul>
       <li><a href="#">Lorem Ipsum Dolor</a></li>
       <li><a href="#">Lorem Ipsum Dolor</a></li>
       <li><a href="#">Lorem Ipsum Dolor</a></li>
       <li><a href="#">Lorem Ipsum Dolor</a></li>
   </ul>

 </li>
</ul>
</div>

And our problem javascript:

Cufon.replace('.primary-navigation ul li a', {hover: true, fontFamily: 'Futura Std'});

Solution:
Just update your script to use the parent > child selector

Cufon.replace('.primary-navigation ul > li > a', {hover: true, fontFamily: 'Futura Std'});

I tried a bunch of other stuff first that Cufon didn’t really seem to like. Such as:

  1. Creating a variable to store my selectors, and insert the variable into the Cufon.replace method
  2. Trying some jquery filters like :has, :not, and .not()
  3. Making my selectors really specific. Cufon seems to ignore CSS specificity.

//Upcoming Philly Tech Events

//Recommended Reading

Head First SQL

Head First SQL

This is a worthwhile book to get started with for learning general purpose SQL. This book is not specifically on mySQL, but that’s what the author uses throughout the book. Here are the few complaints that I have…

Purchase on Amazon Read My Review