Help please with Nav Bar in Library

Help please with Nav Bar in Library

Post by Murray *TM » Thu, 04 Mar 2004 01:15:51


Can you show me the code on the page, please? I will take either the
library item's code, or the code on a target page after inserting the
Library item.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================

ANSWERS
==================
http://www.yqcomputer.com/ - Template Triage!
http://www.yqcomputer.com/ , Tutorials & Resources
http://www.yqcomputer.com/ - DW FAQs, Tutorials & Resources
http://www.yqcomputer.com/ (MM) Technotes
==================



Insert>Interactive
help?
 
 
 

Help please with Nav Bar in Library

Post by John WIlso » Thu, 04 Mar 2004 01:24:55

I an using Dreamweaver MX. I have created a Nav Bar using Insert>Interactive
message "Cannot copy the 'Set Nav BAr Image' behaviour. Us Behaviour
Inspector to remove it and apply again.

The Nav Bar appears in the Library and can insert it but each time it is
inserted or updates I get the same message and not all of the changes are
updated.

Is there something I need to do to add it to the library? Can anybody help?

Thanks

John

 
 
 

Help please with Nav Bar in Library

Post by Big » Thu, 04 Mar 2004 04:20:10

ere's the code from the page where it is inserted.

<!-- #BeginLibraryItem "/Library/Nav%20Bar%20About%20Us.lbi" -->
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length;
i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++)
x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_nbGroup(event, grpName) { //v6.0
var i,img,nbArr,args=MM_nbGroup.arguments;
if (event == "init" && args.length > 2) {
if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new
Array();
nbArr[nbArr.length] = img;
for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) !=
null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = args[i+1];
nbArr[nbArr.length] = img;
} }
} else if (event == "over") {
document.MM_nbOver = nbArr = new Array();
for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) !=
null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1]
: img.MM_up);
nbArr[nbArr.length] = img;
}
} else if (event == "out" ) {
for (i=0; i < document.MM_nbOver.length; i++) {
img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn :
img.MM_up; }
} else if (event == "down") {
nbArr = document[grpName];
if (nbArr)
for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up;
img.MM_dn = 0; }
document[grpName] = nbArr = new Array();
for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) !=
null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
nbArr[nbArr.length] = img;
} }
}
//-->
</script>
<body
onLoad="MM_preloadImages('../images/Nav_but_bp_contents_f3.gif','../images/Nav_b
ut_bp_contents_f2.gif','../images/nav_but_about.gif','../images/nav_but_about_f2
.gif','../images/nav_but_about_f3.gif','../images/nav_bar_whatdo_f3.gif','../ima
ges/nav_bar_whatdo_f2.gif','../images/nav_bar_helpus_f3.gif','../images/nav_bar_
helpus_f2.gif','../images/nav_bar_local_f3.gif','../images/nav_bar_local_f2.gif'
,'../images/nav_bar_contact_f3.gif','../images/nav_bar_contact_f2.gif','../image
s/nav_but_home_f3.gif','../images/nav_but_home_f2.gif','../images/nav_bar_whatdo
.gif')">
<!-- #BeginLibraryItem "/Library/Nav Bar Obout Us.lbi" -->
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.argum
 
 
 

Help please with Nav Bar in Library

Post by Big » Thu, 04 Mar 2004 04:23:17

his is the code from the library item

