Or if you don't use jQuery, do document.getElementByID(id).style.display = (document.getElementByID(id).style.display == "block" ? "hidden" : "block");
Printable View
Or if you don't use jQuery, do document.getElementByID(id).style.display = (document.getElementByID(id).style.display == "block" ? "hidden" : "block");
i love jquery
Code:$(document).ready(function(){
$(".CLASS,#ID").click(function(){
$(this).toggleClass("active").next().slideToggle();
return false;
});
});
lol this is what i use
PHP Code:function toggle5(showHideDiv, switchImgTag) {
var ele = document.getElementById(showHideDiv);
var imageEle = document.getElementById(switchImgTag);
if(ele.style.display == "block") {
ele.style.display = "none";
imageEle.innerHTML = '<img src="/wp-includes/images/plus.png">';
}
else {
ele.style.display = "block";
imageEle.innerHTML = '<img src="/wp-includes/images/minus.png">';
}
}
---------- Post added at 07:50 AM ---------- Previous post was at 07:48 AM ----------
and btw i am almost done just had to recode whole css and toggle works
because of my addiction to habbo i haven't finish the template but i am gonna work further on it thank you
-resource
its not that i wanna ask for help its just that i never knew i would have a busy week i spend the whole week coding a custom cms for my habbo retro and forgot about the theme but don't worry i will have the template done in a couple of hours lol and i already worked on Number12 theme to so Stay Tuned lol
Recoding my Html code in html5 and Using recoding the template to use more css for some parts where some images don't need to be used as the current theme i have here is full of images and i mean everything uses images and at first i didn't bother using image-sprites but now i am using them . Because of some css errors and wrong positioning the js collapse failed totally as the page just got messed up so PLease i Know its been 4 days but i am trying my best
---------- Post added at 04:57 PM ---------- Previous post was at 04:56 PM ----------
and i am working on both templates as i am releasing both images on same date
---------- Post added at 05:00 PM ---------- Previous post was at 04:57 PM ----------
and i was using an custom ui as i think you guys don't need because you want the site done fast lol
Why would we want a custom "User interface"? We want the design that is on the website