Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

For those who like a Challenge.....

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My first real attempt at a website is now almost complete (My Home Page), and there are a few issues that I have not been able to resolve:

1 - BROWSER ISSUES: Different browsers interpret CSS differently. As far as IE, Netscape and Mozilla are concerned, this is not a problem, as I have used javascript to make the necessary adjustments to the CSS depending on which browser is detected. However, if Opera is being used, the browser detected using "navigator.appName" comes back as "Microsoft Internet Explorer", so I cannot make any style changes for Opera users without messing up the display for Internet Explorer users (who are a much higher number). Is there any way to iscolate the Opera browser???

2 - Related to the above point, the changes to the CSS for Mozilla and Netscape seem to take place AFTER all the images have loaded for the site. There are a lot of images, which all download at the start even if they are not immediately visible, so that they are available when the user wants to see them. Unfortunately, this means that users have a mis-aligned version of the site until all the images have finished downloading. Is there any way to force these CSS changes to happen first?

3 - LINKS - some apparently basic problems here. I cannot work out how to open links in a new window. I want the site to be XHTML valid, so I cannot use "target" within the <a> tag. I have tried using
<span on-click = "window.open('url','newWin')">xxx</span>
(I added the hyphen so that the post would be accepted)
but this does not work at all.
Another links issue is that I cannot seem to remove the dotted border around active links or the solid border around images used as links. <a href = "#" border = "0"> works for the images, but is not valid XHTML. Using CSS does not make any difference.

4 - AUDIO: I am told that the way I am using audio (using the <embed> tag dynamically via javascript) is not strictly streaming, though it does seem to start playback before the file is downloaded. Can anyone throw any light on this?
I would like to be able to get some of the files to start playback part of the way through rather than at the beginning. Is there any way to do this?
Finally, someone told me that when they tried switching between audio tracks, the new track started playing over the top of the previous one and she was not able to stop them. This has not happened with anyone else. Can anyone suggest why this might have happened and how it can be avoided?

So a fairly comprehensive range of problems there. I would be very grateful for any help you could offer on any of them. Hope you enjoy the site.

Thanks

Guy
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For CSS issues make sure that the browser is in complance mode ([url[http://www.quirksmode.org/css/quirksmode.html[/url] so IE acts the way that it is should. Plus IE has a underscore hack that you can name stuff in the style sheet for it. An example:

width: 45px;
_width: 35px;

IE sees 35 while the others see 45.


For audio, I would do a search on Google. I perfer that there is not music on the site unless it is a site that is for multimedia.

Eric
 
Guy Shahar
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Eric - this hacl will be EXTREMELY useful to me.

Yes, the sound is necessary for the site - part of the site is a catalogue of audio recordings. For one of them, when it is selected, I would like it to start part of the way through. Does anyone know a way to do this?
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic