Log in

View Full Version : Javascript and XML Help


TLuck234
15-01-2008, 10:06
On my team's site we have a new flash menu that I worked on. http://rockets34.com/test/ This is the website. The menu uses an XML file to display the information. To open a new window it uses _blank or _self. I want it to open a new window, so I have it set to _blank. The only problem is that it does not open maximized. I know I can use Javascript to obtain this, but I do not know where to put it in the code for it to work.

Here is the XML:

<?xml version="1.0" encoding="utf-8"?><menu><mainitem title="Home" link="index.php" target="_blank" enabled="true" icon=""></mainitem>
<mainitem title="FIRST" link="first.php" target="_blank" enabled="true" icon="ico00">
<subitem title="FIRST Overdrive" link="overdrive.php" target="_blank" enabled="true" /></mainitem>
<mainitem title="Team" link="" target="" enabled="true" icon="ico00"> <subitem title="Members" link="members.php" target="_blank" enabled="true" />
<subitem title="History" link="history.php" target="_blank" enabled="true" /></mainitem>
<mainitem title="Multimedia" link="" target="" enabled="true" icon="ico00"> <subitem title="Pictures" link="pictures.php" target="_blankf" enabled="true" /> <subitem title="Videos" link="videos.php" target="_blank" enabled="true" /></mainitem>
<mainitem title="Sponsors" link="sponsors.php" target="_blank" enabled="true" icon="ico00"></mainitem>
<mainitem title="Community Outreach" link="community.php" target="_blank" enabled="true" icon="ico00"></mainitem>
<mainitem title="Our Robot" link="our_robot.php" target="_blank" enabled="true" icon="ico00"></mainitem>
<mainitem title="Events" link="events.php" target="_blank" enabled="true" icon="ico00"></mainitem>
<mainitem title="Resources" link="resources.php" target="_blank" enabled="true" icon="ico00"></mainitem>
<mainitem title="Contact" link="contact.php" target="_blank" enabled="true" icon="ico00"></mainitem></menu>

RyanCesiel
15-01-2008, 16:57
I would use just flat-out javascript, it'll look better honestly and your site will load faster. Right now the content all has fuzzy text that looks like it's been anti-aliased way too much.

http://www.dynamicdrive.com/dynamicindex1/

May find some nice dropdown menus there.

TLuck234
17-01-2008, 10:16
Thanks for replying. And I looked around, but I really like the flash menu. I understand the speed issues and everything. Still wondering if anyone can give me help on this issue.

lukevanoort
17-01-2008, 10:27
I strongly recommend going to another solution instead of Flash. Flash adds limitations to your website (user must have flash, load times) that are unnecessary. Good website design is really about delivering the most content to the most people in the most pleasing way and taking the least amount time to do it, and flash doesn't meet those requirements. I would go to a nice CSS based solution myself; CSS drop down menus load fast and anyone with either a good browser or a IE6+ can view them. Also, I would get rid of the tables at the same time; tables make a website hard to access for those with disabilities, and are bad SEO practice.

TLuck234
17-01-2008, 10:37
Ok. Well I guess I will have to make a CSS menu then. And change the layout to a CSS design. Thanks for the help