Jump to content

Canvas / older browsers


astralaaron

Recommended Posts

I know that you can display a message to people on older browsers which do not support <canvas> like this:

<canvas>browser doesn't support canvas</canvas>

I have a client who wants a <marquee> element (I know its not good to use a marquee). I threw together a canvas marquee which works well, BUT my client wants to support older browsers since many of the companies who use his site use older versions of IE.

 

So my question is... is it valid to do something like this?:

 <canvas>  <marquee>asdf fdsa asdf fdas</marquee></canvas>

so that older browsers will fall back on the marquee element?

 

I am asking because the IEtester program doesn't seem to support javascript very well....I am using javascript to create my canvas element and append to the document, and same with the marquee, creating, and appending to the canvas.

 

 

 

 

 

 

 

 

 

 

Link to comment
Share on other sites

The <marquee> element isn't valid HTML, but besides that, you can put pretty much anything you want inside the <canvas> element and it should work without trouble.

Link to comment
Share on other sites

At the moment Internet Explorer's developer tools allow you to view a site with versions all the way back to 7. Just press F12 and the developer toolbar will show up.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...