Results 1 to 6 of 6

Thread: Java and getting it to work
      
   

  1. #1
    Stonekold is offline Private
    Join Date
    Apr 2008
    Posts
    3

    Default Java and getting it to work

    Hi. I amm new to website build and I know how to add the java element but how do you actually get the java to work? I have items on my page and i want the little java *****t to pop up when you click the picture. Being new I have no idea how to do this. Can anyone help? Thanks in advance.

    Stone

  2. #2
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default Re: Java and getting it to work

    Are you asking how to made the java *****t? Or just how to instead of just adding an *****t to a page make it work when you click a picture?

    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

  3. #3
    Stonekold is offline Private
    Join Date
    Apr 2008
    Posts
    3

    Default Re: Java and getting it to work

    I suppose both. I am not really sure. I want to use pictures on my site so that when you click on the picture you get a small java window that gives additional information about the picture. But in truth both would be helpful.

    Stone

  4. #4
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default Re: Java and getting it to work

    I think you are wanting javascript. Just put an onclick event with code like

    window.open ("http://yoursite.com/additional_info.html",
    "popup","location=1,status=1,scrollbars=1,
    width=500,height=200");

    Changing the width and height values to change the size of the window.

    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

  5. #5
    Stonekold is offline Private
    Join Date
    Apr 2008
    Posts
    3

    Default Re: Java and getting it to work

    Ok, sorry I am asking so many questions, but I am very new to this. Can you give a detailed example? Say, you click on a picture of myself. Up pops a javascript window with a small bio about myself. This is javascript, correct? And what is the difference between java and javascript?
    Again thanks for the help.

    Stone

  6. #6
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default Re: Java and getting it to work

    Yes, the code I posted above is javascript. Basically your webpage is made up of html code, which is static in nature. The code I posted above uses an event which has special uses with javascript, onclick being it will before whatever process the code tells your browser to do when you on that element.

    So when you are clicking the picture of yourself, you are executing the javascript code, which in this case opens a pop up window of another page on your site that contains your bio.

    Javascript is a scripting language run in the browser environment, Java is a high level compiler language which is capable or anything from small web *****ts to full blown applications that you run on your computer.

    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49