bomozah Posted May 27, 2009 Share Posted May 27, 2009 Hello i have WHMCS Scripts & i'm trying to add a java+css menu in the header this is the menu http://www.dynamicdrive.com/style/csslibrary/item/jquery_multi_level_css_menu_2/ i have put the html in <body> area and it's seems every thing ok except when i put the Css code in the <head> like this <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="rtl"> <head> <base href="{$systemurl}" /> <link rel="stylesheet" type="text/css" href="templates/{$template}/style.css" /> <link rel="stylesheet" type="text/css" href="templates/{$template}/jqueryslidemenu.css" /> <!--[if lte IE 7]--!> <style type="text/css"> html .jqueryslidemenu{height: 1%;} /*Holly Hack for IE7 and below*/ </style> <![endif]--> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script> <script type="text/javascript" src="templates/{$template}/jqueryslidemenu.js"></script> <meta http-equiv="content-type" content="text/html; charset={$charset}" /> <title>{$companyname} - {$pagetitle}{if $kbarticle.title} - {$kbarticle.title}{/if}</title> </head> it's give me a white page how can i fix that ? 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted May 27, 2009 Share Posted May 27, 2009 Try {literal} {/literal} Around your JavaScript! 0 Quote Link to comment Share on other sites More sharing options...
bomozah Posted May 27, 2009 Author Share Posted May 27, 2009 thank you "BAJI26" i have fix the issues by removing this line <!--[if lte IE 7]> <style type="text/css"> html .jqueryslidemenu{height: 1%;} /*Holly Hack for IE7 and below*/ </style> <![endif]--> Regards 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted May 27, 2009 Share Posted May 27, 2009 Isn't that a condition fix for IE7 and Below?! 0 Quote Link to comment Share on other sites More sharing options...
siforek Posted May 27, 2009 Share Posted May 27, 2009 {literal} will take care of whatever you need to. But just keep in mind that if you're going to use smarty vars in your JS then you'll have to {/literal} before them and {literal} after. I'vev got a few foreach's in my JS and you should see all the {literal} tags 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.