PDA

View Full Version : Firefox vs IE



DowntimeDK
05-10-2008, 03:02 AM
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. :eek:

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>

jscheuer1
05-10-2008, 03:39 AM
Any script that relies primarily and exclusively upon filters is IE 5.5+ (in rare cases IE 5+) only. Period.