Making A Hyperlink! HELP!

Hi, I am doing a simple website, and I need to create a hyperlink in the HTML but using java. The reason being is that a cookie that is read in holds the destination URL, but the link would appear as HOME on the screen. Clicking this would then take them back to the correct place that they came from!
The line in HTML would look something like this:
<p>HOME</td>
where xxxx.xxx needs to be replaced by the variable that the read cookie holds!
I am going round the twist trying to find a functional way of doing this!! Can anyone help P L E A S E!
Many thanks in advance...
regards
Phil
PS: Sorry this is a double post, but didnt do a very good description in the other subject line!! :)

hope this helps
import java.awt.*;
import java.net.*;
import java.applet.*;
import java.awt.event.*;
public class testing1 extends Applet implements ActionListener {
Button button = new Button("Home");
public void init() {
button.addActionListener(this);
add(button);
setBackground(Color.black);
public void actionPerformed(ActionEvent me) {
if(me.getSource() == button) {
try { URL url = new                URL("http://javaboutique.internet.com/tutorials/"); 
getAppletContext().showDocument(url,"_self");
}catch(Exception tr) {}
}

Similar Messages

  • Anyone else having problems making a hyperlink to a file in CS4?

    Anyone else having problems making a hyperlink to a file? 
    I have a document in CS4 that I'm exporting to pdf. When I create a hyperlink in CS4 to a file, I am getting the message when I click the link in the pdf ' Cannot find the file:C%5Document' etc. 
    When creating the link, File is selected, Shared Destination is unchecked & checking the link using 'Go to Destination' shows the link works. 
    In Acrobat 9 Pro, I've checked the properties of the link - when exported from CS4, the Link Properties - Actions are 'Open a web link' 'file:C:\Documents%20'etc whereas if the link is created in Acrobat the link properties are ' 'Open a file' 'file:C\Documents and Settings' etc, and it works. 
    Is this a bug or am I missing something?

    I'm only getting that to work with the catalogue & sample in the same folder. In any case from a useability standpoint using URL brings up the Security Warning & putting the catalogue pdf in the same folder as 100 sample pdfs makes it more difficult to locate.
    I'm at a loss to understand why the functionality of creating a link in InDesign cannot be the same as Acrobat; where you can select 'Open a file', browse to that file and the relative links are maintained when you burn to a disc. InDesign looks as if it will do the same but when you select File as the link & browse to the destination file but InDesign treats it as a URL & brings up the the web link cursor in the finished pdf. That still looks like a bug to me.

  • Making a hyperlink open the linked page in a new browser window

    Does anyone know if iWeb allows a way to create a hyperlink such that it will open a new browser window rather than navigating away from your site?
    Thanks for any and all help.
    Brian
    www.productionmax.com

    I've scoured the forums. It's just not in the software as of yet. This is best solution I could find:
    http://discussions.apple.com/thread.jspa?messageID=1629842&#1629842

  • IWeb 09 (HyperLink HELP!)

    Hi My name's Pedro
    And I'm going crazy because of iWeb 09!!! My problem is that every time I try to make a hyper link (if it's a external link, one of my pages, a file, or an email... every kind) as soon as I publish it it reverts back to a file hyperlink... Pleas help I can't take it anymore!!!
    I've got the new MacBook Pro and my mac OSX version is 10.5.6
    Please Please assist me I neeeeed help! :O

    When you load a webpage, your browser stores the information so that the page will load quicker if you go back to it.
    It will "remember" the old version of your website and may not "see" the new changes.
    In Safari go to the Safari drop down menu, click on Empty Cache and then click the Empty button.
    Try to get into the habit of doing this regularly and particularly before you visit your newly published changes.

  • InDesign conversion to swf--embedding movies, hyperlinks help!

    Hello, all
    I am new to the CS4 experience and need some help. I have created a document and export to a .swf file. All works fine except the movies will not play and hyperlinks will not open. Is there a simple way to get the movies to play? As of now, I have quicktime files placed in the document.
    How about the links? The cursor recognizes there are links, but will not open. Says some security settings need to be changed. I want to set this so viewers will not have to do this when they view the page. Any suggestions/recommendations are welcome. One request, please put in "dummy" terms so I can easily understand LOL Thanks!
    Attached is the .swf created using InDesign.

    The hyperlink issue: The links will work once the swf file is uploaded to a web server. If you would like to see the links work from your locally saved file, you will have to access the flash player global security settings. Then edit locations > add locations > browse for files and select your swf file. Again, a user will not have to do this if accessing the file from a web server.
    The movie issue: Quicktime movies will only work in PDF export, not SWF export. Convert to AVI MPEG or SWF.
    How are you planning to present the file: distribute file via email or accessible through web site? If it is a file to email, you could export to PDF and the only thing you would lose is the swf page curls.

  • InDesign - CS4 Hyperlink Help

    I have gotten myself lost and am in need of some help.
    I have created a list of products on a page, all by titles - no images, only text, and each of these items should have an address/link on the internet, but I've gotten lost. How do I select one of the titles and make it a link to that page on the internet? I have selected one of the titles and then gone to Text > Hyperlinks & Crossreferences and my options are:
    New Hyperlink...
    New Hyperlink from URL
    Insert Cross References...
    When I select New Hyperlink, I will put the web address in the bar and say "OK", but nothing shows on the screen or no link is created. When I save it or make it into a PDF, still nothing happens.
    When I select New Hyperlink from URL, nothing happens to the text and no second window opens.
    How can I create a web link in InDesign CS4?
    Thanks
    Or, is it easier using Illustrator CS4? I just need to make a pdf with a list of products and a link to each on the web.
    By the way, is it just me or do others type in these questions and all of a sudden, it starts typing somewhere else on the page?

    First thing to do is check if you really added a hyperlink. If so, it should appear in the Hyperlink panel. Select it; the left arrow on the bottom selects the hyperlink in your document. The right arrow opens the link in your default browser.
    Second: check if you have "Include Hyperlinks" in your PDF Export settings.
    By the way, is it just me or do others type in these questions and all of a sudden, it starts typing somewhere else on the page?
    It's this flashy editor. Adobe programmers are able to create industry-standard document formats (PostScript, PDF, Type 1 Fonts) and to create world class software ("to photoshop" is an entry in most dictionaries by now) but they outsourced this editor to some obscure team. The regular posters have a name for this: a "Jive-up".

  • Making a hyperlink on JLabel to open a file

    Hi,
    I need some help with regards with hyperlink a JLabel. then it will open a certain file like a CSV file. I've been searching sites for a day. I hope you can help me this one.
    Thank you.

    here's the samle code I got on the web:Why wouldn't you read the API first?
    If you need further help then you need to create a "Short, Self Contained, Compilable and Executable, Example Program (SSCCE)", that demonstrates the incorrect behaviour.
    http://homepage1.nifty.com/algafield/sscce.html
    Don't forget to use the "Code Formatting Tags", so the posted code retains its original formatting.
    http://forum.java.sun.com/help.jspa?sec=formatting

  • Hyperlink help in CS3

    Okay guys im creating a web site here and am having problems
    with hyper linking web pages outside of my own. I am trying to put
    a hyperlink onto one of my forum pages but when I put it up then
    upload the page to my web shell and I click on the link it does not
    go to it, instead it goes to a sub domain of my web shell which I
    didn't put in the address at all. can somebody PLEASEEEEEEEEE help
    me.
    Thanks Josh.

    Have you used the full url? ie
    http://www.examplecom?
    Jo
    "Celtic33Pride33" <[email protected]> wrote
    in message
    news:f3da0u$paq$[email protected]..
    > Okay guys im creating a web site here and am having
    problems with hyper
    > linking
    > web pages outside of my own. I am trying to put a
    hyperlink onto one of my
    > forum pages but when I put it up then upload the page to
    my web shell and
    > I
    > click on the link it does not go to it, instead it goes
    to a sub domain of
    > my
    > web shell which I didn't put in the address at all. can
    somebody
    > PLEASEEEEEEEEE
    > help me.
    >
    > Thanks Josh.
    >

  • Making Java Game Help ^^

    We're making a game for our Java course and we're thinking of making something like Flash Flash Revolution, only in Java. Is this anywhere near possible? Or should we just make a tile-based game like Spyhunter...?
    I'd really appreciate some help or comments. ^^

    This can 100% definetly be done.
    The only real hard part is getting the arrows to perfectly sync up with the BPM of the music. Your going to have to write a routine that can change the scroll speed and timing of the arrows based on varying BPM values.
    There are some free programs out there you can download that will give you the BPM of songs you feed it. The non free tools allow you to get a higher and more accurate BPM precision.
    Of course if you simple make the game only have 1 song, and you already know the exact BPM, then you can code the initial arrow movement speed for that one song and pretty much the rest of the game is a cake walk to program.

  • Hyperlink help needed

    I am having some difficulty with hyperlinks in iWeb. I have made a Genealogy file in Reunion for Mac and posted it to iDisk. I can enter the URL into the address bar in Safari and it comes right up. Notice this is all Mac stuff.
    NOw when I go in to iWeb and make a hyperlink and choose "an external page" I can enter the URL and then I choose open in a new window and make hyperlinks active. If it wrks at all, even after publishing, it goes to an Apple site of some description. Nothing I have entered. When I go back to iWeb, the URL in the box is the apple livepage URL. It's as if I was never there.
    Can someone help me with this nuthouse??!!

    Is this a text link and are you formatting it?

  • Making training videos, help please

    Hi friends,
    I'm trying to make some training movies, similar to what you see on Lynda.com. Basically, they are a movie capture of what you're doing on the screen. Can someone please help me with the settings? Does the resolution of your monitor matter? I'm using Snapz Pro X to capture what I'm doing. Is that the best program? What should the compression settings be? I've been using "animation" as suggested by the program but the file sizes are huge.
    I'm on a MacBook Pro but most people who view it will be on a PC. Will they need to download something to view it?
    I'm sure this has been done many times before so if someone can give me advice, I would be very appreciative. I'm tired of testing, testing, testing.
    Thanks.

    Hi friends,
    I'm trying to make some training movies, similar to what you see on Lynda.com. Basically, they are a movie capture of what you're doing on the screen. Can someone please help me with the settings? Does the resolution of your monitor matter? I'm using Snapz Pro X to capture what I'm doing. Is that the best program? What should the compression settings be? I've been using "animation" as suggested by the program but the file sizes are huge.
    I'm on a MacBook Pro but most people who view it will be on a PC. Will they need to download something to view it?
    I'm sure this has been done many times before so if someone can give me advice, I would be very appreciative. I'm tired of testing, testing, testing.
    Thanks.

  • Why am I having trouble making any download helper work?

    I have a new MacBook Air. I have tried downloading several Download Helpers to download videos from YouTube, but none seem to work. When I downloaded the product "Dowload Helper" I did see an icon on the tool bar. When I would open Firefox I would see it in color momentarily, then it would "ghost". It would never activate or spin on any videos.

    stuart7491,
    Firefox is released on a posted 6 week schedule, so their is no reason for any add-on developer to be caught by surprise when their add-on stops working or needs to be updated.
    https://wiki.mozilla.org/RapidRelease/Calendar#Future_branch_dates
    Central (Nightly), Aurora (aka Developer Edition), Beta, and Release
    All "channel" versions are available for anyone that wants to "test" them, to see what is "coming down the road", or to contribute to the development of Firefox.
    The "life cycle" of each new version of Firefox is 24 weeks.
    6 weeks in the Nightly channel in Alpha 1 development.
    6 weeks in the Developer Edition / Aurora channel - Alpha 2.
    6 weeks in the Beta channel - "fit and finish" stage. ''(And very rarely a new, smaller feature is added in Beta when it was developed off the normal "channel route" in secret. Has happened just once, iirc, somewhat recently.)''
    Then 6 weeks as the latest Release version, before the next Release version comes out.

  • IWeb beginner hyperlink help?

    I have a link to a website and a logo I want to place the logo and the hyperlink on the logo but not to see it so when I click the logo it takes me to the web site how do I do this?

    To hyperlink your logo/image, see this Apple doc:
    _iWeb '08 or later: Creating a hyperlink_
    ...If that's not what you want to do, post back and explain.

  • Making text hyperlinks in comp for email ad?

    OK, I THINK I remember that there's a way to do this, but can't for the life of me remember it or find it, so maybe I'm wrong, but........
    I'm putting together a comp that will go into an email blast, and I want to make images and/or text into hyperlinks with appropriate alt text tags to certain websites.
    Do I have to create slices and export the entire comp as HTML and Images in Save for Web & Devices?  But that creates a web page layout, and I don't think that will work for inserting the comp into an email.
    How in the world do I do this, or do I need to do it in a different program entirely?  I have Design Premium CS4, but so far I'm only reasonably proficient in Photoshop and Dreamweaver; starting to learn Fireworks.

    Marian, I'm not the one who will actually be sending the email, although that's something I want to learn for the future.  I'm simply providing the graphic (with links) ad that will be sent out.  Maybe I ought to double-check with the guy who will be doing that; he runs a modeling agency, and this will be sent to all his clients.
    So your suggestion is more along the lines of:
    1) Merge everything that can be merged to simplify the eventual slices
    2) Slice by layers
    3) Add the info to each slice that needs the links and alt text
    4) Export the whole thing as both HTML and Images
    5) Send that off to the guy who's sending the email and let him insert it.
    Is that right, or am I missing something?
    I guess I'll try both ways.

  • Dreamweaver cs3 hyperlink help.

    Hi. I've been using dreamweaver for quite some time now. Not long ago i stumbled upon the spry menu bar and i am now wondering if there is a permanent attachment of hyperlinks to a page. I have a website with about 20 pages, and going through all of them and linking each other would be a very tedious task. So is there a way to connect all the links on one page and then replicate that to all the other pages?

    I like to use server-side includes for site wide menus, headers and footers.
    http://www.smartwebby.com/web_site_design/server_side_includes.asp
    Some people like to use DW Templates to create their site pages.   If you use a Template.dwt, you can put your site wide menu and other common page elements into it and they will appear on all child pages created from that Template file.
    http://www.smartwebby.com/web_site_design/dreamweaver_template.asp#1
    DIFFERENCES:
    SSI works on the server.  Edit one file, upload and you're done. Your hosting provider needs to support the use of includes in either .shtml,  .asp or .php pages. 
    DW Templates only work in Dreamweaver sites.  And you must re-publish all child pages after editing your Template.dwt file.
    Nancy O.

Maybe you are looking for