Kasdraven Posted May 7, 2006 Share Posted May 7, 2006 OK so I need to change the text in a certain field using CSS, I can't use JS or anything so I can't use variables, I just have to use CSS to do it. I don't even know if this is possible, is it? Link to comment Share on other sites More sharing options...
DenisK Posted May 7, 2006 Share Posted May 7, 2006 an example of that would be:<head><style type="text/css">p { font-size:12px;font-family:Arial;color:#000;}</style></head><body><p>text here</p></body>i don't know if that is what you were asking for, but i can give another example. Link to comment Share on other sites More sharing options...
skym Posted May 7, 2006 Share Posted May 7, 2006 If you want to change the text itself (for example"abcd" to "efgh"), I don't think it's possible with CSS. CSS is used to set the appearence of the information, not the information.The only option I can think of is to actually use an image with the text, instead of the plain text, then you could use something like background-image: url(imagewithtext.gif); Link to comment Share on other sites More sharing options...
Jack McKalling Posted May 7, 2006 Share Posted May 7, 2006 Why do you think you can't use JavaScript? It is always possible..If you really want to be able to replace some words on your page, you should consider learning JavaScript Link to comment Share on other sites More sharing options...
Nakor Posted May 7, 2006 Share Posted May 7, 2006 <P onmouseover="this.innerHTML='<B>Mouse out to change back.</B>'" Â Â onmouseout="this.innerHTML='<I>Mouse over again to change.</I>'"> Â Â <I>Mouse over this text to change it.</I></P> Link to comment Share on other sites More sharing options...
Jack McKalling Posted May 7, 2006 Share Posted May 7, 2006 That's JavaScript lol Link to comment Share on other sites More sharing options...
scott100 Posted May 7, 2006 Share Posted May 7, 2006 To quote "I just have to use CSS to do it"Not what they were after then, was it. Link to comment Share on other sites More sharing options...
Nakor Posted May 7, 2006 Share Posted May 7, 2006 Ah, sorry I missed the part about no JavaScript. I don't know of any way to do it with CSS. Link to comment Share on other sites More sharing options...
scott100 Posted May 7, 2006 Share Posted May 7, 2006 I'm no css guru either but have been playing around with it.This is what i've been able to come up with so farps it only works in FF and Opera due to the fact that IE only support psuedo on a anchor... <head><style>div span {display: none;} div:hover {color:white}div:hover > span {display: block;color:black} </style></head><body><div>Please mouse over me <span>Hey where did you come from?</span></div></body> Link to comment Share on other sites More sharing options...
Kasdraven Posted May 7, 2006 Author Share Posted May 7, 2006 Why do you think you can't use JavaScript? It is always possible..If you really want to be able to replace some words on your page, you should consider learning JavaScript <{POST_SNAPBACK}> Site restrictions. Thanks for the help everyone, I didn't think i'd be able to do it, just wondering though. Link to comment Share on other sites More sharing options...
snowboard01 Posted May 7, 2006 Share Posted May 7, 2006 how do you turn off client side scripting!!!!!!!!!!!!!!!!!!!??????????to do that you would have to like edit all the html of any page you ever make to disable the javascript Link to comment Share on other sites More sharing options...
Brendon Branigin Posted May 8, 2006 Share Posted May 8, 2006 @snowboard01the site restriction is probably set fourth so that people who have disabled javascript for whatever reason (be it fear of malicious code or something else) can still enjoy the site.it's NOT about the inability to execute javascript (as it is handled client side) its about the un-willingness to use JS. Link to comment Share on other sites More sharing options...
Jack McKalling Posted May 8, 2006 Share Posted May 8, 2006 (edited) That is indeed the case with some webhosts. Try finding another, that even gives you more than html AND javascript :)Webhosts that alter your files just by restrictions just do s.uck Edited May 8, 2006 by Dan The Prof 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