problem with custom template
hi i allways get an error message in the safari console:
"Resource interpreted as script but transferred with MIME type text/html."
and the java script is not working...
this is my header:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="DE">
<!--
This website is powered by TYPOlight webCMS :: TYPOlight is licensed under GNU/LGPL
Copyright ©2005-2009 by Leo Feyer :: Extensions are copyright of their respective owners
Visit the project website at http://www.typolight.org for more information
//-->
<head>
<base href="http://217.91.126.212:8888/typolight/"/>
<title>jmk | profil de-profile de</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<link rel="stylesheet" href="jmk_screen.css" type="text/css" media="all" />
<meta name="robots" content="index,follow" />
<script src="../plugins/mootools/mootools.js" type="text/javascript"></script>
<script src="../plugins/slimbox/js/slimbox.js" type="text/javascript"></script>
<script src="js/mooefx.js" type="text/javascript"></script>
</head>
would be great if you could tell me what is wrong with my code.
thanks
joergmark
Re: problem with custom template
Quote:
Originally Posted by joergmark
hi i allways get an error message in the safari console:
"Resource interpreted as script but transferred with MIME type text/html."
and the java script is not working...
I visited your website (http://217.91.126.212:8888/typolight/) and you talking probably about this:
Code:
<script src="/js/mooefx.js" type="text/javascript"></script>
It's not working becouse path is wrong, you should fix it. Rest of yours js files works fine.
Quote:
Originally Posted by joergmark
would be great if you could tell me what is wrong with my code.
It's hard to say. But (maybe it's not related to your problem) you need fix one thing in your code:
Code:
<div class="mod_customnav block" id="language_wrapper li,language_wrapper li:hover">
id must be one word without spaces, comma and should be unique name.
Re: problem with custom template
thanks, thesed are definitions i made in my css file, i can't understand how it gets translated in this line of code..
.language_wrapper {
position: relative;
width: 80px;
height: 24px;
top: -20px;
margin-top: -5px;
margin-left: 55px;
}
.language_wrapper li {
position: relative;
width: 26px;
height: 13px;
top: 25px;
float: left;
text-align: center;
vertical-align: middle;
font-weight: 700;
font-size: 10px;
color: #b2b2b2;
list-style-type: none;
border-right-style: solid;
border-right-width: 1px;
border-left-style: none;
}
.language_wrapper li:hover {
border-right: 1px solid #b2b2b2;
color: #faa40c;
}
.language_wrapper li:last-child {
border-right-style: none;
}
i fixed the paths – thanks for the tip :-)
on the first page there sould be an accordion - test.... do you see a mistake there?
thanks
joergmark
Re: problem with custom template
Quote:
Originally Posted by joergmark
thanks, thesed are definitions i made in my css file, i can't understand how it gets translated in this line of code...
Just open your template, find this:
Code:
<div class="mod_customnav block" id="language_wrapper li,language_wrapper li:hover">
it's inside language_wrapper div and change to
Code:
<div class="mod_customnav block">
next find:
Quote:
jmk-media-solutions ist eine inhabergeführte Mutlimediaagentur.
Branchenerfahrung seit [...] Mediaagenturen.</p>
and remove second
(red one) it's unnecessary. And I think it's enough
Quote:
Originally Posted by joergmark
on the first page there sould be an accordion - test.... do you see a mistake there?
Hmmm... there is little mess with this accordion. Becouse I think you want to use for accordion jmk_mooslide.js. OK. But at the very bottom of you page you have this:
Code:
<script type="text/javascript">
<![CDATA[//><!--
window.addEvent('domready', function()
{
new Accordion($$('div.toggler'), $$('div.accordion'),
{
opacity: false
});
});
//--><!]]>
</script>
but it's related to other script then jmk_mooslide.js
Second thing is that jmk_mooslide.js is awaiting for "test" container/div to work but I don't see any "test" container/div.