Jump to content

<html> tag screwing up my java script!?


shane85

Recommended Posts

 

 

hey guys

so ive been doing alot of testing and I tried adding some javascript to one of my pages to have a "ticker" and it works perfectly in IE, but in firefox for whatever reason it doesnt scroll properly and I have figured it out by removing bits and pieces of code and narrowing down the problem...the line of code that causes it is the <html> code and I have it as follows

 

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

 

I took it out, but then in internet explorer then the page doesnt display corretly....when its not there, the "ticker" scrolls properly in firefox...what is the solution to this??

 

oops..I should be more clear

 

I still have an html tag when I take out that piece of code..under neath that I have

 

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

Link to comment
https://forums.phpfreaks.com/topic/200871-tag-screwing-up-my-java-script/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.