Вот другой подход, если вам интересно. Использует событие и атрибут data-for.
// Simple hide all function, using a class identifier to get all Divs to hide.
const hideAll = () => document.querySelectorAll('.content').forEach(e => e.style.display = 'none');
// Use event delegation, then if we add or remove buttons it still works
document.addEventListener('click', (e) => {
// if one of our buttons was clicked, do something.
if(e.target.matches('.divButton')) {
// Hide all first.
hideAll();
// Show the div, identified using the data-for attribute.
document.querySelector(`#${e.target.dataset.for}`).style.display = 'block';
}
});
<table style="margin-left: auto; margin-right: auto;" border="0" cellpadding="10">
<tbody>
<tr>
<td><button class="divButton" data-for="Div1">Div1</button></td>
<td><button class="divButton" data-for="Div2">Div2</button></td>
<td><button class="divButton" data-for="Div3">Div3</button></td>
</tr>
</tbody>
</table>
<table>
<div id="Div1" class="content">
Div1 Content
</div>
<div id="Div2" class="content" style="display: none;">
Div2 Content
</div>
<div id="Div3" class="content" style="display: none;">
Div3 Content
</div>
</table>
Установка разрешений для общего ресурса недостаточна. Также установите соответствующие разрешения NTFS, тогда он будет работать. Каждый Полный доступ к общему ресурсу означает, что каждый может получить доступ через сеть к корню общего ресурса, но с тех пор права NTFS используются для определения того, что разрешено, а что нет.