The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
I currently have this code:
Code:
$(document).ready(function(){
$("#hide").click(function(){
$("#menu").hide(500);
});
$("#show").click(function(){
$("#menu").show(500);
});
});
|
| Благодарность от: | ||
| the one | ||
|
#2
|
||||
|
||||
|
what you need is an Oreo =)
take a look at this, seems you understand what you're doing. So im going to point you in the right direction Double Stuffed Oreo's Chocolate Chip Cookies |
|
#3
|
||||
|
||||
|
Quote:
|
|
#4
|
|||
|
|||
|
Here is something what you're looking for, I use this on my forum as an alternative to the confusing templates that is used within vB3. You can alter this to suit your needs
Code:
$(document).ready(function() {
// LEFT COLUMN:
// When the collapse button is clicked:
$('.collapseLeft_20').click(function() {
$('.collapseLeft_20').css("display","none");
$('.expandLeft_20').css("display","block");
$('#leftCol_20').css("display","none");
$.cookie('leftCol_20', 'collapsed');
});
// When the expand button is clicked:
$('.expandLeft_20').click(function() {
$('.expandLeft_20').css("display","none");
$('.collapseLeft_20').css("display","block");
$('#leftCol_20').css("display","block");
$.cookie('leftCol_20', 'expanded');
});
// COOKIES
// Left column state
var leftCol_20 = $.cookie('leftCol_20');
// Set the user's selection for the left column
if (leftCol_20 == 'collapsed') {
$('.collapseLeft_20').css("display","none");
$('.expandLeft_20').css("display","block");
$('#leftCol_20').css("display","none");
};
});
|
| Благодарность от: | ||
| Dr.CustUmz | ||
|
#5
|
||||
|
||||
|
Quote:
|
|
#6
|
||||
|
||||
|
did you modify it to fit your classes? take the time to read the links i shared, get an understanding of what you're trying to accomplish, you should have no issue adapting grieg's code.
http://stackoverflow.com/questions/1...ie-with-jquery if your looking more for a "will you do it for me" and not actually wanting to learn anything, share your template |
|
#7
|
||||
|
||||
|
Quote:
|
| 2 благодарности(ей) от: | ||
| Dr.CustUmz, greigeh | ||
|
#8
|
|||
|
|||
|
Sorry I should really have mentioned you needed that file! Glad you got it to work though.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|