30 users online (1 members and 29 guests)  


  Results 1 to 5 of 5

Related

  1. Replies: 4
  2. Cross browser ticker from text file needed    Forum: Website Scripts Forum
    Replies: 0
  3. need help wit google message-your browser doen not support browser    Forum: Search Engine Optimization - SEO - Forum
    Replies: 4
  4. cross browser    Forum: CSS Forum
    Replies: 2
  1. #1
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662

    Unhappy Cross-Browser woes...

    Hi all.I just joined.Now,down to business.I have got my head around html.I have even got a (very) basic knowledge of JavaScripts.Style sheets,no problem.In all of these joyous techniques,though,I had to make compromises for IE and NS.But only compromises.But now as I delve into DHTML I find that the two browsers use completely different techniques!I don't believe it!Does anyone know if there is anything in the works about this kind of problem?A cease-fire between MS and Netscape?Its really getting me down.I ain't gonna bother with DHTML until they get there acts together.
    And never mind Opera,text-only browsers,etc...

  2. #2
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel

    Talking

    Yes, the losers in the browser wars will always be the web designers.
    There are some nice scripts though that will work cross browser, DynamicDrive has some pretty good ones.

    Dave


  3. #3
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662

    Lightbulb

    Yes,I was looking around AHFB and I found that link.Lots of useful stuff,but to be honest I still think I will stick to getting to grips with Java 4 a while.At least that works with most things.

  4. #4
    Brothercake's Avatar
    New User

    Status
    Offline
    Join Date
    Jan 2001
    Posts
    10

    Post

    Here's a few tips:

    Internet Explorer - you can give any item an ID name - eg:

    <div id="hello"></div>

    and then access it with the property:

    document.all["hello"]

    Opera 5 responds in basically the same way as explorer. Check it and see!

    In Netscape 6 and Mozilla you can access the same div in this way

    document.getElementById("hello")

    In Netscape 4 you have to surround the whole thing with a layer, like this

    <layer name="hello">
    <div></div>
    </layer>

    and then access it with:

    document.layers["hello"]

    or

    document.layers.hello


    They all support different kinds of properties, and have different ways of describing them, eg

    document.all["hello"].style.visibility=hidden works in IE and Opera

    document.getElementById("hello").style.display=none works in Netscape 6 and also in IE

    document.layers.visibility=hide is what you need for NS4

    Phew! The compatibility issues never end. And NS6 has just made it more complicated still ... too little too late if you ask me. Typical Bloody Nutscrape.


    [This message has been edited by Brothercake (edited 01-31-2001).]

    [This message has been edited by Dave (edited 01-31-2001).]

  5. #5
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662

    Talking

    Nice one.

    I'm off to experiment....





Tags for this Thread