inherit
126848
0
Jan 3, 2013 7:51:23 GMT -8
Peacey =]
45
June 2008
yourpeaceinpieces
|
Post by Peacey =] on Feb 20, 2011 10:47:55 GMT -8
URL: phoenixtest.proboards.com/index.cgiI've used a code before that allowed me to put the menu buttons in the banner but listed them vertically so it would look like: Home New Topics Help etc. instead of: Home New Topics Help... I've been looking for quite a while and can but can only find codes like California's <script type="text/javascript"> <!-- /* menu buttons inside banner by california */
var imgURL = "URL OF BANNER IMAGE"; var imgWidth = "730"; var imgHeight = "250"; var menuXpos = "15"; var menuYpos = "25";
var iCell = document.getElementsByTagName("td"); iCell[1].style.backgroundImage = 'url('+imgURL+')'; iCell[1].style.height = imgHeight+"px"; iCell[1].align = "left"; iCell[1].vAlign = "top"; document.getElementsByTagName("table")[0].width = imgWidth; iCell[1].innerHTML = '<div style="position: relative; top: '+menuYpos+ 'px; left: '+menuXpos+'px;">'+iCell[5].innerHTML+'</div>'; iCell[2].style.display = "none"; document.getElementsByTagName("tr")[2].style.display = "none";
// --> </script> Can anyone help? Thanks.
|
|
inherit
134992
0
May 26, 2012 2:38:57 GMT -8
SubDevo
Creator of LSD...
3,861
December 2008
subdevo
|
Post by SubDevo on Feb 20, 2011 11:54:52 GMT -8
Hi. Try this. The Blue is the part I added.
<script type="text/javascript"> <!-- /* menu buttons inside banner by california */
var imgURL = "URL OF BANNER IMAGE"; var imgWidth = "730"; var imgHeight = "250"; var menuXpos = "15"; var menuYpos = "25";
var iCell = document.getElementsByTagName("td"); iCell[1].style.backgroundImage = 'url('+imgURL+')'; iCell[1].style.height = imgHeight+"px"; iCell[1].align = "left"; iCell[1].vAlign = "top"; document.getElementsByTagName("table")[0].width = imgWidth; iCell[1].innerHTML = '<div style="position: relative; top: '+menuYpos+ 'px; left: '+menuXpos+'px;">'+iCell[5].innerHTML.replace(/a>.*?<a/gi,"a><br \/><a")+'</div>'; iCell[2].style.display = "none"; document.getElementsByTagName("tr")[2].style.display = "none";
// --> </script>
Regards, SubDevo
|
|
inherit
126848
0
Jan 3, 2013 7:51:23 GMT -8
Peacey =]
45
June 2008
yourpeaceinpieces
|
Post by Peacey =] on Feb 20, 2011 12:32:13 GMT -8
That worked, thankyou! Another question: is there a way to make the links more spaced out? Eg. Home
New Topics
Help
|
|
inherit
34317
0
Jul 25, 2011 7:16:34 GMT -8
Andrew.McGivery
|-|e|_|_0
267
December 2004
zawzew
|
Post by Andrew.McGivery on Feb 20, 2011 13:04:10 GMT -8
just added onto sub's code <script type="text/javascript"> <!-- /* menu buttons inside banner by california */ var imgURL = "URL OF BANNER IMAGE"; var imgWidth = "730"; var imgHeight = "250"; var menuXpos = "15"; var menuYpos = "25"; var iCell = document.getElementsByTagName("td"); iCell[1].style.backgroundImage = 'url('+imgURL+')'; iCell[1].style.height = imgHeight+"px"; iCell[1].align = "left"; iCell[1].vAlign = "top"; document.getElementsByTagName("table")[0].width = imgWidth; iCell[1].innerHTML = '<div style="position: relative; top: '+menuYpos+ 'px; left: '+menuXpos+'px;">'+iCell[5].innerHTML.replace(/a>.*?<a/gi,"a><br \/><br \/><a")+'</div>'; iCell[2].style.display = "none"; document.getElementsByTagName("tr")[2].style.display = "none"; // --> </script>
|
|
inherit
134992
0
May 26, 2012 2:38:57 GMT -8
SubDevo
Creator of LSD...
3,861
December 2008
subdevo
|
Post by SubDevo on Feb 20, 2011 13:05:23 GMT -8
That worked, thankyou! Another question: is there a way to make the links more spaced out? Eg. Home
New Topics
Help Sure, just copy/paste the Blue into the same line. replace(/a>.*?<a/gi,"a> <br \/><a") So, for 2 lines between, it would be this. replace(/a>.*?<a/gi,"a> <br \/><br \/><a") Regards, SubDevo
|
|
inherit
126848
0
Jan 3, 2013 7:51:23 GMT -8
Peacey =]
45
June 2008
yourpeaceinpieces
|
Post by Peacey =] on Feb 20, 2011 13:43:33 GMT -8
That worked too, thankyou again (to both of you). And one final question - is there a way to change the size of the menu text?
|
|
inherit
134992
0
May 26, 2012 2:38:57 GMT -8
SubDevo
Creator of LSD...
3,861
December 2008
subdevo
|
Post by SubDevo on Feb 20, 2011 14:39:44 GMT -8
That worked too, thankyou again (to both of you). And one final question - is there a way to change the size of the menu text? Put this in your Global Header. <style type="text/css"> .welcomebg div font {font-size: 20px;} </style>This will change the menu text size ONLY with the california code.
|
|
inherit
126848
0
Jan 3, 2013 7:51:23 GMT -8
Peacey =]
45
June 2008
yourpeaceinpieces
|
Post by Peacey =] on Feb 20, 2011 14:50:44 GMT -8
Thankyou ;D
|
|
inherit
134992
0
May 26, 2012 2:38:57 GMT -8
SubDevo
Creator of LSD...
3,861
December 2008
subdevo
|
Post by SubDevo on Feb 20, 2011 15:32:15 GMT -8
You're welcome.
|
|