Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Javascript...does not take affect!


chuntse

Recommended Posts

I have a javasript code which for disable the mouse right key function while the people are visiting the website to protect the product photos:

 

=====================================================

<script>

function click() {

if (event.button==2) {

alert('disable right key')

} }

document.onmousedown=click

</script>

=====================================================

>_<

I put it to between <head></head> of index.php.

but it does take affect!!!

I create a html and put it inside...it work properly...

 

Who knows what happened?

 

chuntse

Link to comment
Share on other sites

This should work. (did on my test site)

Have you tried putting it directly after the <head> tag?

Are you using STS?

Forum search

Contributions search

Documentation search (note: docs being adapted for MS3, may be different for MS2)

3 tips for better forum searching

 

Want to post? Read this first:

osCommerce for dummies

Topic name etiquette

 

Basics:

Basics for design

Right syntax to use near '-20, 20'

Cannot re-assign $this

Parse error

Link to comment
Share on other sites

There are contributions that accomplish this same goal - - they also prevent IE's little image manipulation bar, etc.

 

-jared

Link to comment
Share on other sites

This should work. (did on my test site)

Have you tried putting it directly after the <head> tag?

Are you using STS?

 

I am using a free template,not the STS.

actually I don't know what STS can do....I didn't test this system...

 

chuntse

Link to comment
Share on other sites

I was just asking if you used STS because it can cause problems with javascript. One of the reasons I deinstalled it.

Forum search

Contributions search

Documentation search (note: docs being adapted for MS3, may be different for MS2)

3 tips for better forum searching

 

Want to post? Read this first:

osCommerce for dummies

Topic name etiquette

 

Basics:

Basics for design

Right syntax to use near '-20, 20'

Cannot re-assign $this

Parse error

Link to comment
Share on other sites

I am using a free template,not the STS.

actually I don't know what STS can do....I didn't test this system...

 

chuntse

 

I put that code after the <head> tag....

 

I never use the STS...

 

I am confused,because there are also other javasript code in the head.they run properly.

 

ChunTse

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...