Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem editing java code

Status
Not open for further replies.

nwalk81

Technical User
Sep 30, 2003
29
US
I am updating my company website and the previous webmaster put button on the webpage in java. My problem is I want to edit the content of these buttons but my changes are not correct. Here is the code..I would appreciate any type of assistance. Thank you

<applet name=&quot;BtnPlayer&quot; ARCHIVE=&quot;BtnPlayer.jar&quot; code=&quot;BtnPlayer.class&quot; width=&quot;190&quot; height=&quot;330&quot; align=&quot;BOTTOM&quot;>
<PARAM NAME=&quot;cabbase&quot; VALUE=&quot;BtnPlayer.cab&quot;>
<PARAM NAME=&quot;p&quot; VALUE=&quot;25,0,1,ffffff,-1,.,0,0,0,.,.,.&quot;>
<PARAM NAME=&quot;0&quot; VALUE=&quot;5,5,120,40,1,0,0,2,4,4,5,^4,^192,^3,^14,^1,^1,^40,^25,^1,^0,^40,^25,^.,^.,^Organization,.,show 1*;hide 2*;hide 3*;hide 4*;Move organization: 5|5;Move programs: 5|200;Move partners: 5|245;Move happenings: 5|290;,.,org.html,.,organization,Organization,^808000,ffffff,ff8000,ff8000,^ff0000,^.&quot;>
<PARAM NAME=&quot;1&quot; VALUE=&quot;5,51,120,40,1,0,0,2,4,4,5,^4,^192,^3,^14,^1,^1,^40,^25,^1,^0,^40,^25,^.,^.,^Programs,.,show 2*;hide 1*;hide 3*;hide 4*;Move organization: 5|5;Move programs: 5|51;Move partners: 5|185;Move happenings: 5|230;,.,programs.html,.,programs,Programs,^808000,ffffff,ff8000,ff8000,^ff0000,^.&quot;>
<PARAM NAME=&quot;2&quot; VALUE=&quot;5,97,120,40,1,0,0,2,4,4,5,^4,^192,^3,^14,^1,^1,^40,^25,^1,^0,^40,^25,^.,^.,Partners,Community\nPartners,Community\nPartners,.,hide 1*;hide 2*;show 3*;hide 4*;move organization:5|5;move programs: 5|51;move partners: 5|97;move happenings: 5|185;,.,partners.html,.,partners,Community Partners,^808000,ffffff,ff8000,ff8000,^ff0000,^.&quot;>
<PARAM NAME=&quot;3&quot; VALUE=&quot;5,143,120,40,1,0,0,2,4,4,5,^4,^192,^3,^14,^1,^1,^40,^25,^1,^0,^40,^25,^.,^.,^Happenings,.,hide 1*;hide 2*;hide 3*;show 4*;move organization:5|5;move programs: 5|51;move partners: 5|97;move happenings: 5|143;,.,happenings.html,.,happenings,Happenings,^808000,ffffff,ff8000,ff8000,^ff0000,^.&quot;>
<PARAM NAME=&quot;4&quot; VALUE=&quot;5,40,120,30,0,0,0,2,^0,^4,^192,^0,^14,^1,^0,^40,^25,^1,^0,^40,^25,^.,^.,^Mission,^.,mission.html,.,1mission,Mission,^ffffff,808000,ff8000,ff8000,^ff0000,^.&quot;>
<PARAM NAME=&quot;5&quot; VALUE=&quot;5,55,130,30,0,0,0,2,^0,^4,^192,^0,^14,^1,^0,^40,^25,^1,^0,^40,^25,^.,^.,^Policy Statements,^.,policy.html,.,1policy,Policy Statements,^ffffff,808000,ff8000,ff8000,^ff0000,^.&quot;> <PARAM NAME=&quot;6&quot; VALUE=&quot;5,70,120,30,0,0,0,2,^0,^4,^192,^0,^14,^1,^0,^40,^25,^1,^0,^40,^25,^.,^.,^Membership,^.,membership.html,.,1membership,Membership,^ffffff,808000,ff8000,ff8000,^ff0000,^.&quot;>
<PARAM NAME=&quot;7&quot; VALUE=&quot;5,85,120,30,0,0,0,2,^0,^4,^192,^0,^14,^1,^0,^40,^25,^1,^0,^40,^25,^.,^.,^Board and Staff,^.,board.html,.,1board,Board and Staff,^ffffff,808000,ff8000,ff8000,^ff0000,^.&quot;>
<PARAM NAME=&quot;8&quot; VALUE=&quot;5,100,120,30,0,0,0,2,^0,^4,^192,^0,^14,^1,^0,^40,^25,^1,^0,^40,^25,^.,^.,^Agency Profile,^.,agency.html,.,1agency,Agency Profile,^ffffff,808000,ff8000,ff8000,^ff0000,^.&quot;>
<PARAM NAME=&quot;9&quot; VALUE=&quot;5,115,120,30,0,0,0,2,^0,^4,^192,^0,^14,^1,^0,^40,^25,^1,^0,^40,^25,^.,^.,^Press Releases,^.,press.html,.,1press,Press Releases,^ffffff,808000,ff8000,ff8000,^ff0000,^.&quot;>
<PARAM NAME=&quot;10&quot; VALUE=&quot;5,130,171,30,0,0,0,2,^0,^4,^192,^0,^14,^1,^0,^40,^25,^1,^0,^40,^25,^.,^.,^New Program Initiatives,^.,newprog.html,.,1newprog,New Program Initiatives,^ffffff,808000,ff8000,ff8000,^ff0000,^.&quot;>
<PARAM NAME=&quot;11&quot; VALUE=&quot;5,145,120,30,0,0,0,2,^0,^4,^192,^0,^14,^1,^0,^40,^25,^1,^0,^40,^25,^.,^.,^Policy Issues,^.,policyissues.html,.,1policyissues,Policy Issues,^ffffff,808000,ff8000,ff8000,^ff0000,^.&quot;>
<PARAM NAME=&quot;12&quot; VALUE=&quot;5,160,120,30,0,0,0,2,^0,^4,^192,^0,^14,^1,^0,^40,^25,^1,^0,^40,^25,^.,^.,^Public Relations,^.,public.html,.,1public,Public Relations,^ffffff,808000,ff8000,ff8000,^ff0000,^.&quot;>
<PARAM NAME=&quot;13&quot; VALUE=&quot;5,175,120,30,0,0,0,2,^0,^4,^192,^0,^14,^1,^0,^40,^25,^1,^0,^40,^25,^.,^.,^Map,^.,map.html,.,1map,Map,^ffffff,808000,ff8000,ff8000,^ff0000,^.&quot;>
<PARAM NAME=&quot;14&quot; VALUE=&quot;5,85,173,30,0,0,0,2,^0,^4,^192,^0,^14,^1,^0,^40,^25,^1,^0,^40,^25,^.,^.,^Youth Development,^.,youth.html,.,2youth,Youth Development,^ffffff,808000,ff8000,ff8000,^ff0000,^.&quot;>
<PARAM NAME=&quot;15&quot; VALUE=&quot;5,100,120,30,0,0,0,2,^0,^4,^192,^0,^14,^1,^0,^40,^25,^1,^0,^40,^25,^.,^.,^Technology,^.,technology.html,.,2technology,Technology,^ffffff,808000,ff8000,ff8000,^ff0000,^.&quot;>
<PARAM NAME=&quot;16&quot; VALUE=&quot;5,124,180,30,0,0,0,2,^0,^4,^192,^0,^14,^1,^0,^40,^25,^1,^0,^40,^25,^.,^.,^Volunteer Opportunities\n & Feedback,^.,volunteer.html,.,2volunteer,Volunteer Opportunities & Feedback,^ffffff,808000,ff8000,ff8000,^ff0000,^.&quot;>
<PARAM NAME=&quot;17&quot; VALUE=&quot;5,145,180,30,0,0,0,2,^0,^4,^192,^0,^14,^1,^0,^40,^25,^1,^0,^40,^25,^.,^.,^Employment Procurement,^.,employment.html,.,2employment,Employment Procurement,^ffffff,808000,ff8000,ff8000,^ff0000,^.&quot;>
<PARAM NAME=&quot;18&quot; VALUE=&quot;5,160,180,30,0,0,0,2,^0,^4,^192,^0,^14,^1,^0,^40,^25,^1,^0,^40,^25,^.,^.,^End of Year Appeal,^.,health.html,.,2health,End of Year Appeal,^ffffff,808000,ff8000,ff8000,^ff0000,^.&quot;>
<PARAM NAME=&quot;19&quot; VALUE=&quot;5,130,180,30,0,0,0,2,^0,^4,^192,^0,^14,^1,^0,^40,^25,^1,^0,^40,^25,^.,^.,^Private,^.,privatep.html,.,3privatep,Private,^ffffff,808000,ff8000,ff8000,^ff0000,^.&quot;>
<PARAM NAME=&quot;20&quot; VALUE=&quot;5,145,180,30,0,0,0,2,^0,^4,^192,^0,^14,^1,^0,^40,^25,^1,^0,^40,^25,^.,^.,^Public,^.,publicp.html,.,3publicp,Public,^ffffff,808000,ff8000,ff8000,^ff0000,^.&quot;>
<PARAM NAME=&quot;21&quot; VALUE=&quot;5,160,180,30,0,0,0,2,^0,^4,^192,^0,^14,^1,^0,^40,^25,^1,^0,^40,^25,^.,^.,^Community,^.,communityp.html,.,3communityp,Community,^ffffff,808000,ff8000,ff8000,^ff0000,^.&quot;>
<PARAM NAME=&quot;22&quot; VALUE=&quot;5,175,180,30,0,0,0,2,^0,^4,^192,^0,^14,^1,^0,^40,^25,^1,^0,^40,^25,^.,^.,^Games,^.,games.html,.,4games,Games,^ffffff,808000,ff8000,ff8000,^ff0000,^.&quot;>
<PARAM NAME=&quot;23&quot; VALUE=&quot;5,190,180,30,0,0,0,2,^0,^4,^192,^0,^14,^1,^0,^40,^25,^1,^0,^40,^25,^.,^.,^Calendar,^.,calendar.html,.,4calendar,Calendar,^ffffff,808000,ff8000,ff8000,^ff0000,^.&quot;>
<PARAM NAME=&quot;24&quot; VALUE=&quot;5,205,180,30,0,0,0,2,^0,^4,^192,^0,^14,^1,^0,^40,^25,^1,^0,^40,^25,^.,^.,^Hot Points,^.,hot.html,.,4hot,Hot Points,^ffffff,808000,ff8000,ff8000,^ff0000,^.&quot;>
<PARAM NAME=&quot;r&quot; VALUE=&quot;5fa3ff50&quot;>
<PARAM NAME=&quot;c&quot; VALUE=&quot;29c837bc&quot;>
<map name=&quot;buttons&quot;>
<area shape=&quot;rect&quot; href=&quot;org.html&quot; coords=&quot;5,5,125,45&quot;>
<area shape=&quot;rect&quot; href=&quot;programs.html&quot; coords=&quot;5,51,125,91&quot;>
<area shape=&quot;rect&quot; href=&quot;partners.html&quot; coords=&quot;5,97,125,137&quot;>
<area shape=&quot;rect&quot; href=&quot;happenings.html&quot; coords=&quot;5,143,125,183&quot;>
</map>
<img usemap=&quot;#buttons&quot; src=&quot;buttonsMap.jpg&quot; width=190 height=330 border=0>
</applet>

