Вот такая ситуация:
index.html:
| Код | <html> <head> <meta HTTP-EQUIV="Expires" CONTENT="Mon, 22 Jul 2002 11:12:01"> <meta HTTP-EQUIV="Pragma" CONTENT="no-cache"> <meta HTTP-EQUIV="Cache-Control" CONTENT="no-cache"> <script type="text/javascript" src="ajax/jquery-1.2.3.js"></script> <script type="text/javascript" src="ajax/script.js"></script> <script type="text/javascript" src="ajax/functions.js"></script> </head> <body>
Some body.
</body> </html>
|
functions.js:
| Код | $(document).ready(function(){
function hello(){ alert ("Hello World!"); }
})
|
script.js:
| Код | $(document).ready(function(){ hello(); })
|
Так вот почему не работает функция hello(); не запускается из подключаемых функций? |