HELP I NEED A JAVA SCRIPT

I NEED A JAVA SCRIPT that chance the crouser on my webpage
my webpage is made whit flash
so i want i want a script that chance the cruser(mouse-pointer)

<script language="JavaScript">
alert("WRONG FORUM, Suggest you do a google search....");
</script>

Similar Messages

  • Help for compiling first Java script

    Friends,
    I am a begginer java programmer. Iam trying to compile a java script using .bat file which contains
    c:\j2sdk\bin\javac -classpath <c:\j2sdk\lib\dt.jar> . ReadOnlyMaker.java
    But it comes back with error as below
    >c:\j2sdk\bin\javac -classpath ReadOnlyMaker.java 0<c:\j2sdk\lib\dt.jar 1>.
    Access is denied.
    I have admin rights on this machine but the directory j2sdk , where java is installed, is always staying readonly even after changing permissions in properties tab.
    Not sure what is going wrong , Any one can Pl. help ?
    Thanks,

    First of all you don't need to be in the ..\..\bin directory to execute the javac.exe, java.exe, etc pgms as commands. If not already set up correctly, you can just add this to your System PATH.
    Next, start by executing from the directory your .java PGM is in.
    Then, what is that <...> stuff?
    Lastly, if it's a .java file, it's a pgm file and not a javascript. Javascript goes is only for web work, embedded in html.
    ~Bill

  • Help me debug my java script

    I have a form with fields named 1 to 18.  The user will enter 4 digit numbers in the fields and then hit a button that will run a java script.  This script will encrypt each of the 4 digit numbers we call codes.  The encryption is basically taking the first digit of the code and incrementing it by 1.  Then doing the same with the second digit and then keeping the last 2 digits unchanged.  So if they enter 1234 then hit the encrypt button the return is 2334.  Entering 9012 will return 0112.  The script below that my son wrote for me doesn't work.  No change occurs when the button is hit.  Any ideas why it doesn't work?
    var code;
    var i;
    for (i=1;<=18;i++)
    code=this.getField(i.toString());
    if(code.length==4)
    code=((code[0]*1+1)%10)toString() +((code[1]*1+1)%10).toString()+code.slice(2);
    this.getField(i.toString()).value=code;

    'toString()' is a method of the string property. You first need the value of the field before you can use the 'toString()' method.
    If you want to keep the leading zeros for the entered data you need to use the 'valueAsString' property of the field object.

  • Can anyone help me with multiple Java scripts?

    I am totally new to java....... minus some scripts and stuff.. can anyone tell me how to put multiple java scripts onto a page??
    Ty,
    Godrio

    Totally new to Javascript too, I suppose. That's the language you use for scripting of web pages, not Java. This forum is for Java.

  • I  need a Java script  help

    I need a javascript that I can put a list of picture urls in and it
    will be
    timed to fade into the next picture. I don't want just a rotating one
    it
    must fade into the next picture to look good. Very easy project

    I don't think you can do fading and rotating of
    images in Javascript anyway.Sounds like one of those godawful Flash thingsthat
    websites make you watch before you can get to the
    useful stuff.I hate those.
    My company's website is rife with them. System
    testing is a major PITA. I can only imagine how
    frustrating it must be for a customer who doesn't
    have broadband.My company also loads up the corporate site with this trash. We don't employ any web developers, so they brought in some "consultants" to do it for us.
    Every time I have to watch it, I'm reminded of the four straight years I went without a pay raise. Turns my stomach.

  • Help needed in Java Script

    HI all,
    can anyone tell me what is the meaning of following code ? Please !!
    Code
    <script language="JavaScript">
    function enable_button()
         document.form1.SelectBut.disabled =false;
    <td><font size=4 color="Blue">Please Select the .CSV file to e-mail</font></td><input type=FILE Accept="csv/*" size=30 name="acsvfile" title="Find a vaild .CSV file and Click SEND_EMAIL button" onclick="onChange=enable_button()"></tr>
    </table>
    Thanx in advance.
    Regards,
    Ashvini

    The form has a file input button (acsvfile) and a submit button (SelectBut). The SelectBut is initially disabled until the user clicks on the acsvfile button to select a file for upload.
    However I don't believe that it works the way that it i intended. The enable_button function gets called on the onClick event and the SelectBut will always be enabled even if the user cancels the file selection.
    You may want to remove the onClick and use :
    function enable_button()
        if (document.x.acsvfile.value == "") {
             document.x.SelectBut.disabled =true;
        } else {
            document.x.SelectBut.disabled =false;
    <td><font size=4 color="Blue">Please Select the .CSV file to e-mail</font></td><input type=FILE Accept="csv/*" size=30 name="acsvfile" title="Find a vaild .CSV file and Click SEND_EMAIL button" onChange="enable_button()"  onKeyDown="blur();"   ></tr> This will only enable the SelectBut if the user selects a file but will not allow the user to manually enter a file. You may want to be nice and add a clear button tp remove any files they have selected.

  • Quick April Fools Day help--I need an ARD script to change the screensaver

    I set up all the machines I manage to have a screensaver that looks like a broken LCD screen. Pushed it out with ARD3 and it's installed on everyones machine. I just need help sending a script to change the default screensaver to be the broken screen. I've no idea how to complete this. Can anyone help?

    I don't know how to change it, but if you have ARD you can run it:
    /System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app /Contents/MacOS/ScreenSaverEngine -module ScreenSaverName

  • Help Please Needed for Java Calculator - ActionListener HELP

    Hi. I am constructing a simple Java calculator and need help with the actionlistener and how it could work with my program. I am not too sure how to begin constructing the actionlistener. I would like to know the best and most simple solution to get this program work the way it should, like a real calculator. If anyone can help me, that would be much appreciated.
    package calculator;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class CalculatorGUI extends JFrame implements ActionListener{
    JTextField screen;
    JButton button7;
    JButton button8;
    JButton button9;
    JButton button4;
    JButton button5;
    JButton button6;
    JButton button1;
    JButton button2;
    JButton button3;
    JButton button0;
    JButton add;
    JButton minus;
    JButton multiply;
    JButton divide;
    JButton equals;
    JButton clear;
    private JTextField m_displayField;
    private boolean m_startNumber = true;
    private String m_previousOp = "=";
    private CalculatorLogic m_logic = new CalculatorLogic();
    public CalculatorGUI() {
    CalculatorGUILayout customLayout = new CalculatorGUILayout();
    getContentPane().setFont(new Font("Helvetica", Font.PLAIN, 12));
    getContentPane().setLayout(customLayout);
    screen = new JTextField("textfield_1");
    getContentPane().add(screen);
    button7 = new JButton("7");
    getContentPane().add(button7);
    button7.addActionListener(this);
    button8 = new JButton("8");
    getContentPane().add(button8);
    button8.addActionListener(this);
    button9 = new JButton("9");
    getContentPane().add(button9);
    button9.addActionListener(this);
    button4 = new JButton("4");
    getContentPane().add(button4);
    button4.addActionListener(this);
    button5 = new JButton("5");
    getContentPane().add(button5);
    button5.addActionListener(this);
    button6 = new JButton("6");
    getContentPane().add(button6);
    button6.addActionListener(this);
    button1 = new JButton("1");
    getContentPane().add(button1);
    button1.addActionListener(this);
    button2 = new JButton("2");
    getContentPane().add(button2);
    button2.addActionListener(this);
    button3 = new JButton("3");
    getContentPane().add(button3);
    button3.addActionListener(this);
    button0 = new JButton("0");
    getContentPane().add(button0);
    button0.addActionListener(this);
    add = new JButton("+");
    getContentPane().add(add);
    add.addActionListener(this);
    minus = new JButton("-");
    getContentPane().add(minus);
    minus.addActionListener(this);
    multiply = new JButton("*");
    getContentPane().add(multiply);
    multiply.addActionListener(this);
    divide = new JButton("/");
    getContentPane().add(divide);
    divide.addActionListener(this);
    equals = new JButton("=");
    getContentPane().add(equals);
    equals.addActionListener(this);
    clear = new JButton("Clear");
    getContentPane().add(clear);
    clear.addActionListener(this);
    setSize(getPreferredSize());
    addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    public void actionPerformed(ActionEvent event) {
    public static void main(String args[]) {
    CalculatorGUI window = new CalculatorGUI();
    window.setTitle("Calculator");
    window.pack();
    window.show();
    class CalculatorGUILayout implements LayoutManager {
    public CalculatorGUILayout() {
    public void addLayoutComponent(String name, Component comp) {
    public void removeLayoutComponent(Component comp) {
    public Dimension preferredLayoutSize(Container parent) {
    Dimension dim = new Dimension(0, 0);
    Insets insets = parent.getInsets();
    dim.width = 421 + insets.left + insets.right;
    dim.height = 494 + insets.top + insets.bottom;
    return dim;
    public Dimension minimumLayoutSize(Container parent) {
    Dimension dim = new Dimension(0, 0);
    return dim;
    public void layoutContainer(Container parent) {
    Insets insets = parent.getInsets();
    Component c;
    c = parent.getComponent(0);
    if (c.isVisible()) {c.setBounds(insets.left+8,insets.top+8,408,64);}
    c = parent.getComponent(1);
    if (c.isVisible()) {c.setBounds(insets.left+8,insets.top+80,96,56);}
    c = parent.getComponent(2);
    if (c.isVisible()) {c.setBounds(insets.left+120,insets.top+80,96,56);}
    c = parent.getComponent(3);
    if (c.isVisible()) {c.setBounds(insets.left+232,insets.top+80,96,56);}
    c = parent.getComponent(4);
    if (c.isVisible()) {c.setBounds(insets.left+8,insets.top+144,96,56);}
    c = parent.getComponent(5);
    if (c.isVisible()) {c.setBounds(insets.left+120,insets.top+144,96,56);}
    c = parent.getComponent(6);
    if (c.isVisible()) {c.setBounds(insets.left+232,insets.top+144,96,56);}
    c = parent.getComponent(7);
    if (c.isVisible()) {c.setBounds(insets.left+8,insets.top+208,96,56);}
    c = parent.getComponent(8);
    if (c.isVisible()) {c.setBounds(insets.left+120,insets.top+208,96,56);}
    c = parent.getComponent(9);
    if (c.isVisible()) {c.setBounds(insets.left+232,insets.top+208,96,56);}
    c = parent.getComponent(10);
    if (c.isVisible()) {c.setBounds(insets.left+120,insets.top+272,96,56);}
    c = parent.getComponent(11);
    if (c.isVisible()) {c.setBounds(insets.left+344,insets.top+80,72,56);}
    c = parent.getComponent(12);
    if (c.isVisible()) {c.setBounds(insets.left+344,insets.top+144,72,56);}
    c = parent.getComponent(13);
    if (c.isVisible()) {c.setBounds(insets.left+344,insets.top+208,72,56);}
    c = parent.getComponent(14);
    if (c.isVisible()) {c.setBounds(insets.left+344,insets.top+272,72,56);}
    c = parent.getComponent(15);
    if (c.isVisible()) {c.setBounds(insets.left+344,insets.top+336,72,56);}
    c = parent.getComponent(16);
    if (c.isVisible()) {c.setBounds(insets.left+8,insets.top+408,408,72);}
    }

    Yeah, I have a rough idea of what the calculator
    should do, like most people would. Its just that I
    dont know how to implement this in Java. Thats the
    problem. Can anyone provide me with code snippets
    that I can try?No I would rather see you make an effort from what has been discussed here. This is not a Java problem this is a general programming problem.

  • Help urgently needed with Java RMI task.

    Hello All. Please I need help urgently with this task. I cant seem to be able to do this. Here is the task:
    There are m squares with side lengths a1, a2, ..., am and a rectangle with the height and width equal to h and w respectively. Find a subset of the squares, which must be placed within the rectangle in such a way that they do not overlap, and cover the maximum area of a rectangle.*
    Please all help me solve this task using Java RMI. I would be very grateful for your help. Thanks in advance.

    Here is my client.java.
    import compute.;*
    import java.lang.Math.;*
    import java.lang.Long;
    *public class Hypothesis implements Task {*
    private long start;
    private long end;
    private int number;
    private int count;
    public Hypothesis(long start, long end, int number,int
    *count) {*
    this.start = start;
    this.end = end;
    this.number = number;
    this.count = count;
    *public Object execute() {*
    return findSolution();
    *public String findSolution() {*
    long i,j,k,l,m=1,i_max,j_max,k_max,l_max,l_start;
    System.out.println(start);
    System.out.println(end);
    System.out.println(number);
    System.out.println(count);
    for(m=start+number;m<end;m+=count)
    i_max=(long)java.lang.Math.pow((double)(min(p5(m)-3)),0.2d)+1;
    for(i=i_max;i>0;i--)
    j_max=(long)java.lang.Math.pow((double)(min(p5(m)-p5(i)-2)),0.2d)+1;
    if (j_max>i) j_max=i;
    for(j=j_max;j>0;j--)
    k_max=(long)java.lang.Math.pow((double)(min(p5(m)-p5(i)-p5(j)-1)),0.2d)+1;
    if (k_max>j) k_max=j;
    for(k=k_max;k>0;k--)
    l_max=(long)java.lang.Math.pow((double)(min(p5(m)-p5(i)-p5(j)-p5k))),0.2d)+1;
    if (l_max>k) l_max=k;
    if (l_max>2) l_start=l_max-2;
    else l_start=1;
    for(l=l_max;l>l_start-1;l--)
    if(p5(i)+p5(j)+p5(k)+p5(l)==p5(m))
    Long[] solution=new Long[5];
    solution[0]=i;
    solution[1]=j;
    solution[2]=k;
    solution[3]=l;
    solution[4]=m;
    *return "" solution[0]"^5+"*
    solution[1]"^5+"*
    solution[2]"^5+"*
    solution[3]"^5="*
    solution[4]"^5";*
    return null;
    *private long p5(long n){*
    return nn*n*n*n;*
    *private long min(long n){*
    return n>0?n:0;
    I just can't seem to get the whole thing work correctly on the server side. I need it to run from 1 client on atleast 3 servers. Please any explanations will be appreciated.

  • Help is needed for java mp3 project!!

    I'm doing a java applet which hav the function of playing mp3 files as for my case is .wav file.. I can start to play by using the audio clip object file but how about jumping to next song by pressing the fast forwad button and back track the previous ones by pressing the backward button.. Does we need to use a loop or method? Please give me some advise Plz.... Thnks..

    Hi, I've just done a music playing app, an I used JMF,
    http://java.sun.com/products/java-media/jmf/index.jsp
    Give that a go.

  • Urgent help is needed - JSP & Java beans

    Hi,
    I am getting the following problem when trying to interact with Javabeans from JSP (DB I use is Cloudscape) :
    An exception occurred while interacting with the guestbook database.
    The error message was:
    Cannot create bean of class proj.beans.UserDataBean
    Please try again later
    The problem probably occurs in following line:
    status = guestData.checkUser(userName,emailName);
    where guestData represents a Javabean class.
    The strangest thing is that sometimes, suddenly, the program is working OK without this Error Message but when it occurs I don't know the reason and how to solve it.
    Please advise...
    Thanks a lot.

    Can you copy the entire stack trace and post it? It would probably help.

  • Help with Java vs. Java Script

    Would someone please tell me the difference between 'Java'  and  'Java Script'.  From what I have read, I can see my need for Java Script, but what is Java?Some have even said to disable Java because Apple doesn't support it and that Java has security problems.  I don't iChat, or play games online, so should I disable Java?
    A representative at Apple told me that Java and Java Script are one and the same.  I don't think so.  (at least not from what I have read).  I don't have the computer sophistication to make a decision here without someone's help.  HELP

    I just ran a test.  I "unchecked" Java just to see what would happen.
    Don't have the knowledge to make a definitive statement that unchecking Java was causing this problem . . . but everytime I typed in an address to a website, it would falter, stop, start again, falter and then finally get me to
    the website.
    I "checked" to enable Java and everything speeded up!  I think I'll just leave Java alone and "enabled".
    Thanks.
    (I left Sunny SoCal not long ago...I miss it!)

  • Is there any way to determine if a link is a book mark or hyperlink in java script

    Is there any way to determine if a link is a book mark or hyperlink in java script
    Sub Problem:
    I am making an array of quads of all the hyperlinks in a document. I would like to automatically skip over all the bookmarks in the starting pages of a document and just get the links of the hyperlinks.
    Now I have to manually set the pages that contain bookmarks so they are not included in the array.
    Is there any way to determine if a link is a book mark or hyperlink in java script?
    It would help automate the conversion I need below
    John
    Main Problem:
    I have been working on converting a set of pdf files with 1000’s of hyperlinks like www.site.com\folder1\file1.pdf#page=10
    To jump to a local copy of the files with a relative type link
    ../folder1/file1.pdf and then go to the proper page.
    I have found that it can be done manually by changing the hyperlink to a javascript
    var otherDoc = app.openDoc('../folder1/file1.pdf', this);otherDoc.pageNum = 10 - 1;
    and setting each destination file with a disclose()=true;
    Based on the help so far that java script cannot access the hyperlink value in a link
    See: http://forums.adobe.com/thread/1039908?tstart=60
    I have resorted to the following plan using acrobat javascript, an external keyboard macro recorder and excel in combination to get around the problem
    Four folder level acrobat javascripts with “buttons”
    One to get all the link quads in an array, in the pdf and report the total number
    The second creates a form field in the far corner of the first page and moves there.
    The third jumps to each link found by creating a form field just to the left of the link and zooms in so it can be selected by a “mouse click” from the keyboard macro recorder 
    The forth deletes the form field
    The keyboard macro recorder runs javascript 2 and then 3 then clicks on the link just to the right of the middle of the screen and uses keys to get to the advanced editing to get to edit the hyperlink .
    The hyperlink is then copied to excel where it is converted using string functions to the needed javascript text to be copied back.
    To the acrobat file into a java script (after deleting the hyperlink)
    Rinse/lather/repeat
    I have been able to convert about 150 links an hour.
    Better then hand typing, but not like having java access to the links.
    I am looking to improve the solution

    thanks for your help.
    I may have been confusing a "acrobat bookmark" and a bookmark in a word file that is converted to a pdf and ends up being a
    link of the type:
    "Go to a page in this document"
    which I do not want in my array vs
    a link of the action type:
    "Open a web link"
    Which I do want
    John
    My code, note how I have to skip pages with "Go to a page in this document" links depending on the document, I would like to use the same code for each document and skip over the "Go to a page in this document" links :
    global.ilinkindex = 1; 
    global.aLinkquads = [ [0, 1, 1, 0, 0],
           [0, 0, 0, 0, 0] ];
    function GetLinkArray()
    global.ilinkindex = 1;
    var iTotalLinks=0;
    // for ( var p = 0; p < this.numPages - 8 ; p++)                   // end before bookmarks for each page of the file x.pdf
    //  for ( var p = 0; p < this.numPages; p++)                     // for each page of the file
    for ( var p = 23; p < this.numPages; p++)                     // start after bookmarks for each page of the file y.pdf
      var cropbox = this.getPageBox("Crop", p);
      var alinksonpage = this.getLinks(p, cropbox);            // get array of links on page
      for ( var ll = 0; ll < alinksonpage.length; ll++)
       var linkquads = alinksonpage[ll].rect;     // get link Quads
       linkquads[4] = p;          // add page number to link Quads array
        global.aLinkquads[global.ilinkindex] = linkquads; // add quads to global link Quads array
        global.ilinkindex++;
    iTotalLinks = global.aLinkquads.length - 1;
    global.ilinkindex = 1;
    app.alert("Number of Links in Document is " + iTotalLinks );

  • How to call a java script method to open a saveAS dialog box in MAU .

    Hi All,
    I am Enhancing the MAU application.
    I want a link in my order detail page , say open a link
    When I click on that link a save as dislog box should open.
    With a normal jsp and java script it can be done easily , but not sure about the coding to be included in MAU enhancement.
    Can any one  help me regarding this java script coding to be inclded in MAU.
    Thanks and Regards
    Neha Mahanty

    Hi Neha,
    have a look into the enhancement documents of MAM / MAU. There you can see that the documents (JSP and controller) have to be enhanced in a way, that you add a Z_..... module to your project for each changed file. (In Simple Words)
    Because this is the case, you can enhance your JSP with the stuff you like as long as you do it in the Z....JSP page and then it should be straight forward - as you said.
    Hope that helps!
    Regards,
    Oliver

  • Java script menu

    Can anyone here help me with a Java Script Menu? It is a Vertical Drop Down
    Many thanks

    Try this:
    http://jsfiddle.net/NancyO/zN7fU/
    Reponsive Menu for Touch Screen Devices:
    http://www.meanthemes.com/plugins/meanmenu/
    Nancy O.

Maybe you are looking for

  • Delete apps from ipod touch with ios6

    since I've downloaded ios6 I can't complietly delete apps from icloud. What can I do if I don't want to have a long long long list of apps I don't use anymore?

  • HP dv6 DVD drive not reading DVD's

    Hi, my HP dv6 is currently running windows 7 and for some reason it will not read DVD's. It will read CD's just fine no matter what's on them. I've tried to uninstall and reinstall the driver and find other sollutions and so far nothing has worked. P

  • Cleaning 8130 pearl cache

    how do I clean the cache in my 8130 pearl. Solved! Go to Solution.

  • Coder Error on Exporting to QT

    i am trying to export a sequence of HD clips in 1080i 50f to 720i 50f quicktime. But everytime it almost finished rendering, an error message will pop out say "Codec Error". I didn't have any problems with other sequences using the same format. Anyon

  • Quite a bit disappointed by adobe flash player 10

    I'm quite disappointed by the failure of adobe to publish a 64bit version of the flash player 10. This leaves a lot of people with a less stable, less secure and less performing solution. A real pity. Richie