Jump to content

russianmadcity

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by russianmadcity

  1. woooot it works, i had errors in different code, there was no problem with js. thanx much
  2. hi2all i was talking about my problem in this topic: Unable To Access Files In Cgi-bin i came to the conclusion that the only way to add external javascript to your php page is <? include () ?>. Regular html <script src=""></script> - doesn't work. am i right?
  3. sorry, I probablyt should start new topic... i had a problem with reaching my javasciprt in cgi-bin, so i put it in a public folder. but still having the same problem. maybe it is a problem with javascript file? (it works when it is in a header). My page is for IE only, i would worry about NS later. here is code (scrolling script if someone needs it): >var rep function scrollEvent(dir) { if (dir=="up") { scrollUp() rep=setTimeout("scrollEvent('up')",150) } if (dir=="down") { scrollDown() rep=setTimeout("scrollEvent('down')",150) } } function clearEvent() { clearTimeout(rep) } function scrollDown() { scrollObject=document.getElementById("storyCell") scrollObject.doScroll("down") } function scrollUp() { scrollObject=document.getElementById("storyCell") scrollObject.doScroll("up") } this is a content of my scrolling.js file which i am trying to get in the header of my index.php file through this line : <script src="scrolling.js" type="text/javacsript"></script> i start thinking that external .js files are not working with .php files
  4. nope, its not working... i can't get to my external javascript file
  5. hello, I have the same problem. I can't get to my .js files in cgi-bin. Script works when it is in a header. But it's not very convenient. I have permissions on cgi-bin set to 755. sample file at www.russianmadcity.com/madison thanx
×
×
  • Create New...