ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

Learnin Javascript

<< < (6/6)

fowmow:
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 (August 23, 2007, 01:44 PM)
--- End quote ---

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 (August 23, 2007, 01:44 PM)
--- End quote ---

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:


--- Code: CSS ---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 (August 23, 2007, 01:44 PM)
--- End quote ---

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

ljbirns:
No problem, ljbirns.  Just pay us back by studying. :Thmbsup:

You got a deal.  You should write a book.  You are much clearer then Mr. Flanagen.
I thank you for all your help.

Regards

Lew

fowmow:
You should write a book.  You are much clearer then Mr. Flanagen.
-ljbirns (August 24, 2007, 08:54 AM)
--- End quote ---

You know, I have thought about it, but I simply *do not*have enough experience in my book (no pun intended).  I can write the hell out of some tutorials though!   ;D

I thank you for all your help.
-ljbirns (August 24, 2007, 08:54 AM)
--- End quote ---

You are quite welcome.  Post back if you have more problems.

Lashiec:
Just for some (future) reference, an article on Ars Technica's #open.ended blog

ljbirns:
Lashiec

Thanks   

Navigation

[0] Message Index

[*] Previous page

Go to full version