Topic: modifying XML file to add links

I would like to add a link to an external SWF file to the CAPTION or IMAGE. Is this possible. Actually ultimately I would like to have multiple captions each with their own links to external SWF that load in a NEW window.

Thanks Adam

Re: modifying XML file to add links

never mind I figured it out:

SOLUTION:

<caption><![CDATA[<A href="SAMPLE.swf" target="_blank">
<U>CAPTION</U></A>]]></caption>

Now I need to figure out how to specify size of new window and elminate scroolbars titlebar etc so new window is clean and empty

Re: modifying XML file to add links

does anyone know how to:

1) set toolbar, scollbar, menubar and rsize to NO in the XML file

2) set the new window to a specific height and width.

I have tried evry which way

Re: modifying XML file to add links

I have modified the XML file as below:

</IMAGE>
<NAME>BM001.jpg</NAME>
<caption><![CDATA[<A href="videos/roxy/RoxyHunter01.swf", toolbar="no", scollbars="no", menubar="no", resizable="no", height="260", width="340" target="_blank" >
<U>Big Man on Campus</U></A>]]></caption>
</IMAGE>

The A href works fine however the rest of the controls do not affect new window.

Anyone have any ideas?????

Re: modifying XML file to add links

OK i have figured out how to set Caption as a link to an external swf file. You must embed the SWF in and HTM or ASP page and use the following Javascript to load that page in a Pop Up:

<IMAGE>
    <NAME>BM001.jpg</NAME>
    <caption><![CDATA[ <A href="javascript:roxy01()">
    <U>Big Man On Campus</U></A>]]></caption>
</IMAGE>

That Said..... I was wonderng if it is possible to have multiple Caption Lines so I can set up multiple links.

Re: modifying XML file to add links

I was wonderng if it is possible to have multiple Caption Lines so I can set up multiple links.

You can split the caption into multiple lines by using the <br> tag. Check the FAQ, Q14: http://www.airtightinteractive.com/simp … r/faq.html

Felix Turner
SimpleViewer Support Team.