The changes I want to make include:
1. Adding &quot;& Statements&quot; to Param Name=&quot;9&quot;
2. Moving Param Name=&quot;10&quot; to appear under the Program Button
3. Taking out Param Name=&quot;11&quot;
4. Taking out Param Name=&quot;12&quot;
5. Moving Param Name=&quot;15&quot; to appear under the Happenings Button
6. Changing Param Name=&quot;16&quot; to &quot;Construction Trades&quot;
7. Moving Param Name=&quot;18&quot; to appear under the Organization Button
8. Taking out Param Name=&quot;24&quot;

Thank you again for any help in solving this matter.
 
to remove a parameter 'n', delete everything from &lt;PARAM NAME=&quot;n&quot; to the following '&gt;' character.<br><br>you'll probably want to change parameter 'n+1' to 'n'.<br><br>so if you remove parameter name=&quot;11&quot;, remove the following text:<br>&lt;PARAM NAME=&quot;11&quot; VALUE=&quot;5,145,120,30,0,0,0,2,^0,^4,^192,^0,^14,^1,^0,^40,^25,^1,^0,^40,^25,^.,^.,^Policy Issues,^.,policyissues.html,.,1policyissues,Policy Issues,^ffffff,808000,ff8000,ff8000,^ff0000,^.&quot;&gt;<br><br>you'd then want to change the next parameter name that you'd want to keep to 11.<br><br><br><br><br>I can not tell from your post what the Program Button, the Happenings Button, or the Organization Button is.<br><br><br><br>Where would you like to add &quot;& Statements&quot; to? Do you mean to say that you'd like to change &quot;Press Releases&quot; to &quot;Press Releases & Statements&quot;? As these parameters are formatted specifically for your website, I have no idea what your former webmaster's format was. I can only infer that you might want to try the following:<br>&lt;PARAM NAME=&quot;9&quot; VALUE=&quot;5,115,120,30,0,0,0,2,^0,^4,^192,^0,^14,^1,^0,^40,^25,^1,^0,^40,^25,^.,^.,^Press Releases & Statements,^.,press.html,.,1press,Press Releases & Statements,^ffffff,808000,ff8000,ff8000,^ff0000,^.&quot;&gt;<br><br>Though again, I have no idea how that is parsed within the class.<br><br><br>Are you aware that the code you have supplied is HTML, not java code? You might have better luck with your question in the HTML forum rather than the java forum... you also might want to look for any documentation in the java source material as to the format for the parameters.. I would have no idea how to read it as you have presented it, and can do no more than infer as much as you can. <p>Liam Morley<br><A HREF="mailto:"></A><br>&quot;light the deep, and bring silence to the world.<br>light the world, and bring depth to the silence.&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top