Page 1 of 3 123 LastLast
Results 1 to 10 of 29

menu using javascript?

This is a discussion on menu using javascript? within the Programming forums, part of the Web Designing & Development category; Can anybody tell me how to create menu using javascript?...

  1. #1
    Junior Member Array
    Join Date
    May 2007
    Posts
    17

    Default menu using javascript?

    Can anybody tell me how to create menu using javascript?

  2. #2
    Administrator Array SticKer's Avatar
    Join Date
    May 2007
    Posts
    3,700

    Default Re: menu using javascript?

    i am not very good in java i am still learning i will check my books and see if i get the code for the menu

    Buy / Sell / Trade Products and Services at our Webmaster Marketplace

    61 Ways To Drive Targeted Traffic To Your Website

  3. #3
    Senior Member Array slnet's Avatar
    Join Date
    May 2007
    Location
    Swapna Lokam
    Posts
    413

    Default Re: menu using javascript?

    Please explain what kind of menu are you looking for... I mean all aspects of your menu in your imagination...
    Where from, Why here, Where to..?
    May god bless, who he wishes to bless!!

    ----------------------
    Affordable and reliable hosting at www.marginfreehosting.com

  4. #4
    Junior Member Array
    Join Date
    May 2007
    Posts
    5

    Default Re: menu using javascript?

    Yeah, there are several types of menus. Here is a good one for CSS menus: http://www.howtocreate.co.uk/tutorials/testMenu.html

  5. #5
    zk0
    zk0 is offline
    Member Array
    Join Date
    May 2007
    Posts
    75

    Default Re: menu using javascript?

    Quote Originally Posted by SticKer
    i am not very good in java i am still learning i will check my books and see if i get the code for the menu
    Java and Javascript are two different programming languages.

    But why do you want to do a menu in Javascript? The search bots will have a hard time finding it.

  6. #6
    Super Moderator Array wired076's Avatar
    Join Date
    May 2007
    Posts
    685

    Default Re: menu using javascript?

    zk0 I have a similar issue where I am upgrading and updating my website as it is a bit outdated as I have been doing other things with it and want to create a good menu with cool text and a black background. Something like www.wired.profusehost.net/test.htm (a test page on my website. Please note only viewable in firefox). I currently have it set up using css as seen as www.wired.profusehost.net. I would like to create something like this website's navigation, http://www.wired.com/ which has a black navigation bar.

    Please help in regards to what I can use to create my own navigation bars.

  7. #7
    Junior Member Array
    Join Date
    May 2007
    Posts
    2

    Default Re: menu using javascript?

    i checked this in ie, we only have ie in office. cant view it here

  8. #8
    Super Moderator Array wired076's Avatar
    Join Date
    May 2007
    Posts
    685

    Default Please help

    I want to create my own navigation for my website like wired.com but don't know how to. Can anyone give me some help. I am currently using CSS. See my above post for further info.

  9. #9
    Junior Member Array
    Join Date
    Nov 2007
    Posts
    2

    Default Re: menu using javascript?

    Example:Onmouseovermenu
    Code:
    <style type="text/css">
    #coolmenu{
    border: 1px solid black;
    width: 170px;
    background-color: #E6E6E6;
    }
    #coolmenu a{
    font: bold 13px Verdana;
    padding: 2px;
    padding-left: 4px;
    display: block;
    width: 100%;
    color: black;
    text-decoration: none;
    border-bottom: 1px solid black;
    }
    html>body #coolmenu a{ /*Non IE rule*/
    width: auto;
    }
    #coolmenu a:hover{
    background-color: black;
    color: white;
    }
    #tabledescription{
    width: 100%;
    height: 3em;
    padding: 2px;
    filter:alpha(opacity=0);
    -moz-opacity:0;
    }
    </style>
    <script type="text/javascript">
    var baseopacity=0
    function showtext(thetext){
    if (!document.getElementById)
    return
    textcontainerobj=document.getElementById("tabledescription")
    browserdetect=textcontainerobj.filters? "ie" : typeof textcontainerobj.style.MozOpacity=="string"? "mozilla" : ""
    instantset(baseopacity)
    document.getElementById("tabledescription").innerHTML=thetext
    highlighting=setInterval("gradualfade(textcontainerobj)",50)
    }
    function hidetext(){
    cleartimer()
    instantset(baseopacity)
    }
    function instantset(degree){
    if (browserdetect=="mozilla")
    textcontainerobj.style.MozOpacity=degree/100
    else if (browserdetect=="ie")
    textcontainerobj.filters.alpha.opacity=degree
    else if (document.getElementById && baseopacity==0)
    document.getElementById("tabledescription").innerHTML=""
    }
    function cleartimer(){
    if (window.highlighting) clearInterval(highlighting)
    }
    function gradualfade(cur2){
    if (browserdetect=="mozilla" && cur2.style.MozOpacity<1)
    cur2.style.MozOpacity=Math.min(parseFloat(cur2.style.MozOpacity)+0.2, 0.99)
    else if (browserdetect=="ie" && cur2.filters.alpha.opacity<100)
    cur2.filters.alpha.opacity+=20
    else if (window.highlighting)
    clearInterval(highlighting)
    }
    </script>
    <div id="coolmenu">
    <a href="required link" onMouseover="showtext('JavaScript tutorials and scripts!')" onMouseout="hidetext()">JavaScript Kit</a>
    <a href="required link" onMouseover="showtext('300+ free JavaScripts')" onMouseout="hidetext()">Free JavaScripts</a>
    <a href="required link" onMouseover="showtext('Comprehensive JavaScript Reference')" onMouseout="hidetext()">JavaScript Reference</a>
    <a href="required link" onMouseover="showtext('Web coding and development forums!')" onMouseout="hidetext()">Coding Forums</a>
    <a href="required link" onMouseover="showtext('Award winning DHTML and JavaScripts')" onMouseout="hidetext()">Dynamic Drive</a>
    <div id="tabledescription"></div>
    </div>
     
    Triple drop down menu:::::::
     
    <form name="formTripleMenu" id="formTripleMenu" action="">
    <table bgcolor="#0000A0" border="1">
    <tr>
    <td colspan="3" width="528">
    <strong>
    <font size="2" color="#FFFFFF">
    To explore self
    development and computer stuff: - choose a topic from the drop-down box on the left, then
    a subject from the box in the middle. And finally choose a page from the drop down menu on
    the right.
    </font>
    </strong>
    </td>
    </tr>
    <tr>
    <td valign="top" align="center" width="171">
    <div align="center">
    <center>
    <p>
    <small>
    <strong>
    <font color="#ffffff">
    Select a topic ...
    </font>
    </strong>
    </small>
    </td>
    <td valign="top" align="center" width="176">
    <small>
    <strong>
    <font color="#FFFFFF">
    ... then
    a subject ...
    </font>
    </strong>
    </small>
    </td>
    <td valign="top" align="center" width="169">
    <small>
    <strong>
    <font color="#FFFFFF">
    ... and
    then a page to go ...
    </font>
    </strong>
    </small>
    </td>
    </tr>
    <tr align="center">
    <td width="171" valign="top" align="center">
    <!-- ####################### start of select containing topics ####################### -->
    <select name="menuTopics" id="menuTopics" onchange="changeSubjects()" size="1">
    <option value="none">
    Topics appear here
    </option>
    <option value="none">
    Computer Stuff
    </option>
    <option value="none">
    Self Development
    </option>
    <option value="none">
    Computer Software
    </option>
    </select>
    </td>
    <td width="176" valign="top" align="center">
    <!-- ####################### start of select contaning subjects ####################### -->
    <select name="menuSubjects" id="menuSubjects" onchange="changeFiles()" size="1">
    <option value="none">
    Subjects appear here
    </option>
    </select>
    </td>
    <td width="169" valign="top" align="center">
    <!-- ####################### start of select containing pages ####################### -->
    <select name="menuFiles" id="menuFiles" onchange="go(this)" size="1">
    <option value="none">
    Pages appear here
    </option>
    </select>
    </td>
    </tr>
    </table>
    </form>
    Last edited by akash; 02-05-2009 at 06:39 AM.

  10. #10
    Super Moderator Array wired076's Avatar
    Join Date
    May 2007
    Posts
    685

    Default Re: menu using javascript?

    Could you please post the code in notepad files individually and packaged as a group for which code goes together or split up the different code sections by using the code tool that formats code differently so it is easier to read your post as I am having a hard time interpreting it.



Page 1 of 3 123 LastLast

Similar Threads

  1. Changing the value of overflow using JavaScript
    By online.education in forum Programming
    Replies: 4
    Last Post: 05-18-2011, 11:13 AM
  2. Layer Menu
    By cyberbog in forum Web Design
    Replies: 1
    Last Post: 01-13-2009, 05:12 AM
  3. CSS and JavaScript question?
    By boostoeman in forum Web Design
    Replies: 2
    Last Post: 10-31-2008, 11:36 AM
  4. Replies: 1
    Last Post: 04-16-2008, 04:00 AM
  5. Replies: 0
    Last Post: 01-29-2008, 07:54 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
SEO Forum | Web Hosting Forum | Websites For Sale |