Thread Starter
jtn35
(@jtn35)
I tried these steps this morning but to no avail. Maybe someone can point out where I went wrong?
First, this script was added to the content section of the HTML Javascript Adder plugin:
<script type=”text/javascript”>
$(“a.note”).click(function() {
var alt = $(this).attr(‘alt’);
var pos = $(this).position();
$(‘#note_display’).html(alt);
$(‘#note_display’).css({
position: “absolute”,
top: pos.top + “px”
}).show();
});
</script>
<div id=”note_display”></div>
Then this was added to header.php:
<script type=”text/javascript” src=”http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js”></script>
Then the notes in the page itself were formatted like this:
<a class="note" alt="Sidebar text here"> Link to sidebar text here </a>
The sidebar title appears but the links do nothing. Once again, any help would be much appreciated.