Jump to content
  • 0

onclick не работает в Explorer'е


kavadims
 Share

Question

Вот код который отображается во всех браузерах нормально, но в Эксплорере нет!

Это выбор картинки...

<script>
var images = new Array();
var imagessel = new Array();var ppcc;
images[0]='14';
imagessel[0]='';
images[1]='1';
imagessel[1]='';
images[2]='16';
imagessel[2]='';
images[3]='4';
imagessel[3]='';
images[4]='11';
imagessel[4]='';
images[5]='13';
imagessel[5]='';
function select_image(oImage){
if(imagessel[oImage]!=1){
imagessel[oImage] = 1;
document.getElementById('ppc_'+oImage).setAttribute('class','selected');}
else{imagessel[oImage] = 0;document.getElementById('ppc_'+oImage).setAttribute('class','');}genppccode();}
function genppccode(){ppcc='';if(imagessel[0]==1) ppcc = ppcc + images[0] + ',';
if(imagessel[1]==1) ppcc = ppcc + images[1] + ',';
if(imagessel[2]==1) ppcc = ppcc + images[2] + ',';
if(imagessel[3]==1) ppcc = ppcc + images[3] + ',';
if(imagessel[4]==1) ppcc = ppcc + images[4] + ',';
if(imagessel[5]==1) ppcc = ppcc + images[5] + ',';
document.getElementById('ppc_field').value = ppcc;}
</script><div class='papacaptcha'>Пожалуйста, Выберите две картинки где изображены люди<br>
<a onclick='select_image(0)'><img src='/uploads/elephant.jpg' height=100 id='ppc_0'></a>
<a onclick='select_image(1)'><img src='/uploads/0.jpeg' height=100 id='ppc_1'></a>
<a onclick='select_image(2)'><img src='/uploads/mama.jpg' height=100 id='ppc_2'></a>
<a onclick='select_image(3)'><img src='/uploads/080a65e9f5910e00debe40c74edc21c0.jpeg' height=100 id='ppc_3'></a>
<a onclick='select_image(4)'><img src='/uploads/73de1660d3e6.jpg' height=100 id='ppc_4'></a>
<a onclick='select_image(5)'><img src='/uploads/cats07.jpg' height=100 id='ppc_5'></a>
<input type=hidden id=ppc_field name=ppc_field value=''></div>

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy