SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Jan 2007
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Drop-down not working

    I have coded a website: http://www.comfert.ro and I have a big problem: I have a drop down menu in the website wich is working in all browsers (Opera, FF, IE) on my computer. When I am uploading it on the server, the dropdown don't work in IE. I was trying a lot of hours to find where the problem is, but with no result. I repeat, the menu is working perfect on my computer, but on the hosting server is working just in Opera and FF (not in IE).
    What is the problem in that website?

  2. #2
    SitePoint Zealot pooney's Avatar
    Join Date
    Jan 2006
    Posts
    123
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Post your code for people to help you. However I know that while firefox displays css drop down menus properly IE requires some javascript.
    Web Host Advice - Under Development

  3. #3
    SitePoint Member
    Join Date
    Jan 2007
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In the head of my website I have this javascript:
    Code:
    <script type="text/javascript">
    sfHover = function() {
    	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
    	for (var i=0; i<sfEls.length; i++) {
    		sfEls[i].onmouseover=function() {
    			this.className+=" sfhover";
    		}
    		sfEls[i].onmouseout=function() {
    			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
    		}
    	}
    }
    if (window.attachEvent) window.attachEvent("onload", sfHover);
    </script>
    And the menu is:
    Code:
    <div id="menu">
    	<ul id="nav">
    		<li><a href="index.htm"><img src="assets/images/menu_02.jpg"/></a></li>
    		<li><a href="html/despre.htm"><img src="assets/images/menu_03.jpg"/></a></li>
    		<li><a href="html/produse.htm"><img src="assets/images/menu_04.jpg"/></a>
    			<ul>
    				<li><a href="#">INGRASAMINTE</a>
    					<ul>
    						<li><a href="html/ingrasaminte/azotat-de-amoniu.htm">Azotat de amoniu</a></li>
    						<li><a href="html/ingrasaminte/azotat-de-amoniu.htm">Nitrocalcar</a></li>
    						<li><a href="html/ingrasaminte/uree.htm">Uree</a></li>
    						<li><a href="html/ingrasaminte/np20-20-0.htm">NP 20-20-0</a></li>
    						<li><a href="html/ingrasaminte/npk15-15-15.htm">NPK 15-15-15</a></li>
    						<li><a href="html/ingrasaminte/dap18-46-0.htm">DAP 18-46-0</a></li>
    						<li><a href="html/ingrasaminte/map12-52-0.htm">MAP 12-52-0</a></li>
    					</ul>
    				</li>
    				<li><a href="#">INGRASAMINTE FOLIARE</a>
    					<ul>
    						<li><a href="html/ingrasaminte-foliare/lichid-kemira.htm">Lichid Kemira</a></li>
    						<li><a href="html/ingrasaminte-foliare/cristal-kemira.htm">Cristal Kemira</a></li>
    						<li><a href="html/ingrasaminte-foliare/folicare19-11-24cupru.htm">Folicare 19-11-24 Cupru</a></li>
    						<li><a href="html/ingrasaminte-foliare/folicare19-11-27zinc.htm">Folicare 19-11-27 Zinc</a></li>
    						<li><a href="html/ingrasaminte-foliare/folicare17-9-33bor.htm">Folicare 17-9-33 Bor</a></li>
    					</ul>
    				</li>
    				<li><a href="#">SEMINTE</a>
    					<ul>
    						<li><a href="html/seminte/grau.htm">Grau</a></li>
    						<li><a href="html/seminte/orz-de-toamna.htm">Orz de toamna</a></li>
    						<li><a href="html/seminte/orzoaica-de-primavara.htm">Orzoaica de primavara</a></li>
    						<li><a href="html/seminte/porumb.htm">Porumb</a>
    							<ul>
    								<li><a href="html/seminte/syngenta/syngenta.htm">Syngenta</a>
    									<ul>
    										<li><a href="html/seminte/syngenta/nkdelitop.htm">NK Delitop</a></li>
    										<li><a href="html/seminte/syngenta/nkarobase.htm">NK Arobase</a></li>
    										<li><a href="html/seminte/syngenta/nklugan.htm">NK Lugan</a></li>
    										<li><a href="html/seminte/syngenta/nkkanada.htm">NK Kanada</a></li>
    										<li><a href="html/seminte/syngenta/nkaltius.htm">NK Altius</a></li>
    										<li><a href="html/seminte/syngenta/nkpelican.htm">NK Pelican</a></li>
    										<li><a href="html/seminte/syngenta/nkdior.htm">NK Dior</a></li>
    										<li><a href="html/seminte/syngenta/nkthermo.htm">NK Thermo</a></li>
    										<li><a href="html/seminte/syngenta/nklemoro.htm">NK Lemoro</a></li>
    										<li><a href="html/seminte/syngenta/nkpeso.htm">NK Peso</a></li>
    										<li><a href="html/seminte/syngenta/nkalpha.htm">NK Alpha</a></li>
    										<li><a href="html/seminte/syngenta/nkoccitan.htm">NK Occitan</a></li>
    										<li><a href="html/seminte/syngenta/nkoccitansumo.htm">NK Occitan Sumo</a></li>
    										<li><a href="html/seminte/syngenta/nkfurio.htm">NK Furio</a></li>
    										<li><a href="html/seminte/syngenta/nkgotic.htm">NK Gotic</a></li>
    										<li><a href="html/seminte/syngenta/nkdolar.htm">NK Dolar</a></li>
    										<li><a href="html/seminte/syngenta/nkcisko.htm">NK Cisko</a></li>
    										<li><a href="html/seminte/syngenta/nkcelest.htm">NK Celest</a></li>
    										<li><a href="html/seminte/syngenta/nkgeyser.htm">NK Geyser</a></li>
    										<li><a href="html/seminte/syngenta/nktimic.htm">NK Timic</a></li>
    										<li><a href="html/seminte/syngenta/nkmaverik.htm">NK Maverik</a></li>
    										<li><a href="html/seminte/syngenta/nkgalactic.htm">NK Galactic</a></li>
    									</ul>
    								</li>
    								<li><a href="html/seminte/monsanto/monsanto.htm">Monsanto</a>
    									<ul>
    										<li><a href="html/seminte/monsanto/dck3511.htm">DCK 3511</a></li>
    										<li><a href="html/seminte/monsanto/dck4626.htm">DCK 4626</a></li>
    										<li><a href="html/seminte/monsanto/dck5143.htm">DCK 5143</a></li>
    										<li><a href="html/seminte/monsanto/dck5783.htm">DCK 5783</a></li>
    										<li><a href="html/seminte/monsanto/dk315.htm">DK 315</a></li>
    										<li><a href="html/seminte/monsanto/dk440.htm">DK 440</a></li>
    										<li><a href="html/seminte/monsanto/dk527.htm">DK 527</a></li>
    									</ul>
    								</li>
    								<li><a href="html/seminte/bayer/bayer.htm">Bayer Crop Science</a></li>
    							</ul>
    						</li>
    </ul>
    Is just a part from the menu.

  4. #4
    SitePoint Wizard siteguru's Avatar
    Join Date
    Oct 2002
    Location
    Scotland
    Posts
    3,609
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    In IE I got the error about a missing ; character when I first loaded the page, but after a refresh there is no further error. (Going to another page then BACK gives the error message again ...

    Line 1
    Character 201
    Expected ';'
    Ian Anderson
    www.siteguru.co.uk

  5. #5
    SitePoint Member
    Join Date
    Jan 2007
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This error is not the problem, I think, because on my computer the drop-down is working in all browsers, including IE.


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
  •