Hi,
ich hätte gerne in meiner Menüleiste ein Starticon.
So sieht meine Navi zur Zeit aus:

Damit ihr wisst was ich meine hier ein Bild:

Hier der Code meiner Navi:
Alles anzeigen
Alles anzeigen
Alles anzeigen
Hab schon versucht einfach einen Listeneintrag mit einem Bild zu machen geht aber auch nicht.
Ich hoffe ihr könnt mir mal wieder helfen.
Gruß,
Kevin
ich hätte gerne in meiner Menüleiste ein Starticon.
So sieht meine Navi zur Zeit aus:
Damit ihr wisst was ich meine hier ein Bild:
Hier der Code meiner Navi:
Quellcode
- <div id="horizmenu" class="droplinebar">
- <ul>
- <li><a href="#">Home</a></li>
- <li><a href="#">Vote</a>
- <ul>
- <li><a href="#">Girls</a></li>
- <li><a href="#">Boys</a></li>
- </ul>
- </li>
- <li><a href="#">Ranglisten</a>
- <ul>
- <li><a href="#">Top 10</a></li>
- <li><a href="#">Top 10 of Girls</a></li>
- <li><a href="#">Top 10 of Boys</a></li>
- </ul>
- </li>
- </ul>
- </div>
Quellcode
- var droplinemenu={
- arrowimage: {classname: 'downarrowclass', src: '/../gfx/navi/down.gif', leftpadding: 5}, //customize down arrow image
- animateduration: {over: 200, out: 100}, //duration of slide in/ out animation, in milliseconds
- buildmenu:function(menuid){
- jQuery(document).ready(function($){
- var $mainmenu=$("#"+menuid+">ul")
- var $headers=$mainmenu.find("ul").parent()
- $headers.each(function(i){
- var $curobj=$(this)
- var $subul=$(this).find('ul:eq(0)')
- this._dimensions={h:$curobj.find('a:eq(0)').outerHeight()}
- this.istopheader=$curobj.parents("ul").length==1? true : false
- if (!this.istopheader)
- $subul.css({left:0, top:this._dimensions.h})
- var $innerheader=$curobj.children('a').eq(0)
- $innerheader=($innerheader.children().eq(0).is('span'))? $innerheader.children().eq(0) : $innerheader //if header contains inner SPAN, use that
- $innerheader.append(
- '<img src="'+ droplinemenu.arrowimage.src
- +'" class="' + droplinemenu.arrowimage.classname
- + '" style="border:0; padding-left: '+droplinemenu.arrowimage.leftpadding+'px" />'
- )
- $curobj.hover(
- function(e){
- var $targetul=$(this).children("ul:eq(0)")
- if ($targetul.queue().length<=1) //if 1 or less queued animations
- if (this.istopheader)
- $targetul.css({left: $mainmenu.offset().left, top: $mainmenu.offset().top+this._dimensions.h})
- if (document.all && !window.XMLHttpRequest) //detect IE6 or less, fix issue with overflow
- $mainmenu.find('ul').css({overflow: (this.istopheader)? 'hidden' : 'visible'})
- $targetul.slideDown(droplinemenu.animateduration.over)
- },
- function(e){
- var $targetul=$(this).children("ul:eq(0)")
- $targetul.slideUp(droplinemenu.animateduration.out)
- }
- ) //end hover
- }) //end $headers.each()
- $mainmenu.find("ul").css({display:'none', visibility:'visible', width:$mainmenu.width()})
- }) //end document.ready
- }
- }
Quellcode
- .droplinebar{
- overflow: hidden;
- }
- .droplinebar ul{
- margin: 0;
- padding: 0;
- float: left;
- width: 100%;
- font: bold 13px Arial;
- background: #242c54 url(../gfx/navi/default.gif) center center repeat-x; /*default background of menu bar*/
- }
- .droplinebar ul li{
- display: inline;
- }
- .droplinebar ul li a{
- float: left;
- color: white;
- padding: 9px 11px;
- text-decoration: none;
- }
- .droplinebar ul li a:visited{
- color: white;
- }
- .droplinebar ul li a:hover, .droplinebar ul li .current{ /*background of main menu bar links onMouseover*/
- color: white;
- background: transparent url(../gfx/navi/active.gif) center center repeat-x;
- }
- /* Sub level menus*/
- .droplinebar ul li ul{
- position: absolute;
- z-index: 100;
- left: 0;
- top: 0;
- background: #0000CC; /*sub menu background color */
- width: 100%;
- visibility: hidden;
- }
- /* Sub level menu links style */
- .droplinebar ul li ul li a{
- font: normal 13px Verdana;
- padding: 6px;
- padding-right: 8px;
- margin: 0;
- }
- .droplinebar ul li ul li a:hover{ /*sub menu links' background color onMouseover */
- background: #9900FF;
- }
Hab schon versucht einfach einen Listeneintrag mit einem Bild zu machen geht aber auch nicht.

Ich hoffe ihr könnt mir mal wieder helfen.
Gruß,
Kevin