Top Articles

Stay In Touch


Affiliate Marketing Forum

FAQ FAQ Search Search Memberlist Memberlist Usergroups Usergroups
Register Register Profile Profile Log in to check your private messages Private Messages Log in Log in

web design doubt

Affiliate Marketing Forum Index » Getting Started - For New Affiliates
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
anand
Guest





Post Posted: Mon Feb 23, 2004 10:25 pm
      Post subject: web design doubt

Reply with quote

can anyone tell me how to paste more than 2 java scripting codes in an html file.
thank you,
anand.
Back to top
Debs



Joined:
16 Aug 2003

Posts:
4296

Location:
NY

Post Posted: Mon Feb 23, 2004 11:34 pm
      Post subject:

Reply with quote

It would help a lot if we knew what codes you were trying to put in, and what the requirements were for each code. Some codes have to go into the <head> section, others go into the <body> section, and still others need to have portions in both <head> and <body> sections.

Debs
_________________
Learn how to turn keyphrases into quality, well-targeted articles your visitors and SE's will love with Gary Antosh's new ebook "Web Content Made Easy!"
Back to top View user's profile Send private message
OleTom



Joined:
03 Jan 2004

Posts:
94

Location:
Jax Beach FL

Post Posted: Tue Feb 24, 2004 2:28 pm
      Post subject:

Reply with quote

Here is a good way

<SCRIPT LANGUAGE="text/javascript" src="YourJavaScript.js"></SCRIPT>

HowToDo:remove <script type="text/javascript"> from the top of your script then put script on notpad and save as whatever.js and use
<SCRIPT LANGUAGE="text/javascript" src="whatever.js"></SCRIPT> any where in the body or head of your page to call it up Very Happy
BTW make sure you put the js file in the same directory as the page or change the path.
<SCRIPT LANGUAGE="text/javascript" src="/Directory/whatever.js"></SCRIPT>
_________________
Life is Good,OleTom
World Wide Job Search


Last edited by OleTom on Tue Feb 24, 2004 3:30 pm; edited 2 times in total
Back to top View user's profile Send private message Visit poster's website
Debs



Joined:
16 Aug 2003

Posts:
4296

Location:
NY

Post Posted: Tue Feb 24, 2004 3:16 pm
      Post subject:

Reply with quote

<SCRIPT LANGUAGE="JavaScript1.1" ...> is no longer supported standard. It will still work for now, but the standard is now:

<script type="text/javascript" ...>

Debs
_________________
Learn how to turn keyphrases into quality, well-targeted articles your visitors and SE's will love with Gary Antosh's new ebook "Web Content Made Easy!"
Back to top View user's profile Send private message
OleTom



Joined:
03 Jan 2004

Posts:
94

Location:
Jax Beach FL

Post Posted: Tue Feb 24, 2004 3:27 pm
      Post subject:

Reply with quote

Thanks Debs I haven't used java for a while and I guess things are changeing Mr. Green
_________________
Life is Good,OleTom
World Wide Job Search
Back to top View user's profile Send private message Visit poster's website
Charlie



Joined:
22 Aug 2003

Posts:
3305

Location:
UK

Post Posted: Tue Feb 24, 2004 4:07 pm
      Post subject:

Reply with quote

Rhetorical question:

What's the difference between java and javascript?

Just a thought,
Charlie.
_________________
"Before I speak, I have something important to say."
- Groucho Marx
Back to top View user's profile Send private message
Yaron



Joined:
13 Nov 2003

Posts:
196

Location:
New York City

Post Posted: Tue Feb 24, 2004 5:18 pm
      Post subject:

Reply with quote

Charlie wrote:
Rhetorical question:
What's the difference between java and javascript?


Hi Charlie.

Well, even though it's a rhetorical question, I'm going to answer it anyway. Wink

There is almost no relation between Java and JavaScript aside from the fact that they are both programming languages, and they have the word "java" in their names.

Java is a general purpose programming language invented by people at Sun Microsystems.

JavaScript is a language you use on a Web page to make a Web browser do things.

I believe JavaScript is named as it is because Netscape came out with it a little after Sun came out with Java, in 1995. At that time Java was generating a buzz, and Netscape wanted to ride on Sun's coattails. It was supposed to be named "LiveScript", I think, and Netscape changed it at the last minute.

It might have been a smart marketing move, but its legacy is quite confusing and unfortunate. My "favorite" thing to see is bookstores put books on Java and JavaScript intermixed on the same shelf. If they do that, they could just as well put books on cooking and auto repair on the same shelf too. Wink

Regards,
Yaron
Back to top View user's profile Send private message Yahoo Messenger
Warburton



Joined:
14 Nov 2003

Posts:
136

Location:
London

Post Posted: Thu Feb 26, 2004 12:33 am
      Post subject:

Reply with quote

Quite right.

JavaScript (LiveScript) has absolutely nothing to do with Java.

