Bir drupal sayfada JS dahil

0 Cevap php

I PHP code.I ayarlanmış giriş biçimi var Drupal 6.19.In benim Drupal sayfasını kullanarak Im PHP aşağıdaki satırı kullanarak bir JS dosyası dahil ettik:

print "<script src=\"my_site_includes/js/script.js\"> </script>";

The page is set as the front page and attached to a primary menu item.But the js is not executed when i access the site. However if i edit the page and click save, the js executes. This is really strange, as i have to edit the page and hit save for the js to execute. What could be going wrong here ?.

0 Cevap