Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 11, 2016, 04:05:06 AM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Last post Author Topic: Learnin Javascript  (Read 11643 times)

fowmow

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 46
    • View Profile
    • Donate to Member
Re: Learnin Javascript
« Reply #25 on: August 24, 2007, 01:36:32 AM »
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.

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 ? 

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 [Select]
  1. 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.

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
I code.  Therefore I am.

ljbirns

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 229
    • View Profile
    • Donate to Member
Re: Learnin Javascript
« Reply #26 on: August 24, 2007, 08:54:57 AM »
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
Lew

fowmow

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 46
    • View Profile
    • Donate to Member
Re: Learnin Javascript
« Reply #27 on: August 24, 2007, 02:28:25 PM »
You should write a book.  You are much clearer then Mr. Flanagen.

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.

You are quite welcome.  Post back if you have more problems.
I code.  Therefore I am.

Lashiec

  • Member
  • Joined in 2006
  • **
  • Posts: 2,374
    • View Profile
    • Donate to Member
Re: Learnin Javascript
« Reply #28 on: August 27, 2007, 05:45:07 PM »
Just for some (future) reference, an article on Ars Technica's #open.ended blog

ljbirns

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 229
    • View Profile
    • Donate to Member
Re: Learnin Javascript
« Reply #29 on: August 27, 2007, 05:55:56 PM »
Lashiec

Thanks   
Lew