[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [APML] Another Overlay - M57



Kevin Wigell wrote:
> 
> ----- Original Message -----
> From: "William R. Mattil" <wrmattil@ix.netcom.com>
> To: <astro-photo@seds.org>
> Sent: Friday, November 29, 2002 01:08
> Subject: Re: [APML] Another Overlay - M57
> 
> > Kevin,
> >
> > I have looked at the html/javascript on this and the previous page and
> > took the liberty of downloading the images and running some tests. It
> > appears that MS Front Page may be producing some "broken code" Try the
> > following if you would please be so kind ?
> >
> > the line:
> >
> > <A onmouseover="image1.src='images/M57_Sky.jpg';"
> >
> > change to:
> >
> > <A HREF=" " onMouseOver="image1.src='images/M57_Sky.jpg';
> >
> > This fixed the problem on my webserver/browser(s) and it functions as I
> > believe that is desired.
> 
> Bill, I changed the code on both my pages for which I've made overlays. I
> did find that I had to add a quotation mark (") at the end of the line of
> code you suggested in order to get it to work properly. 

Doh ! That was my error Kevin. Sorry. When I cut the original line from
the source I was testing with I missed the last quote. ...... 

> After making the
> changes, it made no difference in function in my browser (IE6), but it may,
> as you say, make all the difference for those with other browsers.
> 
> I certainly want my pages to work with as many different browsers as
> possible. Thanks for your help.

When I first noticed this I actually assumed that it was my problem and
spent quite a bit of time looking into my various broswer configs. Then,
when I looked at the page source that you were using *something* didn't
look quite right. I use onmouseover's all the time at work and it didn't
appear to be wrong either and that got me curious. But I will admit that
when I sent you the fix I was very tired from a very long day and I gave
you some bad code and have what is I think, a better solution.

here is your original line:

<A onmouseover="image1.src='images/M57_Sky.jpg';"



<a href="images/M57_MVAS_large.jpg"
onmouseover="image1.src='M57_Sky.jpg';"
onmouseout="image1.src='M57_MVAS_large.jpg';">
<img name="image1" src="M57_MVAS_large.jpg" border=0 width="1000"
height="658"></a>

This is I think a more elegant fix.


But I apologise for even bringing this up in the first place. I appears
that I opened a can of worms and beleive me I wish that could unring
this bell. I was probably out of line in mentioning it. Oft times it is
better to just let things go but I found myself interested in your
technique and wanted to see what the effect actually was. 

Sorry for the inconvienance.

Regards

Bill

-- 
William R. Mattil	| Fred Astaire wasn't so great.
wrmattil@ix.netcom.com	| Ginger had to do it all backwards
(972) 399-4106		| and... in high heels.

--  APML Archives at <http://astro.umsystem.edu/apml/>  ---
             Unsubscribe at <majordomo@seds.org>