I was wondering if someone would please edit this code for me so that it will work right.
Code:
- <script type="text/javascript">
- get('table','tag')[1].cellSpacing = '1';
- for(b=0; b<=3; b++) {
- get('br', TAG).style.display = "none";
- }
- get('forum_border_menu_holder', ID).appendChild(get('welcome_table', ID).previousSibling);
- get('forum_border_menu_holder', ID).appendChild(get('welcome_table', ID));
- if(vf_username != "guest") {
- get('forum_border_menu_holder', ID).appendChild(get('user_table', ID).previousSibling);
- get('forum_border_menu_holder', ID).appendChild(get('user_table', ID));
- }
- </script>
I'm using it to pull the userbar, as well as the logo with the frame i'm setting up on my forum, but the problem is that it doesn't move the head and base images for the logo and only moves the head image for the userbar, and i was wondering if someone would get it so it pulls all the images with it. Also for some reason it isn't spacing anyything out, so after i pull it all, its all pushed together at the top of my forum, can someone please fix that was well.
Thanks a lot in advanced, and sooner getting this done the better
I don't get what you're wanting!
Basically the code above calls the Welcome table as well as the userbar and allows me to place them within the frame I am setting up on my forum, but it leaves behind the header and footer images. What I want is for the code to be modified so that it called the header and footer images as well. I've tried to use the snippet you posted for calling the header and footer images, but it didn't work.
Also another problem with the code that i'd like fixed is when using the code, the spacing between the userbar and the welcome table is remove, instead they get pushed together, so I need them seperated by about 15 pixels or so, so taht it looks like how it would normal, for the spacing that is.
Edit: Just wanted to say I edit the code above and got it so that it now displayed the header images on both the welcome table as well as the userbar, i just don't know what to use for based images
You will want to use 'nextSibling' for the footer image!
its not working I added it in and all it does is put the userbar back outside the frame and doesn't move the images. here is the sites url to see for yourself: http://inuyashasworld.vforums.co.uk/ also i'm sure you'll be able to see what I mean about the spacing problem if you look at the site.
bump
Due to problems with the WYSIWYG editor... I'm going to post links to codes:
Try this code: http://wimg.mp/9I6.txt
And remove this code: http://wimg.mp/8BH.txt
lol the put text here was something i was toying with, it was meant to be removed
Also it didn't work, its doing the same thing
bump
umm someone please help, i really need this code....
Edit: Here is the code wrighty did, i just added another space to it.
Code:
- <script type="text/javascript">
- get('table', 'tag')[1].cellSpacing = '1';
- for(b = 0; b < 4; b++)
- get('br', 'tag')[b].style.display = "none";
- with(get('forum_border_menu_holder', 'id')){
- appendChild(get('welcome_table', 'id').previousSibling);
- appendChild(get('welcome_table', 'id'));
- appendChild(get('welcome_table', 'id').nextSibling);
- if(vf_username != "guest") {
- appendChild(document.createElement('br'));
- appendChild(get('user_table', 'id').previousSibling);
- appendChild(get('user_table', 'id'));
- appendChild(get('user_table', 'id').nextSibling);
- }
- appendChild(document.createElement('br'));
- }
- </script>
For some reason these are breaking the code:
appendChild(get('welcome_table', 'id').nextSibling);
appendChild(get('user_table', 'id').nextSibling);
For some reason the code breaks when trying to call the base images and I have no idea why.
right, I'll take a look at this later - what're you trying to do exactly? I'll then write my own code to do that for you knowing exactly what it is that you want to be done!
http://www.inuyashasworld.vforums.co.uk have a look at the top. I'm trying to call userbar and the welcome table into a frame so the frame fully surrounds the forums.
http://wimg.mp/RKp.txt =]
it works but one small problem, it puts a space between the head image of the userbar and the userbar itself... other then that it works great
change n == 3 to n == 2
thank you