<meta http-equiv="Content-Type" content="text/html;"><body
onLoad="MM_preloadImages('../images/nav_but_home_f3.gif','../images/nav_but_home
_f2.gif','../images/Nav_but_bp_contents_f3.gif','../images/Nav_but_bp_contents_f
2.gif','../images/nav_but_about_f3.gif','../images/nav_but_about_f2.gif','../ima
ges/nav_bar_whatdo.gif','../images/nav_bar_whatdo_f2.gif','../images/nav_bar_wha
tdo_f3.gif','../images/nav_bar_helpus_f3.gif','../images/nav_bar_helpus_f2.gif',
'../images/nav_bar_local_f3.gif','../images/nav_bar_local_f2.gif','../images/nav
_bar_contact_f3.gif','../images/nav_bar_contact_f2.gif')"><table border="0"
cellpadding="0" cellspacing="0">
<tr>
<td><a href="../index.html" target="_top"
onClick="MM_nbGroup('down','group1','nav_but_home','../images/nav_but_home_f3.gi
f',1)"
onMouseOver="MM_nbGroup('over','nav_but_home','../images/nav_but_home_f2.gif','.
./images/nav_but_home_f3.gif',1)" onMouseOut="MM_nbGroup('out')"><img
name="nav_but_home" src="../images/nav_but_home.gif" border="0" alt="Go to home
page" onLoad=""></a></td>
<td><a href="javascript:;" target="_top"
onClick="MM_nbGroup('down','group1','Nav_but_bp_contents','../images/Nav_but_bp_
contents_f3.gif',1)"
onMouseOver="MM_nbGroup('over','Nav_but_bp_contents','../images/Nav_but_bp_conte
nts_f2.gif','../images/Nav_but_bp_contents_f3.gif',1)"
onMouseOut="MM_nbGroup('out')"><img src="../images/Nav_but_bp_contents.gif"
alt="Return to Business Plan Contents" name="Nav_but_bp_contents" width="195"
height="25" border="0" onload=""></a></td>
<td><a href="../about/index.html" target="_top"
onClick="MM_nbGroup('down','group1','nav_but_about','../images/nav_but_about_f3.
gif',1)"
onMouseOver="MM_nbGroup('over','nav_but_about','../images/nav_but_about_f2.gif',
'../images/nav_but_about_f3.gif',1)" onMouseOut="MM_nbGroup('out')"></a><a
href="../about/index.html" target="_top"
onClick="MM_nbGroup('down','group1','nav_but_about','../images/nav_but_about_f3.
gif',1)"
onMouseOver="MM_nbGroup('over','nav_but_about','../images/nav_but_about_f2.gif',
'../images/nav_but_about_f3.gif',1)" onMouseOut="MM_nbGroup('out')"><img
src="../images/nav_but_about.gif" alt="About us" name="nav_but_about"
border="0" onload=""></a></td>
<td><a href="../whatdo/index.html" target="_top"
onClick="MM_nbGroup('down','group1','nav_bar_whatdo','../images/nav_bar_whatdo_f
3.gif',1)"
onMouseOver="MM_nbGroup('over','nav_bar_whatdo','../images/nav_bar_whatdo_f2.gif
','../images/nav_bar_whatdo_f3.gif',1)" onMouseOut="MM_nbGroup('out')"><img
src="../images/nav_bar_whatdo_f3.gif" alt="Go to What we do"
name="nav_bar_whatdo" border="0"
onload="MM_nbGroup('init','group1','nav_bar_whatdo','../images/nav_bar_whatdo.gi
f',1)"></a></td>
<td><a href="../helpus/index.html" target="_top"
onClick="MM_nbGroup('down','group1','nav_bar_helpus','../images/nav_bar_helpus_f
3.gif',1)"
onMouseOver="MM_nbGroup('over','nav_bar_helpus','../images/nav_bar_helpus_f2.gif
','../images/nav_bar_helpus_f3.gif',1)" onMouseOut="MM_nbGroup('out')"><img
src="../images/nav_bar_helpus.gif" alt="Go to how you can help us"
name="nav_bar_helpus" width="159" height="25" border="0" onload=""></a></td>
<td><a href="..
 
 
 

Help please with Nav Bar in Library

Post by Murray *TM » Thu, 04 Mar 2004 04:32:52

hange the Library item's code to this -

