Hi there Zapppa,
Would something like this work for you?
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>slideToggle example</title>
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
</head>
<body>
<div style="width:500px;">
<p>The php.ini file is absolutely fascinating.</p>
<a href="" class="readMore">Read more...</a>
<div class="hiddenContent">
<p>
; Output buffering allows you to send header lines (including cookies) even<br />
; after you send body content, at the price of slowing PHP's output layer a<br />
; bit. You can enable output buffering during runtime by calling the output<br />
; buffering functions. You can also enable output buffering for all files by<br />
; setting this directive to On. If you wish to limit the size of the buffer<br />
; to a certain size - you can use a maximum number of bytes instead of 'On', as<br />
; a value for this directive (e.g., output_buffering=4096).<br />
output_buffering = Off
</p>
</div>
</div>
<script>
$('.hiddenContent').hide();
$('.readMore').click(function () {
$('.hiddenContent').slideToggle('slow', function(){
$('.readMore').text($(this).is(':visible')? 'Hide' : 'Read more...');
})
return false;
});
</script>
</body>
</html>
If not, just let me know what I have misunderstood and I can help you modify it.
Bookmarks