You can think of programming languages in four levels:

Level 4: Markup languages like XML, SGML, HTML etc.
Level 3: Scripting languages like Javascript, Perl, ActiveX etc.
Level 2: Programming languages like Java, C++, C etc.
Level 1: Machine code

Level 4 is the simplest for humans to write and needs the most interpretation and Level 1 is the simplest for machines to understand and needs the least interpretation.
Back to top View user's profile Send private message
Yaron



Joined:
13 Nov 2003

Posts:
196

Location:
New York City

Post Posted: Thu Feb 26, 2004 5:29 am
      Post subject:

Reply with quote

Warburton wrote:
Quite right.
JavaScript (LiveScript) has absolutely nothing to do with Java.

Hi Warburton.

I'm glad you agree with me on the JavaScript/Java issue.

Quote:

You can think of programming languages in four levels:

Level 4: Markup languages like XML, SGML, HTML etc.
Level 3: Scripting languages like Javascript, Perl, ActiveX etc.
Level 2: Programming languages like Java, C++, C etc.
Level 1: Machine code

Level 4 is the simplest for humans to write and needs the most interpretation and Level 1 is the simplest for machines to understand and needs the least interpretation.

I think you're confusing what you're saying with something else.

There is what is called a "generation" for a programming language, i.e., 1GL, 2GL, 3GL, 4GL. Where roughly speaking, 1GL is machine code, 2GL is assembly, 3GL is languages like C, and 4GL is languages of higher abstraction.

The examples you give don't fall within those GL categories, though. ActiveX is not a programming language at all, it is an interface specification. Neither are XML, SGML, and HTML. They are markup, not programming languages. All they do is describe data, not execute commands.

Regards,
Yaron
Back to top View user's profile Send private message Yahoo Messenger
edburdo



Joined:
14 Jul 2003

Posts:
1760

Location:
Bangor, Maine

Post Posted: Thu Feb 26, 2004 1:26 pm
      Post subject:

Reply with quote

And the lines between a "scripting" language and a "programming" language are becoming more and more blurred. Once upon a time, there was a distinction. There really isn't anymore.

Perl can be compiled into a executable now. Both in the .Net framework, or as a standalone exe.

ASP.Net is standing the web development world on its head. All the complicated stuff is becoming easier and easier.

And I agree with Yaron on the generations of languages. 3GL and 4GL can be a bit difficult to difrentiate sometimes.
_________________
Eric D. Burdo
They Made $6,513 a day With Clickbank Doing This...
Back to top View user's profile Send private message Visit poster's website
Charlie



Joined:
22 Aug 2003

Posts:
3305

Location:
UK

Post Posted: Thu Feb 26, 2004 3:52 pm
      Post subject:

Reply with quote

edburdo wrote:
And the lines between a "scripting" language and a "programming" language are becoming more and more blurred. Once upon a time, there was a distinction. There really isn't anymore.

PHP is another example...

Apparently it's possible to use this "scripting language" for writing applications now, too.

Cheers,
Charlie.

P.S. If "rhetorical questions" are this good at continuing threads, I can see myself using them more in the future. Wink
_________________
"Before I speak, I have something important to say."
- Groucho Marx
Back to top View user's profile Send private message
Yaron



Joined:
13 Nov 2003

Posts:
196

Location:
New York City

Post Posted: Thu Feb 26, 2004 10:41 pm
      Post subject:

Reply with quote

Charlie wrote:
P.S. If "rhetorical questions" are this good at continuing threads, I can see myself using them more in the future. Wink


Continue, yes, but not quite on topic. Wink

- Yaron
Back to top View user's profile Send private message Yahoo Messenger
Warburton



Joined:
14 Nov 2003

Posts:
136

Location:
London

Post Posted: Sat Feb 28, 2004 1:58 am
      Post subject:

Reply with quote

I stand corrected. Embarassed
Thanks for setting me straight, Yaron.
Back to top View user's profile Send private message
Yaron



Joined:
13 Nov 2003

Posts:
196

Location:
New York City

Post Posted: Mon Mar 01, 2004 1:52 am
      Post subject:

Reply with quote

Warburton wrote:
I stand corrected. Embarassed
Thanks for setting me straight, Yaron.

Glad to be of service. Cool

- Yaron
Back to top View user's profile Send private message Yahoo Messenger
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic
Affiliate Marketing Forum Index » Getting Started - For New Affiliates
Page 1 of 1 All times are GMT

 

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Newsletter Sign-up

Sign-up Now!

How to make $1000 a month from scratch

Sign-up for our newsletter and receive our 77 page eBook "How to make $1000 a month from scratch".

Best of all it's FREE!

Your Host

Allan Gardyne

Learn from an affiliate veteran.

Your host, Allan Gardyne, has been earning a good living from affiliate programs since 1998.

Want a BETTER article writer? We will write good articles just for you.

Content Kingdom