...

View Full Version : Is CSS code reversible?



PitbullMean
10-24-2007, 04:10 AM
Currently the dropdown block on my test site is done in css by the orginal coder. but since the guy is being a dink and wont help me im looking for the guidance in you guys. im willing to donate for assistance.

At first i thought it was in the javascript but i was wrong its in the CSS file. When u click More Information a block appears with information about that person. I would like to have it so when you click it again the css code does it in reverse. heres the code that this effect applies to.


.clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
.clearfix { display: inline-table; }

/* Hides from IE-mac \*/
* html .clearfix {height: 1%;}
.clearfix {display: block;}
/* End hide from IE-mac */
/* ------------------------------ */

Any assistance that solves this issue will be appreciated and rewarded(if applicable) heck i might even put a ad banner on my site for this site, or the persons name will be put in my full credits page.

ez4me2c3d
10-24-2007, 04:22 AM
Unfortunately for you that is not the CSS that shows or hides the block with the info about the person.

Post or link to full page and I will decipher it for you , then fix it.

What kind of donation are you willing to give?

PitbullMean
10-24-2007, 04:28 AM
http://diamond-grafix.com/soldiers/members.html

as far as donation goes all depends on how quick it gets done. im thinking 5-10 should suffice for a non profit site.

ez4me2c3d
10-24-2007, 04:29 AM
Well, I'll have it done in just a few minutes then... brb

ez4me2c3d
10-24-2007, 04:44 AM
look at your members_files/triggers.js file and find this section:

function toggleNext(event) {
var nextDiv = getNextByName(this.parentNode.parentNode, 'DIV');
if (nextDiv != null) {
nextDiv.style.display = 'block';
// this.onclick = function() {return false;}
// this.style.cursor = 'default';
this.parentNode.innerHTML = this.innerHTML;
}
return false;
}

Make the following TWO edits

function toggleNext(event) {
var nextDiv = getNextByName(this.parentNode.parentNode, 'DIV');
if (nextDiv != null) {
nextDiv.style.display = (nextDiv.style.display == 'block') ? 'none' : 'block';
// this.onclick = function() {return false;}
// this.style.cursor = 'default';
// this.parentNode.innerHTML = this.innerHTML;
}
return false;
}

PitbullMean
10-24-2007, 10:25 PM
Thanks buddy give me ur paypal email and ill send ya 5 bucks right now. also could I add u to my msn messenger if u have it?

ez4me2c3d
10-26-2007, 06:28 AM
I sent you a pm with my info



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum