|
Post by Streamstrider on Nov 12, 2011 21:24:38 GMT -8
Is there a way to style the individual menu links?
|
|
|
Post by Wormopolis on Nov 12, 2011 22:25:16 GMT -8
.menubg a {color: #FF0000; font-weight: bold; font-size: 18pt}
I think works. but that is if you have them set to text
|
|
|
Post by Streamstrider on Nov 13, 2011 0:36:50 GMT -8
I mean, individually. As in, styling "Home" differently from "Search" and the like.
|
|
NetMaster
Code Helper
"Get caught in my web!"
Posts: 305
NetMaster said 0 great things
|
Post by NetMaster on Nov 13, 2011 6:59:37 GMT -8
If you use script.
var menubut=document.getElementById(menubg) if menubut.innerHTML == Home { menubut.style=
Something like that anyways. Wormo can probably work it out fully.
|
|
|
Post by Wormopolis on Nov 13, 2011 18:55:30 GMT -8
<style type="text/css"> .menuHome {color:#FF0000; font-size: 18pt;} .menuSearch {color:#00FF00; font-size: 16pt;} </style>
<script type="text/javascript"> <!-- // style buttons in menu by Wormopolis - do not repost // version 1.0 // top of global footer
var mnubtns=document.GetElementsByTagName('td')[5] for (mlinks=mnubtns.getElementsByTagName('a'), ml=0; ml<mlinks.length; ml++) { mlinks[ml].className='menu'+mlinks[ml].innerHTML.replace(/(\[|\]|\s)/g,''); }
// --> </script>
|
|
|
Post by Streamstrider on Nov 13, 2011 23:29:43 GMT -8
Would repositioning the menu make this not work?
|
|
|
Post by Wormopolis on Nov 14, 2011 14:24:02 GMT -8
run this before. it just applies a class name to each link so you can use CSS.
|
|
|
Post by Streamstrider on Nov 14, 2011 16:09:50 GMT -8
|
|
|
Post by Wormopolis on Nov 14, 2011 16:22:11 GMT -8
my code would only work on text menu buttons. you have images there.
|
|
|
Post by Streamstrider on Nov 14, 2011 16:37:38 GMT -8
They're not images. That's all CSS styling.
|
|
|
Post by Wormopolis on Nov 14, 2011 16:52:05 GMT -8
weird.. so it is. the first time I looked it didnt give me the caret cursor showing it was text
|
|
|
Post by Wormopolis on Nov 14, 2011 17:00:11 GMT -8
the subdevo code is completely rewriting the menubar with new data - stripping the added classname. you might want to check with him to see if it can be added back in.
|
|
|
Post by Streamstrider on Nov 14, 2011 17:23:00 GMT -8
|
|
|
Post by Wormopolis on Nov 15, 2011 9:23:40 GMT -8
occasionally. he also is admin on interoceandesigns
|
|
|
Post by Streamstrider on Nov 15, 2011 18:10:22 GMT -8
Don't think I've made an account there yet, but I guess I might as well, huh? XD
|
|