B
Byron
Hi,
I need to remove some items from a Javascript drop down menu coded by
someone else. The menu is contained within a single .js file. I'm not
very fluent in javascript, but I know what it looks like and can usually
edit pre-existing code effectively.
When I open this particular .js file in either Dreamweaver (MX) or
notepad, even if I rename the extension, the code has no line breaks and
the part of it that writes the menu's html is full of squares, making it
very difficult to wade into and take out the parts I need to remove. For
example, I can't tell where one menu item stops and another one starts.
However, it still seems to work on the web site, despite all these funky
characters.
Is there a utility or editor that can properly format or parse a large
chunk of Javascript code like this:
!Partners
125px;+177pxPartnersfrmt
125px;+177px EFEFEF;border-%8 4&8 4(8 4bottom:8 4 solid
$%0px;(0px;)127;+24;>;14;normal;normal3F3F3F-.
EFEFEF#29_ _/partners/index.aspself9px;(5px;)105px;+
14-4;%0px$Overview%0px;(22px;)127;+
24;>;14;normal;normal3F3F3F-. EFEFEF#30_
_/microsoftself9px;(5px;)105px;+14-4;%0px$Microsoft%
0px;(44px;)127;+24;>;14;normal;normal3F3F3F-. EFEFEF#
31_ _/partners/featured/index.aspself9px;(5px;)105px;+14-
4;%0px$Featured partner%0px;(66px;)127;+
24;>;14;normal;normal3F3F3F-. EFEFEF#32_
_/partners/services.aspself9px;(5px;)105px;+14-4;%0px
$Services%0px;(86;)127;+24;>;14;normal;normal3F3F3F-
. EFEFEF#33_ _/partners/reseller.aspself9px;(5px;)
105px;+14-4;%0px$Reseller%0px;(110px;)127;+
24;>;14;normal;normal3F3F3F-. EFEFEF#34_
_/partners/business.aspself9px;(5px;)105px;+14-4;%0px
$Business%0px;(132px;)127;+
24;>;14;normal;normal3F3F3F-. EFEFEF#35_
_/partners/technology.aspself9px;(5px;)105px;+14-4;%0px
$Technology%0px;(154px;)127;+
24;>;14;normal;normal3F3F3F-. EFEFEF#36_
_/contact/contact_partners.aspself9px;(5px;)105px;+14-4;%
0px$Contact!
It's much much longer than that, but you get the idea.
What's up?
Thanks.
I need to remove some items from a Javascript drop down menu coded by
someone else. The menu is contained within a single .js file. I'm not
very fluent in javascript, but I know what it looks like and can usually
edit pre-existing code effectively.
When I open this particular .js file in either Dreamweaver (MX) or
notepad, even if I rename the extension, the code has no line breaks and
the part of it that writes the menu's html is full of squares, making it
very difficult to wade into and take out the parts I need to remove. For
example, I can't tell where one menu item stops and another one starts.
However, it still seems to work on the web site, despite all these funky
characters.
Is there a utility or editor that can properly format or parse a large
chunk of Javascript code like this:
!Partners
125px;+177pxPartnersfrmt
125px;+177px EFEFEF;border-%8 4&8 4(8 4bottom:8 4 solid
$%0px;(0px;)127;+24;>;14;normal;normal3F3F3F-.
EFEFEF#29_ _/partners/index.aspself9px;(5px;)105px;+
14-4;%0px$Overview%0px;(22px;)127;+
24;>;14;normal;normal3F3F3F-. EFEFEF#30_
_/microsoftself9px;(5px;)105px;+14-4;%0px$Microsoft%
0px;(44px;)127;+24;>;14;normal;normal3F3F3F-. EFEFEF#
31_ _/partners/featured/index.aspself9px;(5px;)105px;+14-
4;%0px$Featured partner%0px;(66px;)127;+
24;>;14;normal;normal3F3F3F-. EFEFEF#32_
_/partners/services.aspself9px;(5px;)105px;+14-4;%0px
$Services%0px;(86;)127;+24;>;14;normal;normal3F3F3F-
. EFEFEF#33_ _/partners/reseller.aspself9px;(5px;)
105px;+14-4;%0px$Reseller%0px;(110px;)127;+
24;>;14;normal;normal3F3F3F-. EFEFEF#34_
_/partners/business.aspself9px;(5px;)105px;+14-4;%0px
$Business%0px;(132px;)127;+
24;>;14;normal;normal3F3F3F-. EFEFEF#35_
_/partners/technology.aspself9px;(5px;)105px;+14-4;%0px
$Technology%0px;(154px;)127;+
24;>;14;normal;normal3F3F3F-. EFEFEF#36_
_/contact/contact_partners.aspself9px;(5px;)105px;+14-4;%
0px$Contact!
It's much much longer than that, but you get the idea.
What's up?
Thanks.