[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    Re: 2 Problems (?)  with Konqueror
From:       Ilya Konstantinov <kde-devel () future ! shiny ! co ! il>
Date:       2001-10-09 12:00:37
[Download RAW message or body]

On Tue, Oct 09, 2001 at 09:17:01AM +0200, Pascal Francq wrote:
> Hi,
> While testing our site, I remark two little problems with Konqueror.
> The site is: 
> http://cfao30.ulb.ac.be/cfao
> 
> 1°) Once on the site, click on the "R&D" tab. In the frame on the left, the 
> content of the images doesn't appear directly, you have to move the mouse on 
> it, to make them appear really. It would be nice, if the contents appear 
> directly.

This is due to the fact that on Mozilla, an image with an empty SRC
attribute will not display, while on KHTML - it will display as a
broken image.

You have two options:
1. Make the IMG tags contain an SRC attribute pointing to the
initial version of the image, instead of relying on the initializing
function to do so.

2. Don't include any IMG tags in the document and create the image objects
dynamically in the page's initializer. e.g. (just a simplified example)

<div id="menu_images">
</div>

<script language="JavaScript1.2"><!--
container = document.getElementById('menu_images');
element = document.createElement('IMG');
element.setAttribute('SRC', 'http://...');
container.appendChild(element);
// --></script>

> 2°)  In this same frame, we using the "DISPLAY" propriety to show/hide some 
> images. With Konqueror, because all images are shown, I suppose this 
> propriety is not supported. If I am right, will be it supported in the 
> future (It is supported in Explorer 5.5, Netscape 6.x and Mozilla 0.9.x) ?

Whoa, you're right - display:none isn't supposed as a style of an IMG
object. A bug, I assume.

There's a way around it, by placing each IMG in a DIV block. e.g.

<DIV ID="image1"><IMG ...></DIV>

<SCRIPT LANGUAGE="JavaScript"><!--
image1 = document.getElementById('image1');
image1.style.display = 'none';
// --></script>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic