Board Logo

 Username:    Password:    Stay logged in: Welcome Guest. Please Login or Register.  Jun 26th, 2017, 03:48am


Board Hacks
Important News
Please read the notes posted with any codes carefully, as they will usually tell you where they need to go.
Welcome to the Conforums Hacks Board!

All codes here have been tested but we accept no responsibility if these codes do not work on your board, or have an adverse effect when used in combination with other codes.

This board is read only. Any queries or requests for codes should be made on the Coding Forum

Helpful sites
Google
Dynamic Drive

The Staff
Roger
Dave
GIzzy



« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Right Align Menu Items  (Read 3532 times)
Roger
Conforums Administrator


member is offline

Avatar

"Pure intentions, its about the journey, not particularly the end result."


Homepage PM

Gender: Male
Posts: 12606
xx Right Align Menu Items
« Thread started on: Dec 8th, 2003, 10:16pm »

Code submitted by Willie Wilson.

It takes all the menu items that you see at the top (like: User Image) and aligns them to the right. If you may have noticed, they are aligned to the center.

Here is the code:

Code:
<script language="javascript">
/*
Created by Willie Wilson
Right-align menu items
Use freely but do not post in other locations PLEASE?
*/

var td = document.getElementsByTagName("TD")
for(j=0;j<td.length;j++)
{
if(td[j].innerHTML.indexOf("home.gif")!==-1)
{
td[j].innerHTML="<p align=right>"+td[j].innerHTML+"</p>"
}
}
</script>
 


PLACE IN MAIN HEADERS ONLY!
User IP Logged

Roger Sutton
User Image
Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Back To Top
Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls