Gryphus_1 Posted March 26, 2015 Share Posted March 26, 2015 I wrote this last night, and I can't figure out how to script the color codes. Anyone know of a script to emulate caret color codes? http://64.94.100.200/query/ G1 ""Don't quote my quotes!" - Fruits" - Rattle Link to comment
Xen0 Posted March 27, 2015 Share Posted March 27, 2015 what language is it written in. php? Link to comment
Gryphus_1 Posted March 27, 2015 Author Share Posted March 27, 2015 Yes, but most of the scripting is done in jquery. I'm working with it at the moment so it's also slightly broken. A less broken version: http://64.94.100.200/query/working.php G1 ""Don't quote my quotes!" - Fruits" - Rattle Link to comment
Xen0 Posted March 27, 2015 Share Posted March 27, 2015 See if this helps. Copy<?php $hostname = "^3NET-JAM.com ^2(HARDCORE)"; $c_pattern = array( "^0", "^1", "^2" , "^3", "^4", "^5", "^6", "^7", "^8", "^9", ); $c_replace = array( '</font><font color="#000000">', '</font><font color="#FF0000">', '</font><font color="#00FF00">', '</font><font color="#FFFF00">', '</font><font color="#0000FF">', '</font><font color="#00FFFF">', '</font><font color="#FF00FF">', '</font><font color="#FFFFFF">', '</font><font color="#A0A0A0">', '</font><font color="#000000">', ); $hostname = str_replace($c_pattern, $c_replace, $hostname); echo $hostname; ?> Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now