Yeh, that's not working because the script is activating the one id called "more", so if all of your hidden divs have matching ids, it's going to conflict.
This key is to use a script that allows for different ids, which will help validate your markup too (you shouldn't use the same id multiple times on a web page)
Try this script instead;
Code:
function ReverseDisplay(id) {
var e = document.getElementById(id);
e.style.display = ((e.style.display!='none') ? 'none' : 'block');
}
And your HTML markup should be;
Code:
<p>This is a short intro/excerpt for entry one. <a href="javascript:void(0);" onclick="ReverseDisplay('entry-01');this.innerHTML=(this.innerHTML=='Read More')?'Read Less':'Read More';">Read More</a></p>
<div id="entry-01" style="display:none;">
<p>Entry 1 - blah, blah...</p>
<p>Entry 1 - blah, blah...</p>
<p>Entry 1 - blah, blah...</p>
</div>
<p>This is a short intro/excerpt for entry two. <a href="javascript:void(0);" onclick="ReverseDisplay('entry-02');this.innerHTML=(this.innerHTML=='Read More')?'Read Less':'Read More';">Read More</a></p>
<div id="entry-02" style="display:none;">
<p>Entry 2 - ho-hum...</p>
<p>Entry 2 - ho-hum...</p>
<p>Entry 2 - ho-hum...</p>
</div>
<p>This is a short intro/excerpt for entry three. <a href="javascript:void(0);" onclick="ReverseDisplay('entry-03');this.innerHTML=(this.innerHTML=='Read More')?'Read Less':'Read More';">Read More</a></p>
<div id="entry-03" style="display:none;">
<p>Entry 3 - do-by-do...</p>
<p>Entry 3 - do-by-do...</p>
<p>Entry 3 - do-by-do...</p>
</div>
Note the hidden div ids that need to match the corresponding "ReverseDisplay" ids in the "Read More" links.
Hope that helps
Bookmarks