Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: how to use this dropdown script

  1. #1
    Join Date
    Aug 2006
    Posts
    235
    Thanks
    30
    Thanked 2 Times in 2 Posts

    Exclamation how to use this dropdown script

    1) Script Title: Chrome CSS Drop Down Menu (v2.5)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...rome/index.htm

    3) Describe problem: Everytime I put the code up in my header.php document it always comes up with bullets. Like this: click here for example. What am I doing wrong?
    ------------------
    Check out my site here and let me know what you think

  2. #2
    Join Date
    Aug 2006
    Posts
    235
    Thanks
    30
    Thanked 2 Times in 2 Posts

    Default

    here is the code I am using:
    Code:
    <div class="chromestyle" id="chromemenu">
    <ul>
    <li><a href="http://www.dynamicdrive.com">Home</a></li>
    <li><a href="#" rel="dropmenu1">Resources</a></li>
    <li><a href="#" rel="dropmenu2">News</a></li>
    </ul>
    </div>
    
    <!--1st drop down menu --> 
    <div id="dropmenu1" class="dropmenudiv">
    <a href="http://www.dynamicdrive.com/">Dynamic Drive</a>
    <a href="http://www.cssdrive.com">CSS Drive</a>
    <a href="http://www.javascriptkit.com">JavaScript Kit</a>
    </div>
    
    
    <!--2nd drop down menu --> 
    <div id="dropmenu2" class="dropmenudiv" style="width: 150px;">
    <a href="http://www.cnn.com/">CNN</a>
    <a href="http://www.msnbc.com">MSNBC</a>
    <a href="http://news.bbc.co.uk">BBC News</a>
    </div>
    
    <script type="text/javascript">
    cssdropdown.startchrome("chromemenu")
    </script>
    ------------------
    Check out my site here and let me know what you think

  3. #3
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Where exactly is the menu on your page? I can't find it.

  4. #4
    Join Date
    Aug 2006
    Posts
    235
    Thanks
    30
    Thanked 2 Times in 2 Posts

    Default

    I took it down for a breif second to fix the layout it self. Ill put it back up.
    ------------------
    Check out my site here and let me know what you think

  5. #5
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    The beginning of your page is missing. That is probably why there is no link to your chromestyle.css file. Make sure you use the same doctype as the one used on the demo page.

    Good luck!

  6. #6
    Join Date
    Aug 2006
    Posts
    235
    Thanks
    30
    Thanked 2 Times in 2 Posts

    Default

    I don't understand what your trying to say.
    ------------------
    Check out my site here and let me know what you think

  7. #7
    Join Date
    Aug 2006
    Posts
    235
    Thanks
    30
    Thanked 2 Times in 2 Posts

    Default

    Oh! I got it lol wow i feel dumb Thanks! Now how to to move the bar? Because I want it right under the header. But everytime i try and put it into a div it doesn't work :/
    ------------------
    Check out my site here and let me know what you think

  8. #8
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Change this:
    Code:
    div#headerdiv {
    background-image:url(http://www.modernrevolutions.vivid-avenue.net/layout/bell/omfg3.jpg);
    border:0 solid;
    height:300px;
    left:282px;
    position:absolute;
    top:50px;
    width:699px;
    }
    to this:
    Code:
    div#headerdiv {style2.css (line 209)
    background-image:url(http://www.modernrevolutions.vivid-avenue.net/layout/bell/omfg3.jpg);
    border:0 solid;
    height:300px;
    width:699px;
    margin: 0 auto;
    }
    Good luck!

  9. #9
    Join Date
    Aug 2006
    Posts
    235
    Thanks
    30
    Thanked 2 Times in 2 Posts

    Default

    Now my header disappeared :/ lol and is there a way to make is skinner? So if fits in the white area and doesn't go across the whole page?
    ------------------
    Check out my site here and let me know what you think

  10. #10
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Sorry, I copied from firebug and forgot to remove the file name, remove the highlighted:
    Code:
    div#headerdiv {style2.css (line 209)
    background-image:url(http://www.modernrevolutions.vivid-avenue.net/layout/bell/omfg3.jpg);
    border:0 solid;
    height:300px;
    width:699px;
    margin: 0 auto;
    }
    so you get this:
    Code:
    div#headerdiv {
    background-image:url(http://www.modernrevolutions.vivid-avenue.net/layout/bell/omfg3.jpg);
    border:0 solid;
    height:300px;
    width:699px;
    margin: 0 auto;
    }
    Good luck!

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
  •