Joined: Wed Nov 05, 2008 12:26 pm Posts: 5 Has thanked: 0 time Have thanks: 0 time
Hi im trying too add collapsible divs to my own custom style like this style has but everytime i add them it does,nt just collapse the one div it seem's to collapse my whole forum in one div.
msi_333
Question subject: Re: Skymiles Collapsible Divs
Posted: Wed Nov 05, 2008 12:39 pm
Joined: Tue Mar 27, 2007 10:55 pm Posts: 2279 Location: Earth Has thanked: 39 time Have thanks: 61 time
show me link ,
_________________ Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )
Doobie
Question subject: Re: Skymiles Collapsible Divs
Posted: Wed Nov 05, 2008 12:45 pm
Joined: Wed Nov 05, 2008 12:26 pm Posts: 5 Has thanked: 0 time Have thanks: 0 time
Hi i have just removed the script from my site because it went wrong but im trying to use the script from x-iphone phpbb3 skin and trying to add it too my own style i made but it look's all messed up when i do. This is the script from the X-iphone style if it help's.
/** * Find a member */ function find_username(url) { popup(url, 760, 570, '_usersearch'); return false; }
/** * Mark/unmark checklist * id = ID of parent container, name = name prefix, state = state [true/false] */ function marklist(id, name, state) { var parent = document.getElementById(id); if (!parent) { eval('parent = document.' + id); }
if (!parent) { return; }
var rb = parent.getElementsByTagName('input');
for (var r = 0; r < rb.length; r++) { if (rb[r].name.substr(0, name.length) == name) { rb[r].checked = state; } } }
// ]]> </script> <!-- BEGIN forumrow --> <!-- IF (forumrow.S_IS_CAT and not forumrow.S_FIRST_ROW) or forumrow.S_NO_CAT -->
_________________ Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )
Doobie
Question subject: Re: Skymiles Collapsible Divs
Posted: Wed Nov 05, 2008 1:11 pm
Joined: Wed Nov 05, 2008 12:26 pm Posts: 5 Has thanked: 0 time Have thanks: 0 time
Sorry that's not the forumlist_body.html im tryin to add the script too thats just the script im takin it from.Anyway i've just added it again now it still work's weird but it kinda works here is my own forumlist_body with the script added to it.
/** * Find a member */ function find_username(url) { popup(url, 760, 570, '_usersearch'); return false; }
/** * Mark/unmark checklist * id = ID of parent container, name = name prefix, state = state [true/false] */ function marklist(id, name, state) { var parent = document.getElementById(id); if (!parent) { eval('parent = document.' + id); }
if (!parent) { return; }
var rb = parent.getElementsByTagName('input');
for (var r = 0; r < rb.length; r++) { if (rb[r].name.substr(0, name.length) == name) { rb[r].checked = state; } } }
// ]]> </script> <!-- BEGIN forumrow --> <!-- IF not forumrow.S_IS_CAT and forumrow.S_FIRST_ROW -->
Joined: Tue Mar 27, 2007 10:55 pm Posts: 2279 Location: Earth Has thanked: 39 time Have thanks: 61 time
sir , i saw your forum , the style is cool . i want to ask you in something . Do you know javascript .to make what yo u want to do ,need a knowledge of javascript programming language . you need to have a javascript function .This script function remove the content of <DIV> when u click on (-) image , and replace (-) image with (+) .And then when you click on the (+) image you fill the content back to the <DIV> .
thanks .
_________________ Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )
Doobie
Question subject: Re: Skymiles Collapsible Divs
Posted: Wed Nov 05, 2008 5:18 pm
Joined: Wed Nov 05, 2008 12:26 pm Posts: 5 Has thanked: 0 time Have thanks: 0 time
Hello i'm able to undertand how to add scripts already made and add them to my site but i don't know how to code in java none at all.
But that is what i am trying to do add a script that is already coded and add to my site but i cannot get it too work properly it either make's my whole forum a collapsible div or none at all.
msi_333
Question subject: Re: Skymiles Collapsible Divs
Posted: Wed Nov 05, 2008 5:51 pm
Joined: Tue Mar 27, 2007 10:55 pm Posts: 2279 Location: Earth Has thanked: 39 time Have thanks: 61 time
Doobie wrote:
Hello i'm able to undertand how to add scripts already made and add them to my site but i don't know how to code in java none at all.
But that is what i am trying to do add a script that is already coded and add to my site but i cannot get it too work properly it either make's my whole forum a collapsible div or none at all.
that is because the code of other style may use an javascripts defined there , may be linked in over_all_header .
_________________ Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )
Doobie
Question subject: Re: Skymiles Collapsible Divs
Posted: Wed Nov 05, 2008 6:47 pm
Joined: Wed Nov 05, 2008 12:26 pm Posts: 5 Has thanked: 0 time Have thanks: 0 time
All of the script is in the one file forumlist_body.html if you look at the top of this file its got the script and link to the script.js file. That's how i can get it too work on my site but not properly im not sure what im doing wrong. I have it sort of working on my site now HERE
/** * Find a member */ function find_username(url) { popup(url, 760, 570, '_usersearch'); return false; }
/** * Mark/unmark checklist * id = ID of parent container, name = name prefix, state = state [true/false] */ function marklist(id, name, state) { var parent = document.getElementById(id); if (!parent) { eval('parent = document.' + id); }
if (!parent) { return; }
var rb = parent.getElementsByTagName('input');
for (var r = 0; r < rb.length; r++) { if (rb[r].name.substr(0, name.length) == name) { rb[r].checked = state; } } }
// ]]> </script>[/b] <!-- BEGIN forumrow --> <!-- IF not forumrow.S_IS_CAT and forumrow.S_FIRST_ROW -->