Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 03-01-2013, 09:19 AM   #1
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
loading css3 media queries on ie9 and below

css3media queries js library is used for on ie9 or below, anyone know if I load it for all ie, it will interfere with ie10.

normally i would do something like this in wordpress

Code:
wp_enqueue_style( 'customcss', get_template_directory_uri() . "/css/ie9.css");
$wp_styles->add_data( 'customcss', 'conditional', 'lt IE 9' );
which adds:

Code:
<!--[if lt IE 9]> ... <![endif]-->
but unfortunately its only availble for styles.

so im using the global is_IE, so it loads on all ie's.

Code:
global $is_IE;
	if ($is_IE) {
		wp_enqueue_script('css3_mediaqueries', 'http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js');
	}
would like input on the issue loading on all ie's
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.