| | |
I want to know about the java code. Help please!!!!
![]() |
Hello,
I am a newb of Java applets. In the recent day, i got with a java code and is working properly with my current web page.
I'm herewith attaching that source code. You just cut and paste it, save it as name.htm, and run it. Interesting pop up. am i right?
But i don't know how it is working. i had a look at the java section. but can't! Anybody can help, to describe the java (<script>....</script>) section of the said script??
Anish V
(New Delhi, India)
I am a newb of Java applets. In the recent day, i got with a java code and is working properly with my current web page.
I'm herewith attaching that source code. You just cut and paste it, save it as name.htm, and run it. Interesting pop up. am i right?
But i don't know how it is working. i had a look at the java section. but can't! Anybody can help, to describe the java (<script>....</script>) section of the said script??
Anish V
(New Delhi, India)
The text file which you attached is no a java stuff, it is a HTML with additional JavaScript functionality.
What are differences:
To learn about JAVA Apllets check this http://java.sun.com/docs/books/tutor...let/index.html
What are differences:
- Java is an object-oriented programming language developed by Sun Microsystems in the early 1990s. Java applications are compiled to bytecode, which at runtime is either interpreted or compiled to native machine code for execution. (material from wikipedia.org)
- JavaScript is the name of Netscape Communications Corporation's and now the Mozilla Foundation's implementation of the ECMAScript standard, a scripting language based on the concept of prototype-based programming. The language is best known for its use in websites (as client-side JavaScript), but is also used to enable scripting access to objects embedded in other applications. (material from wikipedia.org)
To learn about JAVA Apllets check this http://java.sun.com/docs/books/tutor...let/index.html
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Thanks Peter! I got the website that you has introduced. But you didn't mind what I have asked. I seek help from the script that i had attached:
var ns4=document.layers
var ie4=document.all
var ns6=document.getElementById&&!document.all
function drag_drop(e)
{
if (ie4&&dragapproved)
{
crossobj.style.left=tempx+event.clientX-offsetx
crossobj.style.top=tempy+event.clientY-offsety
return false
}
else if (ns6&&dragapproved)
{
crossobj.style.left=tempx+e.clientX-offsetx+"px"
crossobj.style.top=tempy+e.clientY-offsety+"px"
return false
}
}
-----------------------------------------------------
THIS ONE!! From where can i find the tips about 'var', 'document.all','getelementbyid'? Did you notice that? If u can give me the link of the study materials so that i can reach there......
Anish V
(New Delhi, India)
var ns4=document.layers
var ie4=document.all
var ns6=document.getElementById&&!document.all
function drag_drop(e)
{
if (ie4&&dragapproved)
{
crossobj.style.left=tempx+event.clientX-offsetx
crossobj.style.top=tempy+event.clientY-offsety
return false
}
else if (ns6&&dragapproved)
{
crossobj.style.left=tempx+e.clientX-offsetx+"px"
crossobj.style.top=tempy+e.clientY-offsety+"px"
return false
}
}
-----------------------------------------------------
THIS ONE!! From where can i find the tips about 'var', 'document.all','getelementbyid'? Did you notice that? If u can give me the link of the study materials so that i can reach there......
Anish V
(New Delhi, India)
just quick google search
http://www.javascriptkit.com/jsref/
http://javascript-reference.info/
and ofcourse w3school - http://www.w3schools.com/js/default.asp
http://www.javascriptkit.com/jsref/
http://javascript-reference.info/
and ofcourse w3school - http://www.w3schools.com/js/default.asp
Last edited by peter_budo; Feb 19th, 2007 at 9:00 am.
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
And, of course, as mentioned in peter_budo's first post, that is JavaScript, not Java. Java != JavaScript. Find a JavaScript forum somewhere, rather than a Java Forum.
Java Programmer and Sun Systems Administrator
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
•
•
•
•
And, of course, as mentioned in peter_budo's first post, that is JavaScript, not Java. Java != JavaScript. Find a JavaScript forum somewhere, rather than a Java Forum.
Can you clarify what you have mentioned?
JavaScript and Java are two different programming languages. The name is similar, but they were developed by two different companies. JavaScript purposely took on that name to "ride the Java wave", but it has only syntactical similarities. It is not the same language. Google search for a forum dedicated to JavaScript and post your question there.
Java Programmer and Sun Systems Administrator
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
![]() |
Similar Threads
- Auto generate Java Code from WSDL using Axis (Java)
- Executing Shell script from Java code. (Java)
- download jar files using java code (Java)
- Move out java code from jsp (Java)
- Help with Java code (Java)
- code conversion from c\c++ to java (C++)
- Can N E 1 Help!!!! -- Need sample Java code (Java)
- java code newbie (Java)
Other Threads in the Java Forum
- Previous Thread: Password encrypt/decrypt
- Next Thread: Image background in J2ME form
| Thread Tools | Search this Thread |
2dgraphics account android api apple applet application arguments array arrays automation banking binary binarytree bluetooth chatprogramusingobjects class client code color component count database derby design eclipse eclipsedevelopment encryption error fractal game givemetehcodez graphics gridlayout gui html ide if_statement image inheritance integer interface j2me java javadesktopapplications javaprojects jlabel jni jpanel jtextfield julia keyword linux list macintosh map method methods midlethttpconnection mobile monitoring netbeans nullpointerexception object open-source os problem producer program project projectideas property read recursion reference replaysolutions ria scanner search server set size sms sort sourcelabs splash sql sqlite static stop string swing testautomation threads transforms tree ui unicode validation windows






