Skrócona wersja problemu:
problem.html
Kod: Zaznacz cały
<!DOCTYPE html>
<html lang="pl">
<head>
<link rel="Stylesheet" href="style.css" type="text/css" media="all">
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<script type='text/javascript' src='menu.js'></script>
</head>
<body>
<div class ="jmenu" id = "menu">
<div class = "inmenu">
<script type="text/javascript">
$( ".inmenu" ).load( "menu.txt" );
</script>
</div>
</div>
</body>
</html>
menu.js http://czosnek17.cba.pl/menu.js
Podgląd problemu http://czosnek17.cba.pl/problem.html
Na hostingu strona zachowuje się tak, jakby nie było linijki
Kod: Zaznacz cały
<script type='text/javascript' src='menu.js'></script>