<meta http-equiv="Content-Type" content="text/html;">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><a href="../index.html" target="_top"
onClick="MM_nbGroup('down','group1','nav_but_home','../images/nav_but_home_f
3.gi
f',1)"
onMouseOver="MM_nbGroup('over','nav_but_home','../images/nav_but_home_f2.gif
','.
./images/nav_but_home_f3.gif',1)" onMouseOut="MM_nbGroup('out')"><img
name="nav_but_home" src="../images/nav_but_home.gif" border="0" alt="Go to
home
page" onLoad=""></a></td>
<td><a href="javascript:;" target="_top"
onClick="MM_nbGroup('down','group1','Nav_but_bp_contents','../images/Nav_but
_bp_
contents_f3.gif',1)"
onMouseOver="MM_nbGroup('over','Nav_but_bp_contents','../images/Nav_but_bp_c
onte
nts_f2.gif','../images/Nav_but_bp_contents_f3.gif',1)"
onMouseOut="MM_nbGroup('out')"><img src="../images/Nav_but_bp_contents.gif"
alt="Return to Business Plan Contents" name="Nav_but_bp_contents"
width="195"
height="25" border="0" onload=""></a></td>
<td><a href="../about/index.html" target="_top"
onClick="MM_nbGroup('down','group1','nav_but_about','../images/nav_but_about
_f3.
gif',1)"
onMouseOver="MM_nbGroup('over','nav_but_about','../images/nav_but_about_f2.g
if',
'../images/nav_but_about_f3.gif',1)" onMouseOut="MM_nbGroup('out')"></a><a
href="../about/index.html" target="_top"
onClick="MM_nbGroup('down','group1','nav_but_about','../images/nav_but_about
_f3.
gif',1)"
onMouseOver="MM_nbGroup('over','nav_but_about','../images/nav_but_about_f2.g
if',
'../images/nav_but_about_f3.gif',1)" onMouseOut="MM_nbGroup('out')"><img
src="../images/nav_but_about.gif" alt="About us" name="nav_but_about"
border="0" onload=""></a></td>
<td><a href="../whatdo/index.html" target="_top"
onClick="MM_nbGroup('down','group1','nav_bar_whatdo','../images/nav_bar_what
do_f
3.gif',1)"
onMouseOver="MM_nbGroup('over','nav_bar_whatdo','../images/nav_bar_whatdo_f2
.gif
','../images/nav_bar_whatdo_f3.gif',1)" onMouseOut="MM_nbGroup('out')"><img
src="../images/nav_bar_whatdo_f3.gif" alt="Go to What we do"
name="nav_bar_whatdo" border="0"
onload="MM_nbGroup('init','group1','nav_bar_whatdo','../images/nav_bar_whatd
o.gi
f',1)"></a></td>
<td><a href="../helpus/index.html" target="_top"
onClick="MM_nbGroup('down','group1','nav_bar_helpus','../images/nav_bar_help
us_f
3.gif',1)"
onMouseOver="MM_nbGroup('over','nav_bar_helpus','../images/nav_bar_helpus_f2
.gif
','../images/nav_bar_helpus_f3.gif',1)" onMouseOut="MM_nbGroup('out')"><img
src="../images/nav_bar_helpus.gif" alt="Go to how you can help us"
name="nav_bar_helpus" width="159" height="25" border="0" onload=""></a></td>
<td><a href="../local/index.html" target="_top"
onClick="MM_nbGroup('down','group1','nav_bar_local','../images/nav_bar_local
_f3.
gif',1)"
onMouseOver="MM_nbGroup('over','nav_bar_local','../images/nav_bar_local_f2.g
if',
'../images/nav_bar_local_f3.gif',1)" onMouseOut="MM_nbGroup('out')"><img
src="../images/nav_bar_local.gif" alt="Go to how you can help us"
name="nav_bar_local" width="109" height="25" border="0" onload=""></a></td>
<td><a href="../contact/index.html" target="_top"
onClick="MM_nbGroup('down','group1','nav_bar
 
 
 

Help please with Nav Bar in Library

Post by Big » Fri, 05 Mar 2004 19:48:22

ere's the code from the updated page. I am still learing about code so I hope
this is what you wanted. Any help will be gratefully received.

<html>
<head>
<title>About FareShare</title>
<meta http-equiv="Content-Type" content="text/html;">
<meta name="description" content="FW MX DW MX HTML">
<!-- Fireworks MX Dreamweaver MX target. Created Sun Jan 11 03:15:10 GMT-2400
2004-->
<script language="JavaScript">
<!--
/* Functions that swaps down images. */

/* Functions that handle preload. */
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length;
i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++)
x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_nbGroup(event, grpName) { //v6.0
var i,img,nbArr,args=MM_nbGroup.arguments;
if (event == "init" && args.length > 2) {
if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new
Array();
nbArr[nbArr.length] = img;
for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) !=
null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = args[i+1];
nbArr[nbArr.length] = img;
} }
} else if (event == "over") {
document.MM_nbOver = nbArr = new Array();
for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) !=
null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1]
: img.MM_up);
nbArr[nbArr.length] = img;
}
} else if (event == "out" ) {
for (i=0; i < document.MM_nbOver.length; i++) {
img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn :
img.MM_up; }
} else if (event == "down") {
nbArr = document[grpName];
if (nbArr)
for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up;
img.MM_dn = 0; }
document[grpName] = nbArr = new Array();
for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) !=
null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
nbArr[nbArr.length] = img;
} }
}
//-->
</script>
<link href="../fareshare.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#ffffff" leftmargin="0" marginwidth="0" topmargin="0"
marginheight="0"
onLoad="MM_preloadImages('../images/nav_but_home.gif','../images/nav_but_about.g
if','../images/Nav_but_bp_contents_f3.gif','../images/Nav_but_bp_contents_f2.gif
','../images/nav_but_about_f2.gif','../images/nav_but_about_f3.gif','../images/n
av_bar_whatdo_f3.gif','../images/nav_bar_whatdo_f2.gif','../images/nav_bar_helpu
s_f3.gif','..
 
 
 

