Why would root relative, e.g.,
/images/image.jpg
not work?
--
Murray
If want use JavaScript in a Shared Border or FP Include Page, the
JavaScript function must be place
between the <body> JavaScript function </body> and any links contained
with in the function must be
absolute URLs (
http://www.domainname.com/images/image1.jpg, etc.), not
relative URLs
(../images/image1.jpg).
--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
I see it now! You are right and the solve works! Question? Since
this
is a
shared border effect, why can't I just get the top.htm file to work
and
look
right?
I'm frustrated that I need to manually paste this into every page
(more
than
100 on my site!).
THanks again!
Michael
:
On the home page, this line -
<b onmouseover="openMenu('cellula')"><font face="Verdana">
calls the openMenu() javascript function, which is right here in the
head of
the document -
function openMenu(){
var a=arguments,o,s,l,m,c,t,p,r;
if(document.menuOpen){
if ((o=FP_getObjectByID(document.menuOpen))!=null){
s=(document.layers)?o

.style;
s.visibility=(document.layers)?'hide':'hidden';document.menuOpen=false;}
if ((c=FP_getObjectByID('closer'))!=null){
t=(document.layers)?c:c.style;
t.visibility=(document.layers)?'hide':'hidden';}}
if ((l=FP_getObjectByID(a[0]))!=null){
m=(document.layers)?l:l.style;
m.visibility=(document.layers)?'show':'visible';document.menuOpen=a[0];}
if ((p=FP_getObjectByID('closer'))!=null){
r=(document.layers)?p

.style;r.visibility=(document.layers)?'show':'visible';}
}
// -->
</script>
<meta name="Microsoft Border" content="tlb, default">
</head>
While on the interior pages, that function (as well as others) is
missing
from the head of the document. This is why your menu is not
working -
the
required js is not there. This is why the error message you are
getting is
"object expected". The browser looked for the function called
openMenu()
and couldn't find it.
The solution is to make sure that the head region of your interior
pages
looks just like the head region of your home page with regard to the
js
function definitions.
--
Murray
Ok, I've posted it at
www.missioneperte.it (all in Italian but you
can see
the nav bar clearly enough). It all works on the
www.missioneperte.it/index.html page but the drop downs fail on
all
other
pages. What do you think?
:
9 times out of 10 (I thought about making it 9.5 times but
worried
about
how
to count that half time) this error means that there is some
javascript
function being called that is not present on the page.
Can you show me your page?
--
Murray
I've created a DHTML drop down menu which I have placed in my
shared
upper
border. It works fine with drop downs on the index.htm but
gives
an
error
on all other pages and the drop downs don't work.
The error, which only occurs on the page when I mouse-over the
drop
down
menu, is "Object Expected" for line 27 character 2. [Buy line
27
is
different on all of these pages.]
Any ideas?