js to change applet code

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.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Feb 2nd, 2004, 03:22
New Member
Join Date: Feb 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
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" />

  #2 (permalink)  
Old Feb 2nd, 2004, 04:20
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
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.
  #3 (permalink)  
Old Feb 2nd, 2004, 13:01
New Member
Join Date: Feb 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
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!
  #4 (permalink)  
Old Feb 2nd, 2004, 14:58
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
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
Closed Thread

Tags
change, applet, code

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 10:32.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

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