I truly don't understand the difference between Javascript and CSS. Flanagan's book came.. I'm beginnig to think he might as well have written it in Greek. But since I am retired now I have plenty of time to see what I can learn.
-ljbirns
OK, but seriously, do yourself a favor and learn at least the *difference* between HTML, CSS, and JavaScript. I will give you a *quick* rundown.
HTML - A
markup language used to actually
comprise the content and structure of a Web page.
CSS - Another language similar to a markup language that defines the
style of your Web page or
how the elements in your HTML Web page will look.
JavaScript - An
interpreted scripting language that allows you to
add behaviors to your HTML Web page that
may or may not be styled with CSS.
The Holy Trinity - Content, Style, and Behavior.I tried to use a GIF file that is on my HD instead of the URL. I changed URL(" xx") to
file("c:\map.gif"); as in # 3 above . It did not work. Is the syntax for files different than URL's ?
-ljbirns
OK, a couple things.
1. Using a GIF is just fine. No biggie.
2. Do not just guess. Programming or coding if you will is not an area where you just want to pull guesswork. You say you are retired so you should have plenty of time to study this.
3. Whether files, or HTTP address, or FTP address, *all* are considered valid URLs. And anyway, it does not change, it is still:
url("whatever");
So in your example it would be:
background-image: url("file:///C:/map.gif");
Remember, URLs utilize forward slashes "/" whereas as directory structures use "\" in Windows.
At any rate I do thank you for all the time and effort. This website and forum has
great people on it.
-ljbirns
No problem,
ljbirns. Just pay us back by studying. I know of a quote that I really like.
"Chance favors the prepared mind." --Louis Pasteur