Help please with Nav Bar in Library

Post by Murray *TM » Fri, 05 Mar 2004 20:21:38

ohn:

OK - here are some comments -

1. You have got goofy characters in your file/pathnames and this is sure to
cause you problems -

../images/nav_but_home_f%0A3.gi%0Af'
(I see quite a few like this)

I am pretty sure that %0A is chr(10) which is a line feed, so I have no idea
how that got in there, but you'd better rename all such files.

2. You must not have anything in the Library folder other than Library item
files themselves - yet it seems like you have at least this one image in
there (note the goofy character again) -

'../Library/.%0A./images/nav_but_home_f3.gif'

3. I am still not sure what the question is - can you describe the problem
you are having?

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Big T" < XXXX@XXXXX.COM > wrote in message
news:c271hm$j2l$ XXXX@XXXXX.COM ...
hope
GMT-2400
i<a.length;
d.MM_p[j++].src=a[i];}}
= new
!=
args[i+1]
img.MM_up;
onLoad="MM_preloadImages('../images/nav_but_home.gif','../images/nav_but_abo
ut.g
if','../images/Nav_but_bp_contents_f3.gif','../images/Nav_but_bp_contents_f2
.gif
','../images/nav_but_about_f2.gif','../images/nav_but_about_f3.gif','../imag
es/n
av_bar_whatdo_f3.gif','../images/nav_bar_whatdo_f2.gif','../images/nav_bar_h
elpu
s_f3.gif','../images/nav_bar_helpus_f2.gif','../images/nav_bar_local_f3.gif'
,'..
/images/nav_bar_local_f2.gif','../images/nav_bar_contact_f3.gif','../images/
nav_
bar_contact_f2.gif','../images/nav_but_home_f3.gif','../images/nav_but_home_
f2.g
if','../images/nav_bar_whatdo.gif','../images/nav_but_home_f%0A3.gi%0Af','..
/ima
ges/nav_but_home_f2.gif%0A','../Library/.%0A./images/nav_but_home_f3.gif','.
./im
ages/Nav_but%0A_bp_%0Acontents_f3.gif','../images/Nav_but_bp_c%0Aonte%0Ants_
f2.g
if','../images/nav_but_about%0A_f3.%0Agif','../images/nav_but_about_f2.g%0Ai
f','
../images/nav_bar_whatd%0Ao.gi%0Af','../images/nav_bar_whatdo_f2%0A.gif%0A',
'../
images/nav_bar_help%0Aus_f%0A3.gif','../images/nav_bar_helpus_f2%0A.gif%0A',
'../
images/nav_bar_local%0A_f3.%0Agif','../images/nav_bar_local_f2.g%0Aif','../i
mage
s/nav_bar_con%0Atact%0A_f3.gif','../images/nav_bar_contact_%0Af2.g%0Aif')">
fwstyle="Dreamweaver"
height="1"
height="1"
height="1"
onClick="MM_nbGroup('down','group1','nav_but_home','../images/nav_but_home_f
%0A3
onMouseOver="MM_nbGroup('over','nav_but_home','../images/nav_but_home_f2.gif
%0A'
to
onClick="MM_nbGroup('down','group1','Nav_but_bp_contents','../images/Nav_but
%0A_
onMouseOver="MM_nbGroup('over','Nav_but_bp_contents','../images/Nav_but_bp_c
%0Ao
src="../images/Nav_but_bp_contents.gif"
onClick="MM_nbGroup('down','group1','nav_but_about','../images/nav_but_about
onMouseOver="MM_nbGroup('over','nav_but_about','../images/nav_but_about_f2.g
onMouseOut="MM_nbGroup('out')"></a><a
onClick="MM_nbGroup('down','group1','nav_but_about','../images/nav_but_about
%0A_
onMouseOver="MM_nbGroup('over','nav_but_about','../images/nav_but_about_f2.g
%0Ai
onMouseOut="MM_nbGroup('