Sorry, but I don't know the answer. Keep playing with the path until you
find the correct way to write it, I guess...
DavidF
> Hi Dave,
> My website resides on a LAN server and therefore I have to use virtual
[quoted text clipped - 20 lines]
>>>
>>> Everytime I get an error on the page, what am I doing wrong???????
Spike - 31 Jan 2008 01:41 GMT
I found that simple is GOOD.
I am using Publisher 2007 (have not tried this in Publisher 2003)
I have a brochure that I want to open in a new window so that if it gets
closed the site is still open
So I put the brochure in the same folder as the page that has its link
I inserted the following code fragment using publisher:
<Script Language="JavaScript">
function load() {
var load =
window.open('brochure.pdf','','scrollbars=no,menubar=no,height=600,width=800,resizable=yes,toolbar=no,location=no,status=no');
}
// -->
</Script>
Then on that page I set the hyperlink to read:
javascript:load()
That's it
The brochure opens in a new window
Spike
> Sorry, but I don't know the answer. Keep playing with the path until you
> find the correct way to write it, I guess...
[quoted text clipped - 27 lines]
>>>>
>>>> Everytime I get an error on the page, what am I doing wrong???????
Spike - 31 Jan 2008 18:56 GMT
BTW: If you have more than one link on a page that you want to open in a
new window and some that you don't ... here is how I did that
Hope this helps you out.
For the FIRST LINK
<Script Language="JavaScript">
function load1() {
var load =
window.open('brochure_one.pdf','','scrollbars=no,menubar=no,height=600,width=800,resizable=yes,toolbar=no,location=no,status=no');
}
// -->
</Script>
Then on the page I set the hyperlink for brochure one to read:
javascript:load1()
For the SECOND LINK
<Script Language="JavaScript">
function load2() {
var load =
window.open('brochure_two.pdf','','scrollbars=no,menubar=no,height=600,width=800,resizable=yes,toolbar=no,location=no,status=no');
}
// -->
</Script>
Then on the page I set the hyperlink for brochure two to read:
javascript:load2()
Spike
> Sorry, but I don't know the answer. Keep playing with the path until you
> find the correct way to write it, I guess...
[quoted text clipped - 27 lines]
>>>>
>>>> Everytime I get an error on the page, what am I doing wrong???????
AaronMor - 31 Jan 2008 19:17 GMT
Thanks for the help. Everything is working now.
>BTW: If you have more than one link on a page that you want to open in a
>new window and some that you don't ... here is how I did that
[quoted text clipped - 35 lines]
>>>>>
>>>>> Everytime I get an error on the page, what am I doing wrong???????