you have both been most gallant so thanks to you both, I will hopefully retain my rather important client. As the company is new... I try and never say 'I can't' to their requests as I feel anything solvable.
While he is digging up the code for a chromeless window...
You can call out the page(s) individually or create almost a web site and link each html file to a link within one 'container' html file. You would assign a 'goto URL' to your button, then link that to your container file.
..--==Brian==--..
There is no "Try". You either DO or you do NOT, DO.
no bother, Gina. we're here to help one another
here it is --
Create a button and add action onPress or onRelease as Javascript and insert the script below:
link to open is your filename .html
var url="filename .html";
var targetWindow="newWindow";
window.open(url, targetWindow,
"scrollbars=no,
location=yes,
resizable=no,
height=400, (put your size)
width=600, (ditto)
left=100, (put your distance)
top=50"); (ditto)
for additional things to add see below, seperate with ",":
(put no instead of yes if you don't want them)
toolbar=yes,
location=yes,
directories=yes,
menubar=yes,
scrollbars=yes,
resizable=yes,
status=yes,
hey, Brian, thanks!
Gina, for a chromeless window -
MAKING A CHROMELESS WINDOW...
This tutorial will show you how to create a chromeless window.
A chromeless window differs from a regular pop-up window in that you can fully customize it to fit in with your site.
1. Create a new, blank page. This page will hold the link to open your chromeless window.
2. Add this code to your <head> tag:
Code:
<script src="chromeless_35.js"></script>
<script language="javascript">
// CREDITS:
// Chromeless window script by Gabriel Suchowolski ( www.microbians.com )
// Distributed with permission by Lissa ( www.lissaexplains.com )
function openIT(u,W,H,X,Y,n,b,x,m,r) {
var cU ='close_up.gif'
var cO ='close_ovr.gif'
var cL ='clock.gif'
var mU ='min_up.gif'
var mO ='min_ovr.gif'
var xU ='max_up.gif'
var xO ='max_ovr.gif'
var rU ='res_up.gif'
var rO ='res_ovr.gif'
var tH ='<font face=verdana size=1> Window title</font>'
var tW =' window title'
var wB ='#9966ff'
var wBs ='#FFFFFF'
var wBG ='#ffe0ff'
var wBGs='#9966ff'
var wNS ='toolbar=0,location=0,directories=0,status=0,menu bar=0,scrollbars=0,resiza ble=0'
var fSO ='scrolling=no noresize'
var brd =b||0;
var max =x||false;
var min =m||false;
var res =r||true;
var tsz =20;
return chromeless(u,n,W,H,X,Y,cU,cO,cL,mU,mO,xU,xO,rU,rO,
tH,tW,wB,wBs,wBG,wBGs,wNS,fSO,brd,max,min,res,tsz)
}
</script>
3. Add this code to the <body> tag wherever you want the link to open your chromeless window to be:
4. Change "window.html" to the url of the site to be displayed in your chromeless window. Change "400,200" to the width and height of your choice.
5. Download the required files here, and upload them to your server, no changes are needed.
To customise your chromeless window:
wB = Border color.
wBs = Border color on window drag.
wBG = Background of the title bar.
WBGs= Background of the title bar on window drag.
var tH = Title of your window.
To set an image as the link, simply replace "Open Chromeless" in the code from step 3 with the following code:
I have no idea why you are getting an mhtml as an extension, but, I would venture a guess that we can rename the extensions .html or call mhtml as the file extension you are calling out with the chromeless script...
Though, I prefer the renaming the files. When you saved the presentation, did you save the entire presentation as html? And did it create a directory with html files in it? And what are the extensions of those files...htm or html or mhtml?
..--==Brian==--..
There is no "Try". You either DO or you do NOT, DO.
I just tested mine by creating a two page presentation and saving it as html. It created the 'master file' and all the supporting files under one directory with no problems. I checked the extensions of the files that were created and they are names either htm or html along with the supporting CSS and PNG and other files.....
..--==Brian==--..
There is no "Try". You either DO or you do NOT, DO.