POV-Ray : Newsgroups : povray.general : Linked POV-museum page is up and a java question Server Time
10 Aug 2024 15:13:52 EDT (-0400)
  Linked POV-museum page is up and a java question (Message 17 to 26 of 36)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: David Fontaine
Subject: Re: Linked POV-museum page is up and a java question
Date: 28 Jan 2000 15:14:33
Message: <3891F5D0.9ABF951F@faricy.net>
> Well, I'm gonna go ahead with the mouseover status-bar thing. I know,
> it's considered "bad", blah blah blah, but it's the only way I see to do
> it given that NS won't show the ALT ot TITLE in tooltips.

BTW someone said it would be better to link to the actual pics rather than
the galleries; I didn't do this because AFAIK, isn't it bad netiquette? If
you have an idea as to how to set up the links to go to the pic AND the
gallery, tell me :-)

--
Homepage: http://www.faricy.net/~davidf/
___     ______________________________
 | \     |_       <dav### [at] faricynet>
 |_/avid |ontaine      <ICQ 55354965>


Post a reply to this message

From: Bob Hughes
Subject: Re: Linked POV-museum page is up and a java question
Date: 28 Jan 2000 16:15:21
Message: <389206e9@news.povray.org>
Image map (using entire museum image) which uses a inner and outer area for each
picture?  Except your museum doesn't have the "paintings" aligned well for that.
Unless you were to use circle instead of rectangle and figured them as a sort of
target area and not exact dimensions.  At least that way if you were to click on
a central part of each picture then it could take the browser to the picture
itself, and clicking on the immediate surrounding area (corners, frame region)
would take you to the gallery.  Not sure what Netscape thinks of those internal
selection zones, believe it did alright, IE 4 and 5 seem okay with them.
Don't ask me about netiquette, something I know very little about.

Bob

"David Fontaine" <dav### [at] faricynet> wrote in message
news:3891F5D0.9ABF951F@faricy.net...
| > Well, I'm gonna go ahead with the mouseover status-bar thing. I know,
| > it's considered "bad", blah blah blah, but it's the only way I see to do
| > it given that NS won't show the ALT ot TITLE in tooltips.
|
| BTW someone said it would be better to link to the actual pics rather than
| the galleries; I didn't do this because AFAIK, isn't it bad netiquette? If
| you have an idea as to how to set up the links to go to the pic AND the
| gallery, tell me :-)
|
| --
| Homepage: http://www.faricy.net/~davidf/
| ___     ______________________________
|  | \     |_       <dav### [at] faricynet>
|  |_/avid |ontaine      <ICQ 55354965>
|
|


Post a reply to this message

From: David Fontaine
Subject: Re: Linked POV-museum page is up and a java question
Date: 28 Jan 2000 19:32:57
Message: <38923247.3F463500@faricy.net>
> Image map (using entire museum image) which uses a inner and outer area for each
> picture?  Except your museum doesn't have the "paintings" aligned well for that.
> Unless you were to use circle instead of rectangle and figured them as a sort of
> target area and not exact dimensions.  At least that way if you were to click on
> a central part of each picture then it could take the browser to the picture
> itself, and clicking on the immediate surrounding area (corners, frame region)
> would take you to the gallery.  Not sure what Netscape thinks of those internal
> selection zones, believe it did alright, IE 4 and 5 seem okay with them.
> Don't ask me about netiquette, something I know very little about.

I used 'polygon', of course! Can you make overlapping areas, or would I need a
compound definition of surrounding area? I was thinking of this, but I figured it
would be overly complex to have "click in the general vicinity of person's artwork
to go to his/her website". Maybe if I inserted name plates or something and made
them link to the gallery... or maybe a page opens up at my site that loads the image
from the other person's site in which there is also a link to their gallery...

--
Homepage: http://www.faricy.net/~davidf/
___     ______________________________
 | \     |_       <dav### [at] faricynet>
 |_/avid |ontaine      <ICQ 55354965>


Post a reply to this message

From: Peter Popov
Subject: Re: Linked POV-museum page is up and a java question
Date: 28 Jan 2000 20:43:37
Message: <WkWSOCedxyPhIcWFJZEGfWC1Ay0q@4ax.com>
On Fri, 28 Jan 2000 13:50:33 -0600, David Fontaine <dav### [at] faricynet>
wrote:

>Well, I'm gonna go ahead with the mouseover status-bar thing. I know,
>it's considered "bad", blah blah blah, but it's the only way I see to do
>it given that NS won't show the ALT ot TITLE in tooltips.

Why bad? Make it show something like this:

http://www.foo.com/bar/picture.jpg   A great pic by John Smith

Everyone should be happy then.


Peter Popov
pet### [at] usanet
ICQ: 15002700


Post a reply to this message

From: Peter Popov
Subject: Re: Linked POV-museum page is up and a java question
Date: 28 Jan 2000 20:45:30
Message: <3kWSOA6b+uR9DJN0EfJ9fjtQTxaW@4ax.com>
On Fri, 28 Jan 2000 18:20:23 -0600, David Fontaine <dav### [at] faricynet>
wrote:

>I used 'polygon', of course! Can you make overlapping areas, or would I need a
>compound definition of surrounding area? 

You can use overlapping areas. The first one (in the order listed in
the map) to match the cursor position is sent the onClick event.


Peter Popov
pet### [at] usanet
ICQ: 15002700


Post a reply to this message

