I've used jQuery framework for this purpose. You need to make the following adjustments in the code and your markup
1. You have to change your current markup in the following manner
Code:
<div id="mman"><a title="" href="#" onmouseover="Tip('Dont touch me there! -Money Man', TITLE,'' , BGCOLOR, '#CC0000', FONTCOLOR, '#FFFFFF', FONTWEIGHT, 'bold', FADEIN, 0)" onmouseout="UnTip()"><img src="apply.asp_files/moneyman.gif" alt="" border="0" width="264" height="297"></a></div>
</div>
<div id="sh" class="dhtmlgoodies_question"> ^Hide Money Man</div>
2. You need to include the jQuery library in your page which can done directly from the google server. Insert the following code as the first script file inclusion in your page:
Code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
3. Insert the following code inside a script block
Code:
$(document).ready(function(){
$('#sh').click(function(){
if($(this).text().indexOf('Hide')!= -1){
$(this).text(" v Show Money Man");
$('#mman').fadeOut('slow');
}else if($(this).text().indexOf('Show')!= -1){
$(this).text(" ^ Hide Money Man");
$('#mman').fadeIn('slow');
}
});
});
Now when you click on the HTML element whose id is 'sh' it will work just as a toggled switch.
The same thing can be done through the CSS display property but the animated effect will not be there the showing and hiding will happen suddenly.
I thought you'll find the jQuery library an interesting one as you use lots of custom functions in your page and through this library I feel that most of them can be replaced in an efficient manner.
Hope this helps.
Bookmarks