[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.6

Javascript Menu

Asked by rebelsurf86 in Hypertext Markup Language (HTML), JScript, Extensible Markup Language (XML)

Tags: html

I have a program that I would like to have a horizontial menu added to the top, and will clicked will send you to the item on the website.  There are ten items on the site, which is referenced to a XML file.  I fairly new at HTML, so any input you could give me would be greatly appreciated.  I used Dreamweaver to get rhe menus created, but I'm not sure how to link them to the specific itmes with the XML file.  Thanks.

HTML FIle:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel = "stylesheet" type = "text/css" href = "Master.css"/>
<title>HTML and XML</title>
      <script type="text/javascript" src="sarissa.js"></script>
      <script src="../SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
      <script src="../SpryAssets/xpath.js" type="text/javascript"></script>
      <script src="../SpryAssets/SpryData.js" type="text/javascript"></script>
      
      <script language="javascript">
function transForm(xml, xsl)
            {
                  var oXML = Sarissa.getDomDocument();
                  oXML.async = false;
                  oXML.load(xml);

                  var oXSL = Sarissa.getDomDocument();
                  oXSL.async = false;
                  oXSL.load(xsl);

                  var oProc  = new XSLTProcessor();
                  oProc.importStylesheet(oXSL);
                  var resHTM = oProc.transformToDocument(oXML);
                  //alert(new XMLSerializer().serializeToString(resHTM));
                  document.getElementById("RES").innerHTML = new XMLSerializer().serializeToString(resHTM);
            }
var ds1 = new Spry.Data.XMLDataSet("Surfboards.xml", "surfboard/board/image");
var ds2 = new Spry.Data.XMLDataSet("Surfboards.xml", "surfboard/board/name");
</script>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><style type="text/css">
<!--
body {
      background-color: #0033CC;
}
-->
</style>

<link href="../SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
</head>

<body onload="transForm('Surfboards.xml', 'Surfboards.xsl');">

<ul id="MenuBar1" class="MenuBarHorizontal">
  <li class="H1">    
    <div align="center"><a href="?{ds2::name}=High Performance" title="Menu1">High Performance</a> </div>
  </li>
  <li>
    <div align="center"><a href="#" title="Menu2" class="H1">Speed Demon</a></div>
  </li>
  <li>
    <div align="center"><a href="#" title="Menu3" class="H1">The Q4</a></div>
  </li>
  <li>
    <div align="center"><a href="#" title="Menu4" class="H1">The Comp Board</a></div>
  </li>
  <li>
    <div align="center"><a href="#" title="Menu5" class="H1">Big Guy Tri</a></div>
  </li>
  <li>
    <div align="center"><a href="#" title="Menu6" class="H1">Nose Rider</a></div>
  </li>
  <li>
    <div align="center"><a href="#" title="Menu7" class="H1">Easy Rider</a></div>
  </li>
  <li>
    <div align="center"><a href="#" title="Menu8" class="H1">The Fly</a></div>
  </li>
  <li>
    <div align="center"><a href="#" title="Menu9" class="H1">The Mullet</a></div>
  </li>
  <li>
    <div align="center"><a href="?{ds2::name}=The Bat Wing" title="Menu10" class="H1">The Bat Wing</a></div>
  </li>
</ul>
<div id="RES"></div>

<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>
</body>
</html>

XML File:

<?xml version='1.0'?>
<?xml-stylesheet type="text/css" href="Master.css" ?>
<?xml-stylesheet type="text/xsl" href="surfing.xsl"?>
<surfboard>
      <board>
            <name>High Peformance</name>
            <manufact>Rusty</manufact>
            <shape>Shortboard</shape>
            <length>6'2"</length>
            <rails>2 1/2"</rails>
            <fins>Thruster</fins>
            <bottom>Concave</bottom>
            <tail>Squash</tail>
            <glass>6 oz. Top and 4 oz. Bottom</glass>
             <image>RSQ.jpg</image>
      </board>
      <board>
            <name>Speed Demon</name>
            <manufact>Rusty</manufact>
            <shape>Shortboard</shape>
            <length>6'0"</length>
            <rails>2 "</rails>
            <fins>Detachable Thruster</fins>
            <bottom>Double Concave</bottom>
            <tail>Squash</tail>
            <glass>6 oz. Top and 4 oz. Bottom</glass>
            <image>RSQ2.jpg</image>
      </board>
      <board>
            <name>The Q4</name>
            <manufact>Rusty</manufact>
            <shape>Shortboard</shape>
            <length>5'10"</length>
            <rails>3"</rails>
            <fins>Quad</fins>
            <bottom>Six Channel</bottom>
            <tail>Bat Wing</tail>
            <glass>6 oz. Top and 4 oz. Bottom</glass>
            <image>Rusty 510 Quad.jpg</image>
      </board>
      <board>
            <name>The Comp Board</name>
            <manufact>Rusty</manufact>
            <shape>Shortboard</shape>
            <length>6'1"</length>
            <rails>1 3/8"</rails>
            <fins>Thruster</fins>
            <bottom>Concave</bottom>
            <tail>Pin</tail>
            <glass>Complite 4 oz.Top and Bottom</glass>
            <image>Rusty PIN.jpg</image>
      </board>
      <board>
            <name>Big Guy Tri</name>
            <manufact>Isle</manufact>
            <shape>Longboard</shape>
            <length>9'2"</length>
            <rails>3"</rails>
            <fins>Removable Thruster</fins>
            <bottom>Concave</bottom>
            <tail>Squash</tail>
            <glass>6 oz. Top and 4 oz. Bottom</glass>
            <image>IC.jpg</image>
      </board>
      <board>
            <name>Nose Rider</name>
            <manufact>Isle</manufact>
            <shape>Longboard</shape>
            <length>9'2"</length>
            <rails>3"</rails>
            <fins>Removable Thruster</fins>
            <bottom>Flat</bottom>
            <tail>Squash</tail>
            <glass>6 oz. Top and 4 oz. Bottom</glass>
            <image>IFB.jpg</image>
      </board>
      <board>
            <name>Easy Rider</name>
            <manufact>Isle</manufact>
            <shape>Longboard</shape>
            <length>7'10"</length>
            <rails>3"</rails>
            <fins>Single Fin</fins>
            <bottom>Double Concave</bottom>
            <tail>Squash</tail>
            <glass>6 oz. Top and 4 oz. Bottom</glass>
            <image>IDC.jpg</image>
      </board>
      <board>
            <name>The Fly</name>
            <manufact>Isle</manufact>
            <shape>Longboard</shape>
            <length>7'6"</length>
            <rails>3"</rails>
            <fins>Removable Thruster</fins>
            <bottom>Concave</bottom>
            <tail>Squash</tail>
            <glass>Epoxy</glass>
            <image>IE.jpg</image>
      </board>
      <board>
            <name>The Mullet</name>
            <manufact>Rainbow</manufact>
            <shape>Fun Shape</shape>
            <length>8'</length>
            <rails>3 1/2"</rails>
            <fins>Thruster</fins>
            <bottom>Concave</bottom>
            <tail>Swallow</tail>
            <glass>6 oz. Top and 4 oz. Bottom</glass>
            <image>RS.jpg</image>
      </board>
      <board>
            <name>The Bat Wing</name>
            <manufact>Rainbow</manufact>
            <shape>Fun Shape</shape>
            <length>6'6"</length>
            <rails>3"</rails>
            <fins>Single</fins>
            <bottom>Flat</bottom>
            <tail>Winged Swallow</tail>
            <glass>6 oz. Top and 4 oz. Bottom</glass>
            <image>RWS.jpg</image>
      </board>
</surfboard>

Again, I am new at this so any help would be greatly appreicated.
1:

           
 
 
[+][-]12/12/07 09:44 AM, ID: 20458617Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Hypertext Markup Language (HTML), JScript, Extensible Markup Language (XML)
Tags: html
Sign Up Now!
Solution Provided By: kmartin7
Participating Experts: 1
Solution Grade: A
 
[+][-]12/10/07 12:19 PM, ID: 20444696Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12/10/07 12:29 PM, ID: 20444796Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12/10/07 12:40 PM, ID: 20444888Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12/10/07 12:52 PM, ID: 20445018Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12/10/07 12:53 PM, ID: 20445025Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12/10/07 12:54 PM, ID: 20445030Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12/10/07 01:14 PM, ID: 20445205Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12/10/07 01:44 PM, ID: 20445507Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12/10/07 02:00 PM, ID: 20445637Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12/10/07 02:17 PM, ID: 20445802Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12/10/07 02:21 PM, ID: 20445830Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12/11/07 12:51 PM, ID: 20452668Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12/11/07 01:39 PM, ID: 20453060Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12/12/07 11:05 AM, ID: 20459228Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 / EE_QW_2_20070628