[Typo3-dev] Javascript Code in external .js-file

M.Overkill at gmx.de M.Overkill at gmx.de
Tue Oct 26 11:26:41 CEST 2004


Hallo,

with "external" instead of "extern" it is working. But there is still the
problem that not all of the Javascript is put outside the HTML-Source.

In the javascript*.js there is only:
--------------------------------------------
        browserName = navigator.appName;
        browserVer = parseInt(navigator.appVersion);
        var msie4 = (browserName == "Microsoft Internet Explorer" &&
browserVer >=
4);
        if ((browserName == "Netscape" && browserVer >= 3) || msie4 ||
browserName=="Konqueror") {version = "n3";} else {version = "n2";}
            // Blurring links:
        function blurLink(theObject)    {    //
            if (msie4)    {theObject.blur();}
        }
--------------------------------------------------

In the HTML-Source there is still the following Javascript-Code:
-------------------------------------------
<script type="text/javascript"
src="typo3temp/javascript_f50acb69fd.js"></script>
<script type="text/javascript">
/*<![CDATA[*/
<!--
if (version == "n3") {
img134_91a9_0_n=new Image(); img134_91a9_0_n.src =
"typo3temp/menu/80c36ab2e9.gif"; 
img134_91a9_0_h=new Image(); img134_91a9_0_h.src =
"typo3temp/menu/80c36ab2e9.gif"; 
img66_91a9_1_n=new Image(); img66_91a9_1_n.src =
"typo3temp/menu/85f0aa3ebc.gif"; 
img66_91a9_1_h=new Image(); img66_91a9_1_h.src =
"typo3temp/menu/46e886fe7c.gif"; 
img136_91a9_2_n=new Image(); img136_91a9_2_n.src =
"typo3temp/menu/72451e8f0c.gif"; 
img136_91a9_2_h=new Image(); img136_91a9_2_h.src =
"typo3temp/menu/3491fabb7d.gif"; 
img65_91a9_3_n=new Image(); img65_91a9_3_n.src =
"typo3temp/menu/38f13a25e9.gif"; 
img65_91a9_3_h=new Image(); img65_91a9_3_h.src =
"typo3temp/menu/587f7965c5.gif"; 
img63_91a9_4_n=new Image(); img63_91a9_4_n.src =
"typo3temp/menu/96f6fd1a78.gif"; 
img63_91a9_4_h=new Image(); img63_91a9_4_h.src =
"typo3temp/menu/03e52b0eed.gif"; 
img132_91a9_5_n=new Image(); img132_91a9_5_n.src =
"typo3temp/menu/a2bf29c2df.gif"; 
img132_91a9_5_h=new Image(); img132_91a9_5_h.src =
"typo3temp/menu/95fc62e4e7.gif"; 
img62_91a9_6_n=new Image(); img62_91a9_6_n.src =
"typo3temp/menu/66174148bd.gif"; 
img62_91a9_6_h=new Image(); img62_91a9_6_h.src =
"typo3temp/menu/d810cfdbb8.gif"; 
img74_91a9_7_n=new Image(); img74_91a9_7_n.src =
"typo3temp/menu/60a209202c.gif"; 
img74_91a9_7_h=new Image(); img74_91a9_7_h.src =
"typo3temp/menu/38dc5cc678.gif"; 
img61_91a9_8_n=new Image(); img61_91a9_8_n.src =
"typo3temp/menu/cb849480e8.gif"; 
img61_91a9_8_h=new Image(); img61_91a9_8_h.src =
"typo3temp/menu/1aa8276cb9.gif"; 
img73_91a9_9_n=new Image(); img73_91a9_9_n.src =
"typo3temp/menu/1d0c9e8507.gif"; 
img73_91a9_9_h=new Image(); img73_91a9_9_h.src =
"typo3temp/menu/40ac38d58c.gif"; 
img83_91a9_10_n=new Image(); img83_91a9_10_n.src =
"typo3temp/menu/a9aa2ee5fe.gif"; 
img83_91a9_10_h=new Image(); img83_91a9_10_h.src =
"typo3temp/menu/0174290c93.gif"; 
img137_91a9_11_n=new Image(); img137_91a9_11_n.src =
"typo3temp/menu/af0e9e0994.gif"; 
img137_91a9_11_h=new Image(); img137_91a9_11_h.src =
"typo3temp/menu/cb7526d8ec.gif"; 
img167_91a9_12_n=new Image(); img167_91a9_12_n.src =
"typo3temp/menu/300986d8ec.gif"; 
img167_91a9_12_h=new Image(); img167_91a9_12_h.src =
"typo3temp/menu/3ca674b2fa.gif";
}
// -->
/*]]>*/
</script>
<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-(2));
}
return r;
}
  // JS function for uncrypting spam-protected emails:
function linkTo_UnCryptMailto(s){//
location.href=UnCryptMailto(s);
}
function openPic(url,winName,winParams){//
var theWindow = window.open(url,winName,winParams);
if (theWindow){theWindow.focus();}
}
// JS function for mouse-over
function over(name,imgObj){//
if (version == "n3" && document[name]) {document[name].src =
eval(name+"_h.src");}
else if (imgObj){imgObj.src = eval(name+"_h.src");}
}
// JS function for mouse-out
function out(name,imgObj){//
if (version == "n3" && document[name]) {document[name].src =
eval(name+"_n.src");}
else if (imgObj){imgObj.src = eval(name+"_n.src");}
}
// -->
/*]]>*/
</script>
-----------------------------------------------------

Do you have an advise for me?
Thanks
Andreas











More information about the TYPO3-dev mailing list