PHP Classes

images

Recommend this page to a friend!

      multiXPandMenu  >  All threads  >  images  >  (Un) Subscribe thread alerts  
Subject:images
Summary:open image not showing
Messages:2
Author:Carlos Martins
Date:2005-06-02 11:12:09
Update:2005-06-02 21:14:48
 

  1. images   Reply   Report abuse  
Picture of Carlos Martins Carlos Martins - 2005-06-02 11:12:09
HI,
I am trying to use different images for open/close the menu.

here is the string :
$node1 = &$root->addItem(new XNode("node1",false,"folderopen.gif","folder_win_o.gif"));

While it seems to be taking the "folderopen.gif" it doesn't switch to the other one when opening the folder. ...

What could be wrong ?

Thanks to advise and regards

Galadriann

  2. Re: images   Reply   Report abuse  
Picture of Patrick Brosset Patrick Brosset - 2005-06-02 21:14:48 - In reply to message 1 from Carlos Martins
Hi there,
I had the same problem at first when developing the Javascript that dynamically loads the new image.
It seems that Javascript has some trouble loading images that are specified with a relative path only. Try using the absolute path of images instead.
That is:
$node->addItem(...., "http://mydomain.com/image1.gif", "http://mydomain.com/image2.gif");

That should work ok! Tell me if it doesn't

Patrick