This is a discussion on "js to change applet code" within the JavaScript Forum section. This forum, and the thread "js to change applet code are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
js to change applet code
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
js to change applet code
I am trying to implement somthing similar to a rollover except for its an applet instead of an image. Is this possible.
I am trying to modify document.layer['appl'].code=fname; is this correct in my page I have <applet code="Prog2_24.class" codebase="Assig1" width="400" height="400" id="appl" /> |
|
|
|
|||
|
Why do you want to use an applet for a rollover? It's not a good method for doing one. I'm guessing this is a homework assignment?
The old applet tag was replaced by OBJECT/EMBED a while back, and is probably what you should be using to put the applet into the page. Using this you should be able to modify the object's parameters using the syntax: appl.parametername = something Billy might know more about this. |
|
|||
|
It's not an assignment, I am creating a page with a selection box. You can choose the applet from the selection onFocus and I want it to display then you will be able to press the button and the source code will pop up. I haven't used the object tag, but will look it up thanks for the reply!
|
|
||||
|
You could always make the javascript reload the page with a querystring....
that way, you can tell which applet they want displayed and just display it. I would imagine this approach would be more cross-browser friendly. HTH
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
![]() |
| Tags |
| change, applet, code |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Code that will change variable name of Dynamic Text | KathyDeV | Flash & Multimedia Forum | 0 | Mar 5th, 2008 17:54 |
| applet not loading | joe3dge | Other Programming Languages | 0 | Aug 23rd, 2007 16:28 |
| stock quote applet... | wlandymore | Other Programming Languages | 0 | Nov 26th, 2006 16:41 |
| css to center java applet | onlinegamesplayer | Web Page Design | 2 | May 26th, 2006 16:29 |
| Urgentyl Required: Ftp Upload Applet | woody_j888 | PHP Forum | 6 | May 1st, 2006 15:43 |