|
Post by pm on Sept 11, 2009 18:20:36 GMT -8
I would like to request a code that changes/adds a class to the board names.
I tried a few switch-it codes and the hover woud'nt work so here I am again.
This look is what I'm trying to achieve. (the BG)
<style type="text/css"> <!-- .info {background-color: #787878; background: url(http://img.photobucket.com/albums/v692/poorman3/MORE%20IMAGES/GradGreen25roll.png); padding: 5px; } --> </style>
<font class="info">General Board</font>
Thank you!
|
|
|
Post by Wormopolis on Sept 12, 2009 0:43:29 GMT -8
the actual link, or the cell the board is in?
|
|
|
Post by pm on Sept 12, 2009 0:59:43 GMT -8
Just the link.
|
|
|
Post by Wormopolis on Sept 12, 2009 1:45:53 GMT -8
gotcha.. give me a few minutes.. I just got back from a date and I had a long day so I keep zoning out...
|
|
Matt
Junior Member
Yep, I like making websites. Websites made: 5
Posts: 61
Matt said 0 great things
|
Post by Matt on Sept 12, 2009 13:36:57 GMT -8
well i think this might work for the Link:
<style type="text/css"> <!-- .info {background-color: #787878; background-image: url(http://img.photobucket.com/albums/v692/poorman3/MORE%20IMAGES/GradGreen25roll.png); padding: 5px; } --> </style>
<font class="info">General Board</font>
Add the red part into the code...
Matt
|
|
|
Post by DangerKart on Sept 12, 2009 17:48:51 GMT -8
I just got back from a date You didnt think i was gonna let that slide by now did ya, details?! ;D
|
|
|
Post by Wormopolis on Sept 12, 2009 18:51:54 GMT -8
Meh.. it didnt turn out as well as I hoped it would.
I fell asleep before finishing typing the code last night and didnt save my progress. I drove from los Angeles to Las Vegas today and I will work on this tonight.
|
|
Matt
Junior Member
Yep, I like making websites. Websites made: 5
Posts: 61
Matt said 0 great things
|
Post by Matt on Sept 12, 2009 23:54:47 GMT -8
I wanna know if my edit on it was right... please tell me if it was.
Matt
|
|
|
Post by Wormopolis on Sept 13, 2009 0:20:41 GMT -8
for the CSS yes it was, but since the boards dont have that classname attached to them it wouldnt affect them yet...
bear with me..
|
|
|
Post by Wormopolis on Sept 13, 2009 0:29:05 GMT -8
<style type="text/css"> <!-- .boardLink {background-color: #787878; background-image: url(http://img.photobucket.com/albums/v692/poorman3/MORE%20IMAGES/GradGreen25roll.png); padding: 5px; } --> </style>
<script type="text/javascript"> <!-- // board cell link reclass for (lnks=document.links, e=0; e<lnks.length; e++) { if (lnks[e].href.match(/board=(.*?)$/) && lnks[e].parentNode.parentNode.onclick && lnks[e].parentNode.parentNode.width=="66%") { if (!lnks[e].className) lnks[e].className="boardLink"; } } // --> </script>
if you have that 66% changed to something else you might need to change that number or have this code run before whatever code resizes it.
|
|
|
Post by pm on Sept 13, 2009 12:20:11 GMT -8
Thanks Wormo!
Edit:
background-image: affects the semi-transparency code I use so I use background:
|
|