vForums Support > Programming & Coding :: Code Requests & Support :: > Align Banner

Align Banner - Posted By VeaZna (veazna) on 5th Oct 08 at 2:22am
I'm looking for a code that allows the banner to move to the left or right side instead of the middle.

Thanks! {Smile}

Re: Align Banner - Posted By dog199200 (dog199200) on 5th Oct 08 at 3:37am
just the banner and not the whole table?

Re: Align Banner - Posted By VeaZna (veazna) on 5th Oct 08 at 3:45am
nope, only the banner {Smile}

Re: Align Banner - Posted By dog199200 (dog199200) on 5th Oct 08 at 3:57am
ok try this:

<style type="text/css">
#welcome_table .welcome {
position: absolute;
left: 100px;
}
</style>

Not tested

Re: Align Banner - Posted By VeaZna (veazna) on 5th Oct 08 at 4:09am
sorry, the code doesn't work

Re: Align Banner - Posted By dog199200 (dog199200) on 5th Oct 08 at 4:12am
what is it doing? or does it not do anything?

Re: Align Banner - Posted By VeaZna (veazna) on 5th Oct 08 at 4:15am
it makes the welcome table go over the menu bar and pm system

Re: Align Banner - Posted By dog199200 (dog199200) on 5th Oct 08 at 4:15am
ok i'll look into it

Re: Align Banner - Posted By VeaZna (veazna) on 5th Oct 08 at 4:17am
kk thanks! {Smile}

Re: Align Banner - Posted By dog199200 (dog199200) on 5th Oct 08 at 4:49am
Ok I haven't tested this either. I have way to many important windows open to test it and I am very sorry about that, as well MY JS is not that great, so I really hope this one works.

Global Header:

Code:
 
  1. <script type="text/javascript">
  2. <!--
  3. /*Aligning Banner*/
  4.  
  5. var ialign="left";
  6.  
  7. var welcome_table=document.getElementsByTagName('welcome_table')
  8. for (m=0;m<welcome_table.welcome) {
  9. if (welcome_table[m].className.match(/welcome/i){
  10. welcome_table[m].align=ialign;
  11. }
  12. }
  13. //-->
  14. </script>
 

Re: Align Banner - Posted By VeaZna (veazna) on 5th Oct 08 at 5:00am
sorry, the code still doesn't work, it just did nothing

Re: Align Banner - Posted By dog199200 (dog199200) on 5th Oct 08 at 5:03am
hmm, great now i feel worthless...ok i'll look over the code, and maybe even ask Marc for help if i can't figure it out, but i will get you a code.

Re: Align Banner - Posted By VeaZna (veazna) on 5th Oct 08 at 5:09am
well thanks for the help, I'll just be waiting til' the code is done {Smile}

Re: Align Banner - Posted By dog199200 (dog199200) on 6th Oct 08 at 4:00am
try this:

Code:
 
  1. <script type="text/javascript">
  2. <!--
  3. document.getElementsByClassName("welcome")[0].align = 'left';
  4. //-->
  5. </script>
 


You may want to t5hank marc, i did have to ask him why whta i was trying wouldn't work, and i understadn where i went wrong now.

Re: Align Banner - Posted By VeaZna (veazna) on 8th Oct 08 at 9:16pm
well thanks to u both! {Smile}