I'm currently working with google plus button. The values return by google plus is based on what is included at the meta on my head tag
And I have a list to be submitted using g+1 but it is under the tags that's why I can't update what is going to be posted on google plus
these are my codes
<meta itemprop="name" content="<?=$content?>">
<meta itemprop="description" content="<?=$description?>">
<meta itemprop="image" content="http://mysite/image.png">
below those lines are
<div> content to submit by g+1
<div class='g-plusone' data-size='medium' data-annotation='none'></div>
</div>
<div> content to submit by g+1
<div class='g-plusone' data-size='medium' data-annotation='none'></div>
</div>
<div> content to submit by g+1
<div class='g-plusone' data-size='medium' data-annotation='none'></div>
</div>
etc.
how can I use javascript, so whenever the mouse hover on the google plus button, I can update what is the value on my meta?
like
<div onmouseover='change_meta(x)' class='g-plusone' data-size='medium' data-annotation='none' ></div>
I already know how to pass argument on javascript functions. What I want to know is, what do I need to include inside that functions so I can update the meta values.
<script language="JavaScript">
function change_meta(x) {
what do i need to do here?
}
</script>