1 reply [Last post]
michael duffy
michael duffy's picture
Offline
newbie
uk
Last seen: 2 weeks 5 days ago
uk
Timezone: GMT+1
Joined: 2021-03-30
Posts: 1
Points: 2

Hi all I am very new to css, been using it for 4 weeks, Big smile
I have a dropdown menu that I use on a page. but what to use in on all html pages.

i have tried java script like this

  <body>
    <script type="text/JavaScript" language="JavaScript" src="js/menu-Ddown.js">
    </script>

which has the code in it like this. but it does not work. any help would be useful and greatly received.
mike

  Document.write ('    <div class="flexbox-container">');
 
  Document.write ('            <div class="flexbox-item flexbox-item-1">');
  Document.write ('            <h4> left of logo</h4>');
  Document.write ('            </DIV>');
  Document.write ('            <!-- items in the box are centerd on one line -->');
  Document.write ('                <div class="flexbox-item flexbox-item-1">');
  Document.write ('                   <img src="company images/small logo.png" alt="LandG logo" style="width:40%" style="height:40%" >');
 
  Document.write ('              </DIV>');
  Document.write ('              <div class="flexbox-item flexbox-item-1">');
  Document.write ('                     <h4> looking cool at cool prices </h4>');
 
  Document.write ('              </DIV>');
 
  Document.write ('    </div>');
  Document.write ('<br> </br>');
  Document.write ('<div class="flexbox-container1row" >');
 
  Document.write ('<nav>');
  Document.write ('  <div class="dropdown">');
  Document.write ('          <button> <a href="http://www.LandGfashion.com/index.html">Home</a></button>');
  Document.write ('          <div class="Ladies">');
  Document.write ('            <button>Ladies</button>');
  Document.write ('          <ul>');
  Document.write ('              <li><a href="indexladies.html">All dresses</a></li>');
  Document.write ('              <li><a href="Tops.html">Tops</a></li>');
  Document.write ('              <li> <a href="Jeans.html">Jeans</a></li>');
  Document.write ('              <li><a href="Lt-shirts.html">t-shirts</a></li>');
  Document.write ('              <li> <a href="Swimwear.html">Swimwear</a></li>');
  Document.write ('            <li><a href="Shorts.html">Shorts</a></li>');
  Document.write ('                <li><a href="Shorts.html">Lauangery</a></li>');
  Document.write ('          </ul>');
  Document.write ('      </div>');
  Document.write ('      <div class="Mens"> <!--<a href="http://www.LandGfashion.com/Uc.html">Mens</a> -->');
  Document.write ('          <button>Mens</button>');
  Document.write ('          <ul>');
  Document.write ('          <li><a href="#">Shirts</a></li>');
  Document.write ('          <li> <a href="Swimwear.html">Swimwear</a></li>');
  Document.write ('            <li><a href="Shorts.html">Shorts</a></li>');
  Document.write ('          </ul>');
  Document.write ('      </div>');
  Document.write ('  </div>');
  Document.write (' </div>  ');
 
  Document.write (' <!-- end of javescript   Document.write --> ');

Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 12 hours 56 min ago
Timezone: GMT-4
Joined: 2009-10-09
Posts: 2050
Points: 2282

The question is unclear.

The question is unclear. Please restate.