Jump to content
Fórum Script Brasil
  • 0

Menu Sanfona Em Js


ROLLL!!!!
 Share

Question

2 answers to this question

Recommended Posts

  • 0

MEU CÓDIGO:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us">
<head>
    <title>DL Demo</title>
    &lt;script src="caminho\jquery.js"></script>
    &lt;script>
    $(document).ready(function(){
        $("dd:not(:first)").hide();
        $("dt a").click(function(){
            $("dd:visible").slideUp("slow");
            $(this).parent().next().slideDown("slow");
            return false;
        });
    });
    </script>
    <style>
    body { font-family: Arial; font-size: 16px; }
    dl { width: 300px; }
    dl,dd { margin: 0; }
    dt { background: #F39; font-size: 18px; padding: 5px; margin: 2px; }
    dt a { color: #FFF; }
    dd a { color: #000; }
    ul { list-style: none; padding: 5px; }
    </style>
</head>
<body>
<dl>
    <dt><a href="/">jQuery</a></dt>
    <dd>
    <ul>
        <li><a href="/src/">Download</a></li>
        <li><a href="/docs/">Documentation</a></li>
        <li><a href="/blog/">Blog</a></li>
    </ul>
    </dd>
    <dt><a href="/discuss/">Community</a></dt>
    <dd>
    <ul>
        <li><a href="/discuss/">Mailing List</a></li>
        <li><a href="/tutorials/">Tutorials</a></li>
        <li><a href="/demos/">Demos</a></li>
        <li><a href="/plugins/">Plugins</a></li>
    </ul>
    </dd>
    <dt><a href="/dev/">Development</a></dt>
    <dd>
    <ul>
        <li><a href="/src/">Source Code</a></li>
        <li><a href="/dev/bugs/">Bug Tracking</a></li>
        <li><a href="/dev/recent/">Recent Changes</a></li>
    </ul>
    </dd>
</dl>
</body>
</html>

Edited by ROLLL!!!!
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



  • Forum Statistics

    • Total Topics
      150.1k
    • Total Posts
      647.1k
×
×
  • Create New...