0

When a member signs up there asked to enter an email and verify. When they click the verification link in there email there taken to step 2 which is where they enter there info. In the info page I have an privacy policy link, which displays this way.

<h3><span class="underLine">
	<a href = "javascript:void(0)" onclick = "document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block'"><?php echo $this->lang->line('Privacy_Policy');?></a></span><?php echo $this->lang->line(')');?></h3>

Here in lies my problem...

When this link is clicked all it displays is a blank box with nothing in it. I suck at javascript, and im not very resourceful with finding answers for my problems.

How do you display content in the box. I cant seem to figure it out for some reason.

My site was built with codeigniter frame work.

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by @developer
0

You can call a function to display the div.

<body>
<a href = "javascript:void(0)" onclick = "showPolicy()">Click here.</a>

<div id="light" style="display:none;">
<!-- Add your content here. -->
  This is the content/policy.
</div>
</body>
<script type="text/javascript">
function showPolicy()
{
  document.getElementById('light').style.display = 'block';
}
</script>
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.