From: Bob Hughes
Subject: Re: Linked POV-museum page is up and a java question
Date: 28 Jan 2000 21:24:44
Message: <38924f6c@news.povray.org>
"Peter Popov" <pet### [at] usanet> wrote in message
news:3kWSOA6b+uR9DJN0EfJ9fjtQTxaW@4ax.com...
| On Fri, 28 Jan 2000 18:20:23 -0600, David Fontaine <dav### [at] faricynet>
| wrote:
|
| >I used 'polygon', of course! Can you make overlapping areas, or would I need
a
| >compound definition of surrounding area?
|
| You can use overlapping areas. The first one (in the order listed in
| the map) to match the cursor position is sent the onClick event.

hah... yeah, forgot about that one, just not as easy to use unless you have a
imagemap-making html program.

Bob


Post a reply to this message

From: Jon A  Cruz
Subject: Re: Linked POV-museum page is up and a java question
Date: 28 Jan 2000 23:39:29
Message: <3892702F.8EC4F4DD@geocities.com>
David Fontaine wrote:

> > I agree! I often take a look at the status bar when the mouse is over the
> > link to see where the link leads to. If the link is an image for example
> > (like in your gallery), I like to see if the linked object is a HTML page
> > that contains the image, or if it is the image directly. That sort of stuff.
> > And I just hate it if I can't see this information, because the page chooses
> > to overwrite the statusbar with some own information.
>
> This is the only way I see to do it though.
>
> > I agree with Jon's other post: Use the ALT-attribute of the link tag for
> > your information. Then the user will see your information in a small
> > tool-tip bubble while the mouse pointer rests over the link.
>
> It doesn't work in Netscape with image maps. That was the whole problem in the
> first place.
>

Aha! I found the problem!

You've fixed it by now, but I'll post this for others to know.

The HTML specs say that you need to have an ALT attribute on all AREA tags in the
imagemap. Any validator will show this as a problem. If you follow the practice
of cleaning up all validation errors, you'll be saved. Netscape looks for the
ALT text and displays that in the status bar when you move around.

So for anyone out there doing an image map, remember to always include those ALT
attributes.

--
"My new computer's got the clocks, it rocks
But it was obsolete before I opened the box" - W.A.Y.


Post a reply to this message

From: Jon A  Cruz
Subject: Re: Linked POV-museum page is up and a java question
Date: 28 Jan 2000 23:44:06
Message: <38927145.3ABF3C59@geocities.com>
David Fontaine wrote:

> Well, I'm gonna go ahead with the mouseover status-bar thing. I know,
> it's considered "bad", blah blah blah, but it's the only way I see to do
> it given that NS won't show the ALT ot TITLE in tooltips.

Which version of NS are you checking with? Things work fine for me.

NS doesn't do a pop-up, but it does show the ALT text in the status bar.

--
"My new computer's got the clocks, it rocks
But it was obsolete before I opened the box" - W.A.Y.


Post a reply to this message

From: Bob Hughes
Subject: Re: Linked POV-museum page is up and a java question
Date: 29 Jan 2000 02:00:49
Message: <38929021@news.povray.org>
I do, or at least try to remember to do so.

Bob

"Jon A. Cruz" <jon### [at] geocitiescom> wrote in message
news:3892702F.8EC4F4DD@geocities.com...
| The HTML specs say that you need to have an ALT attribute on all AREA tags in
the
| imagemap. Any validator will show this as a problem. If you follow the
practice
| of cleaning up all validation errors, you'll be saved. Netscape looks for the
| ALT text and displays that in the status bar when you move around.
|
| So for anyone out there doing an image map, remember to always include those
ALT
| attributes.
|


Post a reply to this message

From: Johannes Hubert
Subject: Re: Linked POV-museum page is up and a java question
Date: 29 Jan 2000 06:28:33
Message: <3892cee1@news.povray.org>
David Fontaine <dav### [at] faricynet> wrote in message
news:3891F5D0.9ABF951F@faricy.net...
> BTW someone said it would be better to link to the actual pics rather than
> the galleries; I didn't do this because AFAIK, isn't it bad netiquette? If
> you have an idea as to how to set up the links to go to the pic AND the
> gallery, tell me :-)

With a bit of JavaScript, do it like this (I write this off my head, there
are probably bugs in it, but you can catch the drift, if you need more help,
say so):

<script>
function showLink(pageName, pageURL, imageName, imageURL)
{
    doc = window.document;
    doc.writeln('<html>');
    doc.writeln('<head>HEADER STUFF HERE</head>');
    doc.writeln('<body>');
    doc.writeln('<p align="center">Artist Homepage: <a href="' + pageURL +
'">' + pageName + '</a></p>');
    doc.writeln('<p align="center">' + imageName + '</p>");
    doc.writeln('<p align="center"><image src="' + imageURL + '"></p>");
    doc.writeln('</body>');
    doc.writeln('</html>');
}
</script>


Somewhere, in your link you write (example):

<a href="???" onclick="showLink('Gilles Tran Homepage', 'http://www...',
'Image-Name', 'http://www..../...jpg'; return false">

A click on the link will start the JavaScript.
The script will replace the page with a new page, which contains a link to
the homepage of the artist, the name of the image, and the image itself.
I don't know if you need to have a valid URL in the href (where I wrote
"???"), I think it is not needed (because of the "return false" later in the
line), but you might have to experiment.
Of course, you can adjust the script to write a HTML page that fits into
your design (colors etc.).

Greetings,
Johannes.


Post a reply to this message

<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.