Connecting Tech Pros Worldwide Help | Site Map

myscript.js

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 23rd, 2005, 07:06 PM
Johny
Guest
 
Posts: n/a
Default myscript.js

I have copied my right click script into a text file and the put the
following code in its place on the site

<script src="right-click.js"></script>

It works ok but won't work on the pages in folders unless I copy the text
file to that folder.

How can I get the the above line of code to look in one place for the text
file?

J



  #2  
Old July 23rd, 2005, 07:06 PM
Evertjan.
Guest
 
Posts: n/a
Default Re: myscript.js

Johny wrote on 09 apr 2005 in comp.lang.javascript:
[color=blue]
> I have copied my right click script into a text file and the put the
> following code in its place on the site
>
> <script src="right-click.js"></script>
>
> It works ok but won't work on the pages in folders unless I copy the
> text file to that folder.
>
> How can I get the the above line of code to look in one place for the
> text file?
>[/color]

Text files won't do, you will need a html files, where you put.

<script src="/myJsFiles/right-click.js"></script>


--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

  #3  
Old July 23rd, 2005, 07:06 PM
Johny
Guest
 
Posts: n/a
Default Re: myscript.js

As soon as i pressed send on the previous message I thought of a way to do
it,

<script src="../../right-click.js"></script>

Cheers
J


"Johny" <not_today_my_good_friend@TheNet.com> wrote in message
news:d3898n$olo$1@news6.svr.pol.co.uk...[color=blue]
> I have copied my right click script into a text file and the put the
> following code in its place on the site
>
> <script src="right-click.js"></script>
>
> It works ok but won't work on the pages in folders unless I copy the text
> file to that folder.
>
> How can I get the the above line of code to look in one place for the text
> file?
>
> J
>
>[/color]


  #4  
Old July 23rd, 2005, 07:06 PM
Rebecca Seal
Guest
 
Posts: n/a
Default Re: myscript.js

Or you can use the full URL.

"Johny" <not_today_my_good_friend@TheNet.com> wrote in message
news:d389k8$jlg$1@news7.svr.pol.co.uk...[color=blue]
> As soon as i pressed send on the previous message I thought of a way to do
> it,
>
> <script src="../../right-click.js"></script>
>
> Cheers
> J
>
>
> "Johny" <not_today_my_good_friend@TheNet.com> wrote in message
> news:d3898n$olo$1@news6.svr.pol.co.uk...[color=green]
>> I have copied my right click script into a text file and the put the
>> following code in its place on the site
>>
>> <script src="right-click.js"></script>
>>
>> It works ok but won't work on the pages in folders unless I copy the text
>> file to that folder.
>>
>> How can I get the the above line of code to look in one place for the
>> text
>> file?
>>
>> J
>>
>>[/color]
>
>[/color]


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.