This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
Dear all: Is there anyone know how to make applet as a link so I can insert as a link on my html page.So when I click on the link it will execute the applet, the link will also change the color. I know how to by click it through a image but I has no idea make it as link. or if it is impossible, please tell me also. Is the link only for html page not poosible for applet?
A very simple solution is to use another simple html file to call the Applet. Then your main html will have a link (archor)to the simple html file (or call it applet wrapper). When you click on the link (archor) you will call the html containing the Applet. The Applet will disply. hope it helps ruilin
Jerome Tang
Greenhorn
Joined: May 06, 2001
Posts: 8
posted
0
Yang: Thanks a lot for your reply. My problem is that when I click the link I need the applet show up and the html page can't be show up... is it possible? Thanks a lot
ruilin yang
Ranch Hand
Joined: Feb 25, 2001
Posts: 334
posted
0
Yes, your applet will only show up since your wrapper html has nothing to display except an Applet. you will be ok. regards, ruilin <HTML> <HEAD> </HEAD> <BODY> <FORM NAME="wrapper"> </form> <APPLET CODE="yourApplet.class" WIDTH=400 HEIGHT=300> <PARAM NAME="title" VALUE="sss"> </APPLET> </BODY> </HTML>
Jerome Tang
Greenhorn
Joined: May 06, 2001
Posts: 8
posted
0
Can take a look the code below... because after I follow your suggestion, it will show white blank image on the top left corner. I will need to click the top left corner to exec the applet.. Thanks a lot
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="GENERATOR" content="Mozilla/4.61 [en] (WinNT; U) [Netscape]"> <title>Document Manager</title> <!-- * bcwti * * Copyright (c) 1997, 1998 Windchill Technology Inc. * All Rights Reserved. * * This software is the confidential and proprietary information of * Windchill Technology. You shall not disclose such confidential * information and shall use it only in accordance with the terms * of the license agreement you entered into with Windchill. * * ecwti --> </head> <body > <FORM NAME="wrapper"> </form>