Jump to content

PHP/xml and html-tags


Foss

Recommended Posts

Hi there.

 

I'm doing a calendar page with php. It's based on a template and in this template all the output text and html-tags are saved into a xml string.

 

I want to add a tooltip/hovering effect and found one on the net. I applied this script but it doesn't work. It works on "plain html", but when it is within the php it just won't work..

 

This is how my code looks like:

 

START:

$xml = '<?xml version="1.0" ?><response><content><![CDATA[';

 

--- kode -- kode -- kode ---

 

    $xml.="<div class='calevent'>

                 

                <a href='' class='someClass' title='<img src=1.jpg>'>Curabitur dolor eros</a>

                <a href='java script:navigate(\"\",\"\",\"".$row[0]."\")'>";

 

             

                $xml.=$erow[0];

             

             

 

                $xml.="</a></div>";

 

END:

 

echo $xml;

 

-------------

The script is supposed to add tooltips when an element is declared "someClass" and it works on plain html on the same page..

Take a look: http://clubbinghagen.dk/calendar/

 

Links in the calendar have no tooltip, but the Admin link in the center bottom (a bit hard to see!) has a working image as a tooltip.

 

Any ideas??

Link to comment
https://forums.phpfreaks.com/topic/224970-phpxml-and-html-tags/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.