How to restore after change property?

K

Kaye

I have a cell with a black background, a picture in it that is always open in
layers, an absolute position main table that works fine - and 3 submenus with
black backgrounds that don't fill up the cell, but do correctly hide the
picture. They work fine also - except that on mouseout the last open submenu
stays open and the cell background stays black. When returning to the page,
all starts out well again, but then the same thing happens.

What is the easiest way - that is hopefully just using FP behaviors - to
have all submenus hide and the picture show - when the mouse is somewhere
else in the page, but hasn't clicked anywhere.

(May not make any difference - but I set the behaviours on the a tag rather
than on the span tag.)
 
M

Murray

Delete this -

<!--
function MM_reloadPage(init) {
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_swapImgRestore() {
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++)
x.src=x.oSrc;
}

function MM_preloadImages() {
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.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
}

function MM_findObj(n, d) {
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[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers.document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() {
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array;
for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc)
x.oSrc=x.src; x.src=a[i+2];}
}

You don't need it.

Delete this -

<div align="center"> </div>

<div align="center"> </div>

<div align="center"> </div>

<div align="center"> </div>

You don't need it (although this may throw your page's vertical alignment
off a bit, but you can fix that).

This is definitely bad style -

<td colspan="4" height="115" bgcolor="#000000">

<div style="position: absolute; top: 93px; left: 10px; width: 700px;
height: 100px; z-index: 1; visibility: visible" id="wave">

<img border="0" src="images/wave1.gif" width="700" height="95"></div>

You must not put absolutely positioned elements directly into table cells.
These need to go either flat on the page (i.e., within <body></body> and
nothing else), or inside of another <div> tag ONLY.

Using spaces in file/pathnames is an invitation to disaster -

images/Oliver%20shadow%201%20wide.gif

Using non-breaking spaces as a layout tool is a bad practice -

<font size="2" color="#FFFFFF">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

You cannot put a div into a font tag -

<font face="Verdana">
<div style="position: absolute; top: 98px; left: 11px; z-index: 2;
visibility:hidden" id="services">

Clean those things up, and let's come back to your original question then!
8)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top