#44054 - 29/10/2001 17:24
Re: Javascript image popups?
[Re: tfabris]
|
old hand
Registered: 30/07/2000
Posts: 879
Loc: Germany (Ruhrgebiet)
|
Hi.
I checked the overlib website using Netscape 6.1 and Opera 5. While Netscape looks good now, the side is completely unusable with Opera 5, it only displays some random characters (many question marks, some >128 ASCII characters,...).
Not the kind of improvement I would expect.
cu,
sven
_________________________
proud owner of MkII 40GB & MkIIa 60GB both lit by God and HiJacked by Lord
|
Top
|
|
|
|
#44055 - 29/10/2001 17:34
Re: Javascript image popups?
[Re: smu]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
|
That's to be expected, the author of overlib says he knows it doesn't support Opera.
Thanks for checking for me.
|
Top
|
|
|
|
#44056 - 29/10/2001 20:42
Re: Javascript image popups?
[Re: smu]
|
pooh-bah
Registered: 31/08/1999
Posts: 1649
Loc: San Carlos, CA
|
the side is completely unusable with Opera 5, it only displays some random characters (many question marks, some >128 ASCII characters,...).
I think that may be a different issue entirely. It does the same thing to me with omniweb. It looks like they have screwed up the content encoding or charset. Anyway, I am guessing that is a problem with the site's webserver setup and not overlib itself.
-Mike
|
Top
|
|
|
|
#44057 - 30/10/2001 04:49
Re: Javascript image popups?
[Re: smu]
|
new poster
Registered: 18/07/2001
Posts: 41
Loc: Koblenz, Germany
|
Hi,
i've updated a version ov overLIB some time ago to support Opera and Netscape 6. You can see it in action here: http://epaper.rhein-zeitung.de/01/10/20/
(so you can test if it really works in opera - i think it should but i've got no time to test right now)
the source is located here: http://epaper.rhein-zeitung.de/common/rzlib.js
i could extract the relevant parts of rzlib.js for riocar.org...
alex
|
Top
|
|
|
|
#44058 - 30/10/2001 05:10
Re: Javascript image popups?
[Re: ghostwheel]
|
old hand
Registered: 30/07/2000
Posts: 879
Loc: Germany (Ruhrgebiet)
|
Hi.
It only partly works in Opera 5:
It does update the title that is displayed in the upper left corner (the name of the local newspaper), but it does not show the info box. It works in Netscape 6.1 as expected (as in IE with JScript enabled).
I still dislike this approach: It is totally dependent on JavaScript, which anyone with a decent security has disabled in IE (as IEs JavaScript is only enabled when JScript is enabled, which in turn has a lot of security problems JavaScript in its own doesn't have). And I really don't see any real advantage over the ALT- and TITLE approach.
cu,
sven
_________________________
proud owner of MkII 40GB & MkIIa 60GB both lit by God and HiJacked by Lord
|
Top
|
|
|
|
#44059 - 30/10/2001 05:18
Re: Javascript image popups?
[Re: smu]
|
new poster
Registered: 18/07/2001
Posts: 41
Loc: Koblenz, Germany
|
Hi,
I think the JavaScript popups just look cooler .
Perhaps we could do both - ALT/TITLE _and_ POPUPS.
If JS is enabled it clears the ALT/TITLE on load so they wont show up.
If JS is disabled you can see the ALT/TITLE and no popup.
I don't know if this will work in older browsers (NS4.x) - DOM browsers should be fine.
Alex
|
Top
|
|
|
|
#44060 - 30/10/2001 05:35
Re: Javascript image popups?
[Re: ghostwheel]
|
old hand
Registered: 30/07/2000
Posts: 879
Loc: Germany (Ruhrgebiet)
|
I think the JavaScript popups just look cooler .
You are right, they look way cooler. However, I have a few propositions:
1. The <a href> tags should point to a meaningful target, not just to the
document itself. If they are intended to point back to the document itself
(to the start of it), add an "on click" JavaScript function that returns "False",
so that they are disabled when javascript is working.
2. Add a page that works with Javascript being completely disabled. If needed,
simply show the remotes, and list a description of the button functions below.
I just enabled Jscript in IE for the tests on this page only, I usually have it disabled. And I strongly recommend that everybody else does so, too, or at least have it set to ask for permission before executing the scripts.
JScript (not Javascript) is way too easily hackable.
cu,
sven
_________________________
proud owner of MkII 40GB & MkIIa 60GB both lit by God and HiJacked by Lord
|
Top
|
|
|
|
#44061 - 30/10/2001 11:23
Re: Javascript image popups?
[Re: ghostwheel]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
|
Nice page. I'm not going to implement that library, though, as I'm interested in using the latest version of the author's original code. It's got some recent bug fixes that I think are important.
Did you send the author your Opera fixes for him to integrate?
|
Top
|
|
|
|
#44062 - 30/10/2001 11:25
Re: Javascript image popups?
[Re: ghostwheel]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
|
If JS is enabled it clears the ALT/TITLE on load so they wont show up.
Can you give me more pointers as to how to set this up?
|
Top
|
|
|
|
#44063 - 30/10/2001 11:31
Re: Javascript image popups?
[Re: smu]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
|
The a href tags should point to a meaningful target, not just to the document itself. If they are intended to point back to the document itself (to the start of it), add an "on click" JavaScript function that returns "False", so that they are disabled when javascript is working.
I deliberately did it the current way on purpose because Netscape 4x has some bugs for which that is the work around:
1) The popups don't work unless it's a link. They don't work for just images.
2) If you click on something or resize while netscape is loading the page, the javascript fails, and then the page will not show popups. If you click on the image and have it redirect to itself, that forces a page reload which re-loads the javascript and makes it work again.
Add a page that works with Javascript being completely disabled. If needed,
simply show the remotes, and list a description of the button functions below.
I would like to avoid maintaining two pages. If I can get the Alt text working with that single htm file, I'll implement that.
|
Top
|
|
|
|
#44064 - 30/10/2001 12:38
Re: Javascript image popups?
[Re: tfabris]
|
member
Registered: 19/12/1999
Posts: 117
|
what about doing something like:
A HREF="javascript:;" .....
Since it looks like you are going after a JavaScript 'do nothing'.
|
Top
|
|
|
|
#44065 - 31/10/2001 10:01
Re: Javascript image popups?
[Re: tfabris]
|
new poster
Registered: 18/07/2001
Posts: 41
Loc: Koblenz, Germany
|
Hi,
> Did you send the author your Opera fixes for him to integrate?
Nope, cause it doesn't really work (anymore) :-(
Alex
|
Top
|
|
|
|
#44066 - 31/10/2001 10:20
Re: Javascript image popups?
[Re: tfabris]
|
new poster
Registered: 18/07/2001
Posts: 41
Loc: Koblenz, Germany
|
Hi,
i've "hacked" a quick demo for you here http://ghostwheel.de/demo.html.
i'm think it currently only works in Mozilla and IE>6 ... but i've not tested it.
If Javascript is enabled you can clear the alt/title tags by pressing "clear tags" - this should be done onLoad - but it's only a demo ;-)
"show alt tag" and "show title tag" display the image's alt/title
the "NOSCRIPT" is for browsers without javascript.
Alex
|
Top
|
|
|
|
#44067 - 31/10/2001 15:50
Re: Javascript image popups?
[Re: ghostwheel]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
|
I'll have to look at this more closely later. On my current system, it produces strange results. It still has the alt text come up over the overLIB window (the reason I didn't use alt text to begin with).
|
Top
|
|
|
|
#44068 - 01/11/2001 17:28
Re: Javascript image popups?
[Re: tfabris]
|
new poster
Registered: 18/07/2001
Posts: 41
Loc: Koblenz, Germany
|
> I'll have to look at this more closely later.
Jup, I'll try to make the script work in all browsers (Opera, Netscape > 4, IE > 4 and Mozilla) - Currently it only works in DOM-compatible browsers.
Alex
|
Top
|
|
|
|
#44069 - 02/11/2001 06:44
Re: Javascript image popups?
[Re: ghostwheel]
|
pooh-bah
Registered: 13/09/1999
Posts: 2401
Loc: Croatia
|
BTW, is DOM part of ECMA JavaScript standard?
_________________________
Dragi "Bonzi" Raos
Q#5196
MkII #080000376, 18GB green
MkIIa #040103247, 60GB blue
|
Top
|
|
|
|
|
|