Hi,
I am trying to make an image do two separate events in a wordpress post. The first, opens up an inpage popup using a plugin called Thickbox Content with a facebook share button. At the same time, a new window opens up and goes to my ad site. Can anyone help me fix this script? Thanks!
I am trying to make an image do two separate events in a wordpress post. The first, opens up an inpage popup using a plugin called Thickbox Content with a facebook share button. At the same time, a new window opens up and goes to my ad site. Can anyone help me fix this script? Thanks!
Code:
<script type="text/javascript">
function open_win()
{
[thkBC height="225" width="490" anchortext="mysite" title="Share Us With Your Friends!" url="mysite.com/share.php" type="iframe" html_wrap="p"];
window.open("mysite.com/ad.php" ta);
}
</script>
<form>
<a onclick="open_win()"><img src="mysite.com/myadpic"></a>
</form>