Zum Inhalt springen

Bildverlinkung auf ein Content!

Erstellt am 10. November 2008 · Noch keine Antworten

Tags: Frage

M-Cha ·

Ich habe ein BILD auf dem sind 2 LINKS. Wenn ich einen LINK anklicke soll er das passende CONTENT anziegen.

Hier ist der CODE dazu:

	function main($content,$conf)	
	{
        $this->conf=$conf;
        $this->pi_setPiVarDefaults();
        $this->pi_loadLL();
        
        #ein paar Vorbelegungen
        $this->id=$GLOBALS['TSFE']->id;
        $this->template=$this->cObj->fileResource('EXT:subrenta/template.html');
        
        #welche Ansicht?
    	$content ='
<img src="test.jpg" border="0" width="188" height="211" usemap="#ImageMap1">
		<map name="ImageMap1">
		<area shape="rect" coords="18, 27, 61, 61" href="CONTENT 1">
		<area shape="rect" coords="107, 30, 157, 59" href="CONTENT 2">
		</map>';
			
    	if(KLICK AUF 1)
    	{
    		$content = $this->listView1();
    	}
    	if(KLICK AUF 2)
    	{
    		$content = $this->listView2();
    	}
	    
		return $this->pi_wrapInBaseClass($content);
	}

Habe in die IF-Klausel reingeschrieben was passiert.[/quote]