Results 1 to 2 of 2

Thread: Firefox vs IE

  1. #1
    Join Date
    May 2008
    Posts
    1
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Firefox vs IE

    Hi Guys.

    I am relative new to SapScript but have succeded building up a very good web site using AceHTML and some of the build in ready to use scripts from Dynamic Drive.

    No to my horror I see that most of the standard scripts does now work in Firefox.

    Do you know of any good littarature covering this aspect. Or is there simply a easy solution e.g. with a standard command which you need to implement to make almost any script work also in Firefox?

    Any reply would be appriciated.

    Mary Jane.

    Just below an example a "glowing text" Script which does not work in Firefox.

    <span id="glowtext">This is a glowing text</span><html>
    <!-- Created on: 10-05-2008 -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-874">
    <title></title>
    <meta name="description" content="">
    <meta name="keywords" content="">
    <meta name="author" content="downtimedk">
    <meta name="generator" content="AceHTML 6 Pro">
    <style>
    <!--
    #glowtext{
    filter:glow(color=#FFFF00,strength=3);
    width:100%;
    }
    -->
    </style>

    <script language="JavaScript1.2">

    /*
    Glowing Text Script-
    ฉ Dynamic Drive (www.dynamicdrive.com)
    For full source code, installation instructions,
    100's more DHTML scripts, and Terms Of
    Use, visit dynamicdrive.com
    */

    function glowit(which){
    if (document.all.glowtext[which].filters[0].strength==3)
    document.all.glowtext[which].filters[0].strength=2;
    else
    document.all.glowtext[which].filters[0].strength=3;
    }

    function glowit2(which){
    if (document.all.glowtext.filters[0].strength==3)
    document.all.glowtext.filters[0].strength=2;
    else
    document.all.glowtext.filters[0].strength=3;
    }

    function startglowing(){
    if (document.all.glowtext&&glowtext.length){
    for (i=0;i<glowtext.length;i++)
    eval('setInterval("glowit('+i+')",150)');
    }
    else if (glowtext);
    setInterval("glowit2(0)",150);
    }

    if (document.all)
    window.onload=startglowing;
    </script>
    </head>
    <body>

    </body>
    </html>

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Any script that relies primarily and exclusively upon filters is IE 5.5+ (in rare cases IE 5+) only. Period.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    DowntimeDK (05-10-2008)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •