I am using Text Rollover and Target Image to display various images of rooms in a bed & Breakfast inn on a single “Tour The Inn” page. Client now wants to add availability calendars from her reservation service, This is done with HTML snippets retrieving calendar images from the service.
Is there a way to have such text change according to a rollover, or am I going to have to break the tour into multiple pages?
The markup I have been given is actually sets of image tags which would I normally just add to a page as HTML markup items, but that would be static, one for each room. I would like to maintain the single tour page if possible.
My first thought was to try to change the markup text along with the picture.
Then I wondered if there might be some way to take the content of a slave image from a remote source.
If you change the Slave Images (Now called Target Images) to Target Show/Hide Layer items you can place your images and text within these items. Add a standard graphic item as a child to of the layer and in the Inspector palette set the Type to URL. You can then add the image source you already have to the URL field (http://images.availabilityonline.com/api/gcal/index.php?un=bentleyhouse&month=plus0&roomId=69026) and the image will be called from the remote server’s PHP script.
Regards,
Tim.
On 18 May 2011, at 03:23, MFWills wrote:
Then I wondered if there might be some way to take the content of a slave image from a remote source.
Draw an HTML item on your page - make sure it is layered. This will be your container for your code which you can add via Insert>Markup Item (make sure you have a flashing cursor first)
Select the container and then Item>Actions>Target Show/Hide Layer near the top of the list after Text Link Style
After you have applied the action you can set the parameters in the action palette to suit your Text Rollover trigger.
For the most part, things are working properly at http://www.thebentleyhouse.com/tour.html. The sign is visible on entry and mousing over the room names displays the respective picture, description, and availability calendar as desired.
However, I notice that when moving from one room to another, the sign flashes ever so briefly. I have tried various combinations of effects in the action, to no avail. Is this normal, or is there something I haven’t thought of to overcome it?