Zum Inhalt springen

GTMenu - ohne CDATA möglich?

Erstellt am 5. Juni 2009 · 1 Antwort · letzte Antwort am 5. Juni 2009

Tags: Frage

pow ·

Hallo,

ich habe das GTMenu zum laufen gebracht und stelle fest das es wirklich klasse läuft.
Aber im Quelltext schreibt er immer noch viel CDATA rum rein.

<script type="text/javascript">
	/*<![CDATA[*/
<!--
		// JS function for mouse-over
	function over(name,imgObj)	{	//
		if (version == "n3" && document[name]) {document[name].src = eval(name+"_h.src");}
		else if (document.getElementById && document.getElementById(name)) {document.getElementById(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 (document.getElementById && document.getElementById(name)) {document.getElementById(name).src = eval(name+"_n.src");}
		else if (imgObj)	{imgObj.src = eval(name+"_n.src");}
	}
GLV_curLayerWidth["5bd181"]=0;
GLV_curLayerHeight["5bd181"]=0;
GLV_curLayerX["5bd181"]=0;
GLV_curLayerY["5bd181"]=0;
GLV_menuOn["5bd181"] = null;
GLV_gap["5bd181"]=1;
GLV_currentLayer["5bd181"] = null;
GLV_currentROitem["5bd181"] = null;
GLV_hasBeenOver["5bd181"]=0;
GLV_doReset["5bd181"]=false;
GLV_lastKey["5bd181"] = "Menu5bd1812";
GLV_onlyOnLoad["5bd181"] = 0;
GLV_dontHideOnMouseUp["5bd181"] = 0;
GLV_dontFollowMouse["5bd181"] = 0;
GLV_date = new Date();
........
// -->
	/*]]>*/
</script>

Ich benötige auch beide scripts, sonst funktioniert es nicht. Denke es ist so richtig:

page.includeLibs.gtmenu = fileadmin/gtmenu.php
page.includeLibs.gmenu_layers = media/scripts/gmenu_layers.php
2 = GMENU
2 {
IProcFunc = user_gtmenu->GTMenu
css2TempFile = 1
imgPreload = external
...

Wie bekomme ich das CDATA zeugs weg? Das ist bei den Beispielen aufgeräumter.

Ich denke es liegt am

1 = GMENU_LAYERS
  1 {
    wrap=<table cellspacing="0" cellpadding="0"><tr>|</tr></table>
    layerStyle =position:absolute;VISIBILITY:hidden;border: 0px solid #A4E6AF;
    xPosOffset = -40
    lockPosition = x
    expAll=1

Aber das script funktioniert mit GMENU_LAYERS nicht, da bekomm ich nur eine Fehlermeldung (implode...)