Jump to content
  • 0

Проблема с выпадающим списком


Kari_ya
 Share

Question

11 answers to this question

Recommended Posts

  • 0
if ( document.getElementById(ObjID).style.display == 'block' )
document.getElementById(ObjID).style.display = 'none';
document.getElementById(ObjID).innerHTML = '';

else
document.getElementById(ObjID).style.display = 'block';
document.getElementById(ObjID).innerHTML = '<img src="картинко" />';
}

Link to comment
Share on other sites

  • 0

Когда скрипт был изменен на

<script type='text/javascript'>
function showHide(qqq)
{
var ObjID = qqq;
if ( document.getElementById(ObjID).style.display == 'block' )
document.getElementById(ObjID).style.display = 'none';
document.getElementById(ObjID).innerHTML = '<img src="img/plus_sign.jpg" width="20" height="20" />';

else
document.getElementById(ObjID).style.display = 'block';
document.getElementById(ObjID).innerHTML = '<img src="img/_62.jpg" width="20" height="10" />';
}
</script>

То на странице ошибка.

<a href="#" onclick="showHide('myDiv1');"><img src="img/plus_sign.jpg" width="15" height="15" border="0" align="bottom"></a> это удалить надо?

Link to comment
Share on other sites

  • 0

Не получается ничего

<p><a href="page4.htm">Экспедиция на «Фраме»</a> <a href="#" onclick="show('myDiv1');"></a><div id="myDiv1" style="display:none">

<a href="#" onclick="Hide('myDiv2');"><div id="myDiv2" style="display:block">

<ul>

<li ><a href="page5.htm">Предыстория</a></li>

Оно должно иметь такой вид?

Link to comment
Share on other sites

  • 0

Не получается ничего

<p><a href="page4.htm">Экспедиция на «Фраме»</a> <a href="#" onclick="show('myDiv1');"></a><div id="myDiv1" style="display:none">

<a href="#" onclick="Hide('myDiv2');"><div id="myDiv2" style="display:block">

<ul>

<li ><a href="page5.htm">Предыстория</a></li>

Оно должно иметь такой вид?

Нет

Link to comment
Share on other sites

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