| | |
|
|
|
PVII AutoLayers Help |
| message from .Adam Jones on 16 Jul 2004 |
I have downloaded the PVII Autolayers Extension and successfully followed
the tutorial for how to make it work. Now, I have created a new blank page
with a table that has my navigation bar. The navigation buttons are gif
pictures accross the top. I have also created 3 additional layers to pop up
when the navigation button is moused over.
I have applied the PVII extention to the buttons and set them to "show" the
layer when mouseover. When I view the page to see the navigation layer
popup, nothing happens.
When I look at the behaviors for the buttons, they all have the
"onMouseOver" and "Auto Layers by PVII".
What could I have missed?
|
| John Gaver replied to .Adam Jones on 16 Jul 2004 |
1) Give us the URL, where we can look at it.
2) Make sure that your autohide stuff is set right, too.
John Gaver
Action America
(forget everything to contact me direct)
Microsoft: (n) Job security for IT consultants.
|
| .Adam Jones replied to .Adam Jones on 16 Jul 2004 |
The site is not published. Here is the source code. I hope you can tell
with this.
Adam
_____________________________
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if
((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
location.reload();
}
MM_reloadPage(true);
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 P7_autoLayers() { //v1.4 by PVII
var
g,b,k,f,args=P7_autoLayers.arguments;a=parseInt(args[0]);if(isNaN(a))a=0;
if(!document.p7setc){p7c=new Array();document.p7setc=true;for(var
u=0;u<10;u++){
p7c[u]=new
Array();}}for(k=0;k<p7c[a].length;k++){if((g=MM_findObj(p7c[a][k]))!=null){
b=(document.layers)?g:g.style;b.visibility="hidden";}}for(k=1;k<args.length;
k++){
if((g=MM_findObj(args[k]))!=null){b=(document.layers)?g:g.style;b.visibility
="visible";f=false;
for(var j=0;j<p7c[a].length;j++){if(args[k]==p7c[a][j]) {f=true;}}
if(!f){p7c[a][p7c[a].length++]=args[k];}}}
}
//-->
</script>
</head>
<body>
<table width="660" border="0" align="center" cellpadding="0"
cellspacing="0">
<tr>
<td width="100%"><table width="100%" border="0" cellspacing="0"
cellpadding="0">
<tr>
<td align="left"><img src="images/logo.gif" width="300" height="40">
<hr></td>
</tr>
<tr>
<td><a href="#"><img src="images/nav/nardahome.gif" alt=""
name="home" width="110" height="20" border="0"></a><a href="#"
onClick="P7_autoLayers(0,'departments')"><img src="images/nav/depts.gif"
alt="Departments" name="departments" width="110" height="20"
border="0"></a><a href="#" onClick="P7_autoLayers(0,'contacts')"><img
src="images/nav/contacts.gif" alt="Contacts" name="contacts" width="110"
height="20" border="0"></a><a href="#"><img src="images/nav/visualmfg.gif"
alt="VisualMFG" name="visualmfg" width="110" height="20" border="0"></a><a
href="#"><img src="images/nav/resources.gif" alt="Resources" name="open"
width="110" height="20" border="0"></a><a href="#"><img
src="images/nav/calendar.gif" alt="" name="calendar" width="110" height="20"
border="0"></a></td>
</tr>
</table></td>
</tr>
</table>
<br>
<div id="departments" style="position:absolute; width:659px; height:38px;
z-index:1; left: 33px; top: 98px; background-color: #000000;
layer-background-color: #000000; border: 1px none #000000; visibility:
hidden;">
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr align="center">
<td><span class="style5">EH & S </span></td>
<td><span class="style5">FINANCE</span></td>
<td><span class="style5">HUMAN RESOURCES </span></td>
<td><span class="style5">MARKETING & SALES </span></td>
<td><span class="style5">MATERIALS</span></td>
</tr>
<tr align="center">
<td><span class="style5">MIS DUDES </span></td>
<td><span class="style5">OPERATIONS</span></td>
<td><span class="style5">QUALITY</span></td>
<td><span class="style6"></span></td>
<td><span class="style6"></span></td>
</tr>
</table>
</div>
<br>
<div id="contacts" style="position:absolute; width:657px; height:37px;
z-index:2; left: 32px; top: 98px; visibility: hidden;">
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr align="center">
<td width="14%" rowspan="2" align="left" valign="bottom"><div
align="center">DEPARTMENT
CONTACTS</div></td>
<td width="21%"><span class="style5">EH & S</span></td>
<td width="15%"><span class="style5">FINANCE</span></td>
<td width="24%"><span class="style5">HUMAN RESOURCES</span></td>
<td width="26%"><span class="style5">MARKETING & SALES
</span></td>
</tr>
<tr align="center">
<td><span class="style5">MATERIALS</span></td>
<td><span class="style5">MIS DUDES </span></td>
<td><span class="style6"><span
class="style5">OPERATIONS</span></span></td>
<td><span class="style6"><span
class="style5">QUALITY</span></span></td>
</tr>
</table>
</div>
<table width="660" border="0" align="center" cellpadding="0"
cellspacing="0">
<tr>
<td colspan="3"><div align="center">PAGE NAME
<hr>
</div></td>
</tr>
<tr>
<td><img name="ethicstraining" src="" width="110" height="20"
alt=""></td>
<td width="100%" rowspan="9" align="left" valign="top">Content Here
</td>
<td><img src="images/nav/1x1spacer.gif" width="150" height="1"></td>
</tr>
_____________________
".Adam Jones" <fj@somewhere.net> wrote in message
news:cd9gen$lot$1@forums.macromedia.com...
|
|
Archived message: PVII AutoLayers Help (Macromedia Dreamweaver)