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

Thread: Menu problem

  1. #1
    Join Date
    Apr 2012
    Posts
    63
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Menu problem

    Last problem that i faced on my website:

    I made a menu, Dropdown, with java and CSS
    Now im putting in all the links that are needed with a normal <a href> and target to my iframe named content.
    It wont link tho...
    and i have no idea how this is possible.

    HTML Code:
    <ul id="accordion">
    	<li>
    		<a href="home.html" target="content" class="item Home" rel="Home"></a>
    	</li>
    	<li>
    		<a href="aboutus.html" target="content" class="item Overons" rel="Overons"></a>
    	</li>
    	<li>
    		<a href="reuen.html" target="content"class="item Honden" rel="Honden"></a>
    		<ul>
    			<li><a href="reuen.html" target="content" class="item Reuen" rel="Reuen"></a></li>
    			<li><a href="#" class="item Teven" rel="Teven"></a></li>
    			<li><a href="#" class="item InMemoriam" rel="InMemoriam"></a></li>
    		</ul>
    	</li>
        <li>
    		<a href="#" class="item Puppies" rel="Puppies"></a>
    		<ul>
    			<li><a href="#" class="item Beschikbaar" rel="Beschikbaar"></a></li>
    			<li><a href="#" class="item Verwacht" rel="Verwacht"></a></li>
    			<li><a href="#" class="item VorigeNesten" rel="VorigeNesten"></a></li>
    		</ul>
    	</li>
        <li>
    		<a href="#" class="item Shows" rel="Shows"></a>
    		<ul>
    			<li><a href="#" class="item Twaalf" rel="item Twaalf"></a></li>
    			<li><a href="#" class="item Elf" rel="item Elf"></a></li>
                <li><a href="#" class="item Tien" rel="item Elf"></a></li>
                <li><a href="#" class="item VorigeJaren" rel="item VorigeJaren"></a></li>
    			<li><a href="#" class="item Handling" rel="item Handling"></a></li>
    		</ul>
    	</li>
        <li>
    		<a href="#" class="item Fotos" rel="Fotos"></a>
    	</li>
        <li>
    		<a href="#" class="item Links" rel="Links"></a>
    		<ul>
    			<li><a href="#" class="item LhasaApso" rel="LhasaApso"></a></li>
    			<li><a href="#" class="ShihTzu" rel="ShihTzu"></a></li>
                <li><a href="#" class="OverigeRassen" rel="OverigeRassen"></a></li>
                <li><a href="#" class="Clubs" rel="Clubs"></a></li>
    			<li><a href="#" class="OverigeLinks" rel="OverigeLinks"></a></li>
    		</ul>
    	</li>
         <li>
    		<a href="#" class="item Contact" rel="Contact"></a>
    		<ul>
    			<li><a href="#" class="item Gastenboek" rel="Gastenboek"></a></li>
    		</ul>
    	</li>
    </ul>
    Thats the coding, i havent put links in all of em yet because i already found out it wasnt linkin after making the first few.
    Anyone knows what went wrong here??
    Ive tried alittle more and figured that when i change class="item home" into class="home" it does work. Same goes for the ones with submenus, although when i change class for example from: class="item Honden" to class="Honden" the dropdown function isnt there anymore.
    So basically when i keep the item part i will have the dropdown part but no link, and when i dont keep the item part, i will have the link but no dropdown part.
    How am i gonna make it that both work
    Last edited by kimikai; 04-17-2012 at 10:47 AM.

  2. #2
    Join Date
    Nov 2009
    Posts
    107
    Thanks
    7
    Thanked 2 Times in 2 Posts

    Default

    Hi What does your Javascript look like? Got a live link?

  3. #3
    Join Date
    Apr 2012
    Posts
    63
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    I dont have an online version of it,, tho i did find the site i used as an example,, im not good with javascript so i kinda used an existing one. I DID NOT edit anything in the javascript, only the CSS to change the buttons to the style of my website, and ofcourse edited the HTML part.

    This is the link

    http://www.queness.com/post/741/a-si...rdion-tutorial

    also i added 2 external jquery files: jquery-1.3.1.min.js and jquery.easing.1.3.js

    I hope this will help, else ill try to get the page online so you can see =) but this would be alittle easier hehe

  4. #4
    Join Date
    Apr 2012
    Posts
    63
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    any1 has an idea how to fix this??

  5. #5
    Join Date
    Nov 2009
    Posts
    107
    Thanks
    7
    Thanked 2 Times in 2 Posts

    Default

    When you use two names in the class you are calling two different class styles to the element. Some are probably conflicting. I would start there and see if you can get your results by either getting rid of one of the class names in the element or including the needed styling inside another parent element. You might try
    Code:
    class="item"
    include this class item in each of your list elements (li)

    and
    Code:
    class="theothernameofyourstyle"
    . Like I said its hard to tell without looking at it.
    Last edited by itivae; 04-22-2012 at 02:23 AM.

  6. #6
    Join Date
    Apr 2012
    Posts
    63
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by itivae View Post
    When you use two names in the class you are calling two different class styles to the element. Some are probably conflicting. I would start there and see if you can get your results by either getting rid of one of the class names in the element or including the needed styling inside another parent element. You might try
    Code:
    class="item"
    include this class item in each of your list elements (li)

    and
    Code:
    class="theothernameofyourstyle"
    . Like I said its hard to tell without looking at it.
    Been looking around alill in the class stuff,, but i cant really find any problems in it (might be cuz im a noob too haha) but ye ive uploaded the website to here http://testhimalaya.site11.com. To get to the part where you can see the menu u gotta click on the dutch flag. Ehmm...i hope you can see the things you need to see then ^^

    Thanks for the help so far
    Last edited by kimikai; 04-22-2012 at 12:58 PM.

  7. #7
    Join Date
    Nov 2009
    Posts
    107
    Thanks
    7
    Thanked 2 Times in 2 Posts

    Default

    Ill try to help you work in the right direction. I see this in the javascript console that when your page loads your scripts are aimed at your c:\ put them on the server and call them.
    also in menu.html on line 11 $ is not defined.

    Here is the error report

    Resource interpreted as Script but transferred with MIME type text/html: "http://stats.hosting24.com/count.php".

    Not allowed to load local resource: file:///C:/Documents%20and%20Settings/A.%20Nabben/Bureaublad/query%20accordion/js/jquery-1.3.1.min.js

    Not allowed to load local resource: file:///C:/Documents%20and%20Settings/A.%20Nabben/Bureaublad/query%20accordion/js/jquery.easing.1.3.js

    menu.html: 11Uncaught ReferenceError: $ is not defined

    home.html: 122Resource interpreted as Script but transferred with MIME type text/html: "http://stats.hosting24.com/count.php".

  8. #8
    Join Date
    Apr 2012
    Posts
    63
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    ehmmm...so i gotta load those 2 files to the server or...?? im really not familiar with javascript
    honestly i thought i had uploaded both js files to the server since they were in the same folder as all the other files of my website.

    I really dun get it there for a sec srry kinda a nuub >.<

  9. #9
    Join Date
    Nov 2009
    Posts
    107
    Thanks
    7
    Thanked 2 Times in 2 Posts

    Default

    This is the head source from your test site.

    Code:
    <head>
    <link rel=StyleSheet href="style.css" type="text/css"/>
    <script type="text/javascript" src="file:///C|/Documents and Settings/A. Nabben/Bureaublad/query accordion/js/jquery-1.3.1.min.js"/>
    <script type="text/javascript" src="file:///C|/Documents and Settings/A. Nabben/Bureaublad/query accordion/js/jquery.easing.1.3.js"/>
    </head>
    make it look like this

    Code:
    <head>
    <link rel=StyleSheet href="style.css" type="text/css"/>
    <script type="text/javascript" src="http://thelocationof/js/jquery-1.3.1.min.js"></script> //this can be a relative path too
    <script type="text/javascript" src="http://thelocationof/js/jquery.easing.1.3.js"></script> //this can be a relative path too
    </head>
    See if that helps.

  10. #10
    Join Date
    Apr 2012
    Posts
    63
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    so basically i should search for the website that has the 2 codings and link it to that??

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
  •