[TYPO3] [Typo3] Nifty corners scripts in Typo3
Einar Skretting Fredriksen
einaren at gmail.com
Fri Jun 2 12:03:22 CEST 2006
First off: There is no need to be rude Dmitry and Christopher! This is
a Typo3 problem and fits perfectly in this mailing list.
I have the same problem. The problem is described on nifty cubes
pages, but I do not know how to solve it in Typo3. The problem is to
combine Nifty with other scripts that
also assign windows.onload. There may only be one assignation to
windows.onload. To solve this, Nifty provides a function called
NiftyLoad, but this requires that Nifty is the last script in the html
head. As you can see below typo3 adds a script to fight spam after the
included header parts from the tempate.
So the question is. How can I force Typo3 to let Nifty be the last
script in the html head?
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<!--
This website is powered by TYPO3 - inspiring people to share!
TYPO3 is a free open source Content Management Framework initially
created by Kasper Skaarhoj and licensed under GNU/GPL.
TYPO3 is copyright 1998-2006 of Kasper Skaarhoj. Extensions are
copyright of their respective owners.
Information and contribution at http://typo3.com/ and http://typo3.org/
-->
<link rel="stylesheet" type="text/css"
href="typo3temp/stylesheet_e99aac0be0.css" />
<title>Stavanger Misjonsmenighet: Stavanger Misjonsmenighet</title>
<meta name="generator" content="TYPO3 4.0 CMS" />
<script type="text/javascript"
src="typo3temp/javascript_757c080409.js"></script>
<script type="text/javascript"
src="fileadmin/templates/main/niftycube.js"></script>
<script type="text/javascript">NiftyLoad=function(){Nifty("div.box","big
transparent");}</script>
<link rel="stylesheet" type="text/css"
href="fileadmin/templates/main/template_page.css" />
<style type="text/css">
#sizer {
width:expression(document.body.clientWidth > 900 ? "120px" : "60%" );
/* CSS comments are safe here, but no html comments inside the
Conditional Comment! */
}
</style>
<script type="text/javascript">
/*<![CDATA[*/
<!--
// JS function for uncrypting spam-protected emails:
function UnCryptMailto(s) { //
var n=0;
var r="";
for(var i=0; i < s.length; i++) {
n=s.charCodeAt(i);
if (n>=8364) {n = 128;}
r += String.fromCharCode(n-(1));
}
return r;
}
// JS function for uncrypting spam-protected emails:
function linkTo_UnCryptMailto(s) { //
location.href=UnCryptMailto(s);
}
// -->
/*]]>*/
</script>
</head>
On 10/29/05, Dmitry Dulepov <typo3 at fm-world.ru> wrote:
> Hi!
>
> Michael Medenblik wrote:
> > The example in plain html,
> > without Typo3, does work.
>
> Have you cleared cache, etc.? Do you have it on a live server where we
> can examine the output?
>
> Dmitry.
> _______________________________________________
> Typo3-english mailing list
> Typo3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
--
mvkh,
Einar Skretting Fredriksen
Å feile er menneskelig -- og å skylde på en datamaskin er enda mer menneskelig.
More information about the TYPO3-english
mailing list