vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: Align Banner - View Topic
Topic Rating: *****
Printable View
VeaZna
Junior Member
**

[Avatar]
"Pickle Weasil"

Posts: 78
Status: Offline
Location: Guess...
Joined:  
Reputation: 1%  


pmwww
Align Banner (5th Oct 08 at 2:22am UTC)
Resolved
I'm looking for a code that allows the banner to move to the left or right side instead of the middle.

Thanks! {Smile}

ImageImage
dog199200
Guest
Re: Align Banner (5th Oct 08 at 3:37am UTC)
just the banner and not the whole table?
VeaZna
Junior Member
**

[Avatar]
"Pickle Weasil"

Posts: 78
Status: Offline
Location: Guess...
Joined:  
Reputation: 1%  


pmwww
Re: Align Banner (5th Oct 08 at 3:45am UTC)
nope, only the banner {Smile}

ImageImage
dog199200
Guest
Re: Align Banner (5th Oct 08 at 3:57am UTC)
ok try this:

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

Not tested
VeaZna
Junior Member
**

[Avatar]
"Pickle Weasil"

Posts: 78
Status: Offline
Location: Guess...
Joined:  
Reputation: 1%  


pmwww
Re: Align Banner (5th Oct 08 at 4:09am UTC)
sorry, the code doesn't work

ImageImage
dog199200
Guest
Re: Align Banner (5th Oct 08 at 4:12am UTC)
what is it doing? or does it not do anything?
VeaZna
Junior Member
**

[Avatar]
"Pickle Weasil"

Posts: 78
Status: Offline
Location: Guess...
Joined:  
Reputation: 1%  


pmwww
Re: Align Banner (5th Oct 08 at 4:15am UTC)
it makes the welcome table go over the menu bar and pm system

ImageImage
dog199200
Guest
Re: Align Banner (5th Oct 08 at 4:15am UTC)
ok i'll look into it
VeaZna
Junior Member
**

[Avatar]
"Pickle Weasil"

Posts: 78
Status: Offline
Location: Guess...
Joined:  
Reputation: 1%  


pmwww
Re: Align Banner (5th Oct 08 at 4:17am UTC)
kk thanks! {Smile}

ImageImage
dog199200
Guest
Re: Align Banner (5th Oct 08 at 4:49am UTC)
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>
 
VeaZna
Junior Member
**

[Avatar]
"Pickle Weasil"

Posts: 78
Status: Offline
Location: Guess...
Joined:  
Reputation: 1%  


pmwww
Re: Align Banner (5th Oct 08 at 5:00am UTC)
sorry, the code still doesn't work, it just did nothing

ImageImage
dog199200
Guest
Re: Align Banner (5th Oct 08 at 5:03am UTC)
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.
VeaZna
Junior Member
**

[Avatar]
"Pickle Weasil"

Posts: 78
Status: Offline
Location: Guess...
Joined:  
Reputation: 1%  


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

ImageImage
dog199200
Guest
Re: Align Banner (6th Oct 08 at 4:00am UTC)
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.
VeaZna
Junior Member
**

[Avatar]
"Pickle Weasil"

Posts: 78
Status: Offline
Location: Guess...
Joined:  
Reputation: 1%  


pmwww
Re: Align Banner (8th Oct 08 at 9:16pm UTC)
well thanks to u both! {Smile}

ImageImage
 Printable View

All times are GMT+0 :: The current time is 9:06pm
Page generated in 0.9572 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums