I got this script already adjusted from its original source and it's close to what I'd like, but I've tried and can't figure out how to tweak it further. It's for some of my Product Info pages so that a customer can click to view more details instead of crowding the page with text from the get-go.

Can someone tell me how to make the link "+Details (click for more/less)" appear in bold blue as all my other links (before and after they're clicked)? My blue is the colour 330099.

The first part of the script:

PHP Code:
<!-- COLLAPSIBLE MENU -->

<!-- 
This goes into the HEAD of the html file -->

<
script language="JavaScript" type="text/javascript">
<!-- 
Copyright 2005Sandeep Gangadharan -->
<!-- For 
more free scripts go to http://www.sivamdesign.com/scripts/ -->
<!--
if (
document.getElementById) {
 
document.writeln('<style type="text/css"><!--')
 
document.writeln('.links {display:none; padding-left:14px}')
 
document.writeln('.link {text-decoration:none; color:blue}')
 
document.writeln('a:hover.link {text-decoration: underline; color: red}')
 
document.writeln('//--></style>') }

function 
openClose(theID) {
 if (
document.getElementById(theID).style.display == "block") {
     
document.getElementById(theID).style.display "none";
     
document.getElementById("tick_"+theID).innerHTML "+"; }
 else {
     
document.getElementById(theID).style.display "block";
     
document.getElementById("tick_"+theID).innerHTML "-"; } }
// -->
</script> 
The second part:

PHP Code:
<div onClick="openClose('b1')" style="cursor:hand; cursor:pointer"><span id="tick_b1">+</span
<
span onMouseOver="this.style.color='#330099';this.style.textDecoration='none';" onMouseOut="this.style.color='#330099';this.style.textDecoration='none';">
Details (click for more/less)
</
span></div>
<
div id="b1" class="links">
<
br />
This blurb is a test for the javascript to expand the text area for more detailed product information
</
div
Link to the product on my site I'm testing this on: http://www.alexandergifts.ca/index.p...roducts_id=371

ZC 1.38a

Cheers,

Robbie