Click to See Complete Forum and Search --> : Robust code


shanevdw
10-26-2006, 01:32 PM
Hi

I have created a table with rollover images in them. I would like to use this as a navigation menu. Basically I would like the html (the table with the images) and the javascript (thats changing the images) all in one file.

I would then like to call this file on each page in the left hand corner.

Can I do this? Is it possible to put it in a separate fiel and call it just in that area? I do not want to use PHP or anything like that.

So I need a CSS file?

Please help, I'm new to this stuff

Kravvitz
10-26-2006, 03:57 PM
You can't put HTML or JS in a CSS file. However, you should be using some CSS.

Why do you not want to use PHP?

Why are you using a <table>?

shanevdw
10-27-2006, 01:34 AM
I'm not sure what kind of a file I need, is it a js file?
Reason I don;t want to use php is because the host server doesn't support it.

I would just like to know if I can build up that bit of html and javascript in one file then call it in another.

Do you understand what I mean? Not to good with words.

Thanks

Kravvitz
10-27-2006, 01:57 AM
Yes, I understand what you mean.

Which web host are you using?

shanevdw
10-29-2006, 06:38 AM
I'm designing a site for a local comapny and they just gave me the ftp site to upload everything to. I don't think its PHP enabled. Is there no way I can include that section into my site from another file using javascript?

Kravvitz
10-29-2006, 04:31 PM
Don't use JavaScript for things like that.

Even if you can't use PHP, you can probably use SSI (http://httpd.apache.org/docs/howto/ssi.html) instead.

Keep in mind that some Internet users use a browser that doesn't have JavaScript enabled. (http://www.thecounter.com/stats/2006/September/javas.php)

I suggest you read these:
Graded Browser Support (http://developer.yahoo.com/yui/articles/gbs/gbs.html)
Progressive Enhancement and the Future of Web Design (http://www.webmonkey.com/03/21/index3a.html)
Accessibility is seldom just up to the interface developer (http://www.robertnyman.com/2006/10/10/accessibility-is-seldom-just-up-to-the-interface-developer/)