duki19super Posted December 18, 2005 Share Posted December 18, 2005 On the w3schools's tutorial I read it was not recomended to use <font="">, and instead of that <style="">. My quastion is how can I change the color of the link? With <style="color="red"> it's imposeble, but with <font color="red"> it is possible. Is there any other way that I could use to change the color of the link? And one more quastion: What's the code that I could use if someone come to my site that is for example 11111.com and the page automaticly redirect him to 22222.com? Link to comment Share on other sites More sharing options...
Selacius Posted December 18, 2005 Share Posted December 18, 2005 Use this:<STYLE type="text/css"><!--A:link{color:CCCCCC;text-decoration:none}A:visited{color:CCCCCC;text-decoration:none}A:active{color:CCCCCC;text-decoration:none}A:hover{color:FF0000;text-decoration:none}--></STYLE>CHanging the colors to whatever you want them to be. Link to comment Share on other sites More sharing options...
Jonas Posted December 18, 2005 Share Posted December 18, 2005 <font color="#FF0000">Your text</font>to<span style="color: #ff0000;">Your text</font> Link to comment Share on other sites More sharing options...
smiles Posted December 19, 2005 Share Posted December 19, 2005 And one more quastion: What's the code that I could use if someone come to my site that is for example 11111.com and the page automaticly redirect him to 22222.com?<{POST_SNAPBACK}> You should think over because it affects to alls who visit your site , it synonymous with you only have 22222.com lets them login if you want that ! Link to comment Share on other sites More sharing options...
Chocolate570 Posted December 19, 2005 Share Posted December 19, 2005 If you WANT to do that, there is a way with meta tags, but since I don't know that, just put this in your head section:<script type="text/javascript">window.location="222.com"</script>And it should go to 222.com. Link to comment Share on other sites More sharing options...
Skemcin Posted December 19, 2005 Share Posted December 19, 2005 ...And one more quastion: What's the code that I could use if someone come to my site that is for example 11111.com and the page automaticly redirect him to 22222.com? Its best for teh web server to handle the redirect. Your hosting service (or yourself) should allow this type of configuration.However, if you do not have access to this type of configuration, then Chocolate570's solution will work. The other he mentions is the meta tag:Refresh page every 5 seconds:<meta http-equiv="refresh" content="5" /> Of course, if you are using a scripting language, each has its server-side redirect command as well. Doing it on the server saves you bandwidth and saves you visitor the time to wait for teh <meta> or <script> tags to be downloaded and executed. Link to comment Share on other sites More sharing options...
duki19super Posted December 19, 2005 Author Share Posted December 19, 2005 If you WANT to do that, there is a way with meta tags, but since I don't know that, just put this in your head section:<script type="text/javascript">window.location="222.com"</script>And it should go to 222.com.<{POST_SNAPBACK}> Thanks Chocolate570. That's exactly what I wanted! Link to comment Share on other sites More sharing options...
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