Fade in/Fade Out Content on click Problem

I'm a designer, not a programmer.

I'm looking for a javascript or Jquery which will  change the content of a div with a fade in when clicking on a link outside the div. I found a script which does what I want EXCEPT that it only works when the div has a solid color background. I need it to work with NO background color (or background: transparent).

The original script I'm using is from here:
http://www.javascriptkit.com/script/script2/fadeincontentviewer.shtml

the page I want to reproduce (which DOES work the way I want it to) is here:
http://www.agergroup.com/careers.aspx
(but I can't figure out how it was done here)

I have a page here which works because there IS a "background-color: white;" rule in the class ".fadecontent":
http://2113web.com/agertest/fade_in.html

Here's what happens when you take that background-color rule out of the class ".fadecontent"  :
http://2113web.com/agertest/fade_in2.html

The problem is that the script does not fade OUT (or disappear) the content when you click the link to change the content. Because of that, if there is no background-color, the different content just piles up on itself.

below is the code from http://2113web.com/agertest/fade_in.html (the one WITH the background-color rule)
:
IF ANYONE COULD HELP, I WOULD REALLY APPRECIATE IT!

<!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>Untitled Document</title>
<style type="text/css">
#apDiv1 {
   position:absolute;
   left:95px;
   top:139px;
   width:960px;
   height: 408px;
   z-index:1;
}
#apDiv2 {
   position:absolute;
   left:517px;
   top:5px;
   width:441px;
   height: 119px;
   z-index:1;
}
</style>
</head>
<style type="text/css">

.fadecontentwrapper{ /* Total width: 350px+5px+5px=360px Read relative width relations for the other two containers below! */
position: relative;
width: 350px;
height: 250px; /* Set height to be able to contain height of largest content shown*/
border: 5px solid maroon;
overflow: hidden;
}

.fadecontent{ /*style for each fade content DIV within wrapper. Total width: 330px+10px+10px=350px (".fadecontentwrapper" width minus its padding and borders, if any) */
   position: absolute;
   padding: 10px;
   visibility: hidden;
   width: 330px;
   background-color: white;
   
}

.fadecontenttoggler{ /*style for DIV used to contain toggler links. Total width: 350px+5px+5px=360px */
width: 350px;
border: 5px solid maroon;
border-top-width: 0;
overflow: hidden;
}

.fadecontenttoggler a{ /*style for every navigational link within toggler */
text-decoration: none;
border-right: 2px solid maroon;
padding: 0 5px;
float: left;
display: block;
font-weight: bold;
color: black;
}

.fadecontenttoggler a:hover{
background: #C03021;
color: white;
}

.fadecontenttoggler a.toc{ /*style for individual toggler links (page 1, page 2, etc). ".toc" class auto generated! */
}

.fadecontenttoggler a.prev, .fadecontenttoggler a.next{ /*style for "prev" and "next" toggler links. ".prev" and ".next" classes auto generated! */
color: black;
}

.fadecontenttoggler a.prev:hover, .fadecontenttoggler a.next:hover{
color: white;
background: black;
}

.fadecontenttoggler a.selected{ /*style for selected page's toggler link. ".selected" class auto generated! */
background: #C03021;
color: white;
}

</style>

<script type="text/javascript" src="js/jquery-1.2.2.pack.js"></script>

<script type="text/javascript" src="js/contentfader.js">

/***********************************************
* Fade In Content Viewer script- by JavaScript Kit (www.javascriptkit.com)
* This notice must stay intact for usage
* Visit JavaScript Kit at http://www.javascriptkit.com/ for this script and 100s more
***********************************************/

</script>

<body>
<div id="apDiv1">
<div id="whatsnew" class="fadecontentwrapper">

<div class="fadecontent">
Mars is the fourth planet from the Sun in the Solar System. The planet is named after Mars, the Roman god of war. It is also referred to as the "Red Planet" because of its reddish appearance as seen from Earth. A terrestrial planet with a thin atmosphere, Mars has surface features reminiscent both of the impact craters of the Moon and the volcanoes, valleys, deserts and polar ice caps of Earth.
</div>

<div class="fadecontent">
<img src="http://i6.tinypic.com/87atkhw.jpg" style="float: right;" />Saturn is the sixth planet from the Sun and the second largest planet in the Solar System, after Jupiter. Along with the planets Jupiter, Uranus, and Neptune, it is classified as a gas giant (also known as a Jovian planet, after the planet Jupiter).
</div>

<div class="fadecontent">
Jupiter is the fifth planet from the Sun and the largest planet within the solar system. It is two and a half times as massive as all of the other planets in our solar system combined. Jupiter, along with Saturn, Uranus and Neptune, is classified as a gas giant. Together, these four planets are sometimes referred to as the Jovian planets, where Jovian is the adjectival form of Jupiter.
</div>

</div>

<div id="apDiv2">
<div id="whatnewstoggler" class="fadecontenttoggler">
<a href="#" class="prev">Prev</a>
<a href="#" class="toc">Page 1</a> <a href="#" class="toc">Page 2</a> <a href="#" class="toc">Page 3</a>
<a href="#" class="next">Next</a>
</div>
</div>
</div>


<script type="text/javascript">
//SYNTAX: fadecontentviewer.init("maincontainer_id", "content_classname", "togglercontainer_id", selectedindex, fadespeed_miliseconds)
fadecontentviewer.init("whatsnew", "fadecontent", "whatnewstoggler", 0, 400)
</script>


</body>
</html>

THANK YOU IN ADVANCE!
Perry
21thirteen_designAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

khan_webguruCommented:
Hello Bro!

Good news I just solved your problem hope thats what you want.

1
Step 1
Just Download attached "contentfader.js"


2
Step 2
Replaced with the old one


thats it.

Now I am also busy in some client release of stuff. So hope my response will be late.

Hope your problem is solved now

CHEERS!

Regards,

Asif Ahmed Khan
contentfader.js
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
21thirteen_designAuthor Commented:
Simple and elegant - exactly what I was looking for - thank you! You're a genius!
0
khan_webguruCommented:
Thanks Bro!

:)

Regards,

Asif Ahmed Khan
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JScript

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.