Solved

CSS/Javascript header looking good in IE6,7,8 & FF

Posted on 2010-09-17
5
443 Views
Last Modified: 2012-05-10
We are trying to get the header on this page:

https://nlpca.infusionsoft.com/cart/store.jsp?skinId=19

to look like the header here:

shop.nlpca.com

in all browsers and with no errors. Also, many of our images are broken

We're using infusionsoft, a marketing company and software. I've attached our main code except for the footer and some of the body that is generated by infusionsoft.


<!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" lang="_LANGUAGE" xml:lang="_LANGUAGE">

<head>

<meta http-equiv="Content-Type" content="text/html; _ISO" />

  <base href="http://shop.nlpca.com/" />

  <meta http-equiv="content-type" content="text/html; charset=utf-8" />

  <meta name="robots" content="index, follow" />

  <meta name="keywords" content="NLP Books, NLP Book, NLP CD, NLP Courses DVD" />

  <meta name="title" content="NLP Books | NLP Book | NLP CD | NLP Courses DVD" />

  <meta name="author" content="Administrator" />

  <meta name="description" content="NLPCA's book shop carries a variety of the best NLP Books. Each NLP book or NLP CD gives you access to the newest NLP technology. More NLP Course DVDs are coming soon." />



  <meta name="generator" content="Joomla! 1.5 - Open Source Content Management" />

  <title>NLP Books | NLP Book | NLP CD | NLP Courses DVD</title>

  <link href="https://www.shop.nlpca.com/templates/nlpcashop/favicon.ico" rel="shortcut icon" type="image/x-icon" />

  <script type="/text/javascript" src="https://www.shop.nlpca.com/media/system/js/mootools.js"></script>

  <script type="text/javascript" src="https://www.shop.nlpca.com/media/system/js/caption.js"></script>



<link rel="shortcut icon" href="https://www.shop.nlpca.com/favicon.ico" />

<link href="http://shop.nlpca.com/templates/nlpcashop/css/template.css" rel="stylesheet" type="text/css" />

<link href="http://shop.nlpca.com/templates/nlpcashop/css/menu.css" rel="stylesheet" type="text/css" />



<script type="text/javascript" src="https://www.shop.nlpca.com/templates/nlpcashop/js/moomenu.js"></script>

<script type="text/javascript" src="https://www.shop.nlpca.com/templates/nlpcashop/js/mootools.bgiframe.js"></script>



<script type="text/javascript">

window.addEvent('domready', function() {

	new Ijmoomenu($E('ul.menu'), {

		bgiframe: 0,

		delay: 500,

		animate: {

			props: ['opacity', 'width', 'height'],

			opts: {

				duration: 500,

				fps: 150,

				transition: Fx.Transitions.Expo.easeOut			}

		}

	});

});

</script>



<!--[if lte IE 6]>

<link rel="stylesheet" type="text/css" href="/templates/nlpcashop/css/ie.css" />

<link href="/templates/nlpcashop/css/pngfix.css" media="screen" rel="stylesheet" type="text/css" />  

<![endif]-->



</head>



<body>







<div id="container">



<div id="header">

    

    <div id="css-menu" class="moomenu">	

						<ul class="menu"><li id="current" class="active item1"><a href="http://shop.nlpca.com/"><span>Shop Home</span></a></li><li class="item76"><a href="http://www.nlpca.com"><span>NLP California</span></a></li><li class="item74"><a href="http://www.thewealthymind.com" target="_blank"><span>The WealthyMind</span></a></li><li class="item75"><a href="http://nlpcacenterpoint.ning.com/" target="_blank"><span>NLP Center Point</span></a></li></ul>					

		<div style="clear:both;"></div>



	</div>



</div>



<div id="left">

<div id="leftmenu">

<a href="http://shop.nlpca.com"><span id="logo"></span></a>

		<div class="module_menu">

			<div>

				<div>

					<div>

											<ul class="menu"><li class="item20"><a href="http://www.shop.nlpca.com//dvds.html"><span>DVDs</span></a></li><li class="item71"><a href="http://www.shop.nlpca.com/audio.html"><span>Audio</span></a></li><li class="item72"><a href="http://www.shop.nlpca.com/books.html"><span>Books</span></a></li><li class="item73"><a href="http://www.shop.nlpca.com/contact.html"><span>Contact</span></a></li></ul>					</div>



				</div>

			</div>

		</div>

	

</div>

<a href="http://www.nlpca.com"><span id="nlpcahome"></span></a>

		<div class="module">

			<div>

				<div>

					<div>



														</div>

				</div>



			</div>

		</div>

	

</div>





<div id="content-left">



 <table class="contentpaneopen">

Open in new window

0
Comment
Question by:weikelbob
  • 2
  • 2
5 Comments
 
LVL 82

Accepted Solution

by:
Dave Baldwin earned 250 total points
ID: 33706511
The code that you have posted is not exactly the code on the page you're talking about.  The code on the page is not formatted correctly.
0
 
LVL 7

Author Comment

by:weikelbob
ID: 33706559
What specifically is wrong with the code on the page?
0
 
LVL 82

Expert Comment

by:Dave Baldwin
ID: 33706605
Several things are out of place.  If you click on your link above and 'View Source', you will see that it doesn't match what you posted above.  That link for 'jquery' shouldn't be there at all because apparently 'jquery' and 'mootools' don't play well together.  The large section of CSS starting at line 123 should be in the <head> section of your document.  And that "Powered By" at the end of the file is outside the document boundaries.
0
 
LVL 3

Assisted Solution

by:ashley2009
ashley2009 earned 250 total points
ID: 33706951
i just want to add that:

I agree with others. The page structure is wrong. generally an HTML page's structure would be like:
<html>
  <head>
    <title>Hello HTML</title>
<script type="text/javascript" src="/js/jquery/jquery.js"></script>
<script type="/text/javascript" src="https://www.shop.nlpca.com/media/system/js/mootools.js"></script>
  <script type="text/javascript" src="https://www.shop.nlpca.com/media/system/js/caption.js"></script>
<link href="http://shop.nlpca.com/templates/nlpcashop/css/template.css" rel="stylesheet" type="text/css" />

<link href="http://shop.nlpca.com/templates/nlpcashop/css/menu.css" rel="stylesheet" type="text/css" />

<style type="text/css">
#div1{
color:black;
}
</style>
  </head>
  <body>
    <p>Hello World!</p>
  </body>
</html>


Note: in between the head section, one is supposed to put js code files' address. In your case, jquery's link is before <!DOCType...

For HTML file layout, please visit wikipedia: http://en.wikipedia.org/wiki/HTML

And also Mootools and jquery does not work together; however, it is possible to have both jquery and mootool, but one has to access methods/properties by following some standards. One of the article that may help you is:

http://davidwalsh.name/jquery-mootools

If you follow the above documentation or any other standard documentation, your problem should be solved.
0
 
LVL 7

Author Closing Comment

by:weikelbob
ID: 33836183
Thank you. I decided that this project was beyond me. I don't know why it was producing the out of place javascript
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now