Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML - controlling target window - no toolbar no scrollbars

Status
Not open for further replies.

jaruss

Technical User
Mar 19, 2004
14
US
I'm using a slideshow application that uses a custom xml file to display the pictures. You can click on an image in the slideshow to open an html file.

I want to turn off the top toolbar and the scrollbars. Is there a way to do this in this code:

<images autoplay="true" loop="true" delay="6" requireloaded="10000" usecache="true" linktarget="_blank" transition="Fade">
<image url="images/Females/aileen/aileen1.jpg" caption="Aileen" link="models-pages/aileen-sm.htm" />
<image url="images/Females/josayne/josayne1.jpg" caption="Josayne" link="models-pages/josayne.htm" />
<image url="images/Females/iris/iris1.jpg" caption="Iris" link="models-pages/iris.htm" />
<image url="images/Females/patricia-o/patricia-o1.jpg" caption="Patricia" link="models-pages/patricia-o.htm" />
<image url="images/Females/olga/olga1.jpg" caption="Olga" link="models-pages/olga.htm" />
<image url="images/Females/laura-h/laura-h1.jpg" caption="Laura" link="models-pages/laura-h.htm" />
<image url="images/Females/shawna/shawna4.jpg" caption="Shawna" link="models-pages/shawna.htm" />
<image url="images/Females/sarahrose/sarahrose1.jpg" caption="Sarahrose" link="models-pages/sarahrose.htm" />
<image url="images/Females/ana-d/ana-d3.jpg" caption="Ana" link="models-pages/ana-d.htm" />
<image url="images/Females/ally/ally1.jpg" caption="Ally" link="models-pages/ally.htm" />
<image url="images/Females/lauren-r/lauren-r1.jpg" caption="Lauren" link="models-pages/lauren-r.htm" />
<image url="images/Females/terese/terese1.jpg" caption="Terese" link="models-pages/terese.htm" />
<image url="images/Females/ann/ann1.jpg" caption="Ann" link="models-pages/ann.htm" />
</images>

here's a link to the current page:

 
In the html for the first image link="models-pages/aileen-sm.htm" I have:

<script language="javascript" type="text/javascript">

window.resizeTo(510,590);
window.moveTo(0,0);

</script>

to resize the window but I can' control scrollbars and toolbar in the window I am opening correct?
 
Those chrome things are controlled by the window.open() being called, the third parameters. Something like:
[tt] window.open("models-pages/aileen-sm.htm","","toolbar=no,scrollbar=no")[/tt]
It may contain quite a bit of feature specified by comma-separated name=value pairs. But I guess you should have known already. In any case, check the window.open line in the onclick handler---that's what I would do.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top