Home
Help
Search
3
Calendar
Login
Register
Please
login
or
register
.
Welcome to the Studio, guest!
Quick Links:
Studio Zero
...
Non-PB Codes
[IF]Expand and collapse member postdetails
Intel
Notices
Dev Blog
Feedback and Suggestions
Articles
Intro!
General
Convention Center
Video Games
Entertainment
Forum Games
Contests
Personal Showcase
Coding
ProBoards v5 Resources
Plugins
Template Modifications
Requests and Support
Submissions
General Resources
Coding Tutorials
Non-PB Codes
Open Source
Coders' Hangout
Graphics
Premade Database
Premade Submissions
Design Tutorials
FX Exchange
Archive
Archive Board
Coding Boards
PBv4 Code Storage
GM Scripts
Submit a Code
Rejected Code Submissions
PBv4 Code Requests and Support
Completed
PBv4 Generators
Graphics Boards
Broken Premades
SotW
Other Boards
The Cave
Old Awards
Starbucks Dev Board
Share Thread
Facebook
Twitter
Tumblr
LinkedIn
MySpace
Email
Go to
Previous Thread
Next Thread
Please make a selection first
new
« Prev
1
Next »
Zelnen
Javascriptin'
Official Member
91
0
June 2006
[IF]Expand and collapse member postdetails
Jun 30, 2006 21:35:17 GMT
Select Post
Deselect Post
Link to Post
Member
Give Gift
Back to Top
Ok here we are this is smexy
Preview
It's slightly laggy in IE so you occsionly have to click the [+] or [-] link twice. But it's super speedy and smexy in FF.
Dump this into your footers.
<script>
// Expand and collapse member postdetails
// Created by Zelnen of
s15.invisionfree.com/ifcodingzone
function hide(index){
spans = document.getElementsByTagName("span")
for(s=0; s<spans.length; s++){
if(s == index){
spans[s+2].style.display = "none"
spans
.innerHTML = spans
.innerHTML.replace("hide","showinfo")
spans
.innerHTML = spans
.innerHTML.replace("-","+")
}}}
function showinfo(index){
spans = document.getElementsByTagName("span")
for(s=0; s<spans.length; s++){
if(s == index){
spans[s+2].style.display = "block"
spans
.innerHTML = spans
.innerHTML.replace("showinfo","hide")
spans
.innerHTML = spans
.innerHTML.replace("+","-")
}}}
if(location.href.match("showtopic=")){
spans = document.getElementsByTagName("span")
for(s=0; s<spans.length; s++){
if(spans
.className == 'normalname'){
spans
.innerHTML += " <a href='Javascript: showinfo(" + s + ")'>[+]</a>"
spans[s+2].style.display = "none"
}}}
</script>
Enjoy
Last Edit:
Jun 30, 2006 21:36:15 GMT
by
Zelnen
Share Thread
Facebook
Twitter
Tumblr
LinkedIn
MySpace
Email
Go to
Previous Thread
Next Thread
Please make a selection first
new
« Prev
1
Next »