Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Xmasy javascript working in IE7 but not firefox - help

Xmasy javascript working in IE7 but not firefox - help

Locked

Views: 1,648

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
10 Dec 2006, 2:19 PM
#1
sparkyidr avatar

sparkyidr

New Zenner

Join Date:
Apr 2006
Posts:
7
Plugin Contributions:
0

Xmasy javascript working in IE7 but not firefox - help

Hi.

I have a shop running for my friend on one of my servers

http://www.suzyqcards.com

she asked if I could add a falling snow script to the page... so I got the script she gave me, and added it to the tpl_main_page.php file...and it seems to work....
but only in IE.

In firefox (and Safari I think) it displays a single snowflake, and does nothing.

I saved the generated HTML localy to see if I could figure it out... and removing the first line :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

makes it work in firefox

can anyone point me in the right direction?

Sparky

10 Dec 2006, 5:24 PM
#2
steve avatar

steve

Totally Zenned

Join Date:
Jun 2003
Location:
Washington State USA
Posts:
1,918
Plugin Contributions:
0

Re: Xmasy javascript working in IE7 but not firefox - help

Try replacing the DDT with this one.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

But note, this will not validate as xhtml transitional.

10 Dec 2006, 9:11 PM
#3
sparkyidr avatar

sparkyidr

New Zenner

Join Date:
Apr 2006
Posts:
7
Plugin Contributions:
0

Re: Xmasy javascript working in IE7 but not firefox - help

nah... still fails in firefox

:(

thanks anyway though