Warning: preg_replace_callback(): Requires argument 2, '$func['entity_fix']('\2')', to be a valid callback in /nfs/c01/h06/mnt/10927/domains/dragonprime.net/html/Sources/Load.php(225) : runtime-created function on line 3
Changing Highlight Color of Preferences Tabs
DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • September 21, 2019, 10:36:27 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Changing Highlight Color of Preferences Tabs  (Read 1691 times)
0 Members and 1 Guest are viewing this topic.
Megan|SaraBeth
Mod God
*****
Offline Offline

Posts: 1065



View Profile WWW
« on: February 02, 2016, 06:09:34 PM »

The highlight color of the preference tabs is yellow. The text is normally white and when you click a tab to edit the information under it the text changes to yellow. I found where in the showform.php code it is to change that color. How would one go about getting it to use the CSS to get the color instead of changing it there and it change across all templates?

The code in the showform.php file is near the bottom and looks like this:

theButton.style.color='white';
Logged

Sunday
Codemeister
****
Offline Offline

Posts: 406


So meme'd up.


View Profile
« Reply #1 on: February 03, 2016, 03:20:26 AM »

The code in the showform.php file [...]
Maybe you should look for 'yellow' in that file. The fact that you didn't find it was disappointing.
Logged

Slowly progressing fork with PHP 7 support: https://github.com/stephenKise/Legend-of-the-Green-Dragon
Cheap VPS Hosting (10$ credit!): https://m.do.co/c/acde75b086c5

A new server in the making...
Megan|SaraBeth
Mod God
*****
Offline Offline

Posts: 1065



View Profile WWW
« Reply #2 on: February 03, 2016, 11:29:40 AM »

I did find yellow and I changed it to white. What I want to know is how to change it from having a single color word to pulling a color name off the CSS.
Logged

Aeolus
Mod God
*****
Offline Offline

Posts: 1934


You're welcome.


View Profile WWW
« Reply #3 on: February 03, 2016, 01:57:56 PM »

I did find yellow and I changed it to white. What I want to know is how to change it from having a single color word to pulling a color name off the CSS.

Well, you could either just use the colour code (theButton.style.color='#XXXXXX'), or instead of changing the colour, change the class of the button (theButton.****='COLOUR CLASS') - look up how to change the class in JS. Learning experience.
« Last Edit: February 03, 2016, 02:01:43 PM by The Doctor » Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Welcome to DragonPrime - The LoGD Resource Community!

